Diff of /mcsource.c [8fd865] .. [8ddd2a]  Maximize  Restore

  Switch to unified view

a/mcsource.c b/mcsource.c
1
/*
1
/*
2
 * mcsource.c
2
 * mcsource.c
3
 *
3
 *
4
 * $Id$
4
 * $Id$
5
 *
5
 *
6
 * Copyright (C) 2006, 2007, Keith Marshall
6
 * Copyright (C) 2006, 2007, 2008, Keith Marshall
7
 *
7
 *
8
 * This file implements the message catalogue source code parser, which is
8
 * This file implements the message catalogue source code parser, which is
9
 * used internally by `gencat', to compile message dictionaries.
9
 * used internally by `gencat', to compile message dictionaries.
10
 *
10
 *
11
 * Written by Keith Marshall  <keithmarshall@users.sourceforge.net>
11
 * Written by Keith Marshall  <keithmarshall@users.sourceforge.net>
12
 * Last modification: 22-Sept-2007
12
 * Last modification: 08-Jan-2008
13
 *
13
 *
14
 *
14
 *
15
 * This is free software.  It is provided AS IS, in the hope that it may
15
 * This is free software.  It is provided AS IS, in the hope that it may
16
 * be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY
16
 * be useful, but WITHOUT WARRANTY OF ANY KIND, not even an IMPLIED WARRANTY
17
 * of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.
17
 * of MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.
...
...
287
  wchar_t last_char = L'\0';
287
  wchar_t last_char = L'\0';
288
288
289
  /* Get a file descriptor for the input stream ...
289
  /* Get a file descriptor for the input stream ...
290
   */
290
   */
291
  const char *dev_stdin = "/dev/stdin";
291
  const char *dev_stdin = "/dev/stdin";
292
  if( (strcmp( input, "-") == 0) || (strcmp( input, dev_stdin ) == 0) )
292
  if( (strcmp( input, "-") == 0) || (strcasecmp( input, dev_stdin ) == 0) )
293
  {
293
  {
294
    /* ... reading from standard input ...
294
    /* ... reading from standard input ...
295
     */
295
     */
296
    input_fd = fd = STDIN_FILENO;
296
    input_fd = fd = STDIN_FILENO;
297
    input = dev_stdin;
297
    input = dev_stdin;
...
...
1263
   */
1263
   */
1264
  close( input_fd );
1264
  close( input_fd );
1265
  return head;
1265
  return head;
1266
}
1266
}
1267
1267
1268
/* $RCSfile$Revision: 1.11 $: end of file */
1268
/* $RCSfile$Revision: 1.12 $: end of file */

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks