~mordred/drizzle/add-drizzle-namespace

« back to all changes in this revision

Viewing changes to gnulib/getopt.c

  • Committer: Brian Aker
  • Date: 2009-05-03 22:35:33 UTC
  • mfrom: (997.2.26 mordred)
  • Revision ID: brian@gaz-20090503223533-lv7lwqelv08dnv2j
Merge of Monty's code

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#ifdef _LIBC
34
34
# include <libintl.h>
35
35
#else
36
 
# include "drizzled/gettext.h"
 
36
# include "gettext.h"
 
37
# define _(msgid) gettext (msgid)
37
38
#endif
38
39
 
39
40
#if defined _LIBC && defined USE_IN_LIBIO
227
228
_getopt_initialize (int argc, char **argv, const char *optstring,
228
229
                    int posixly_correct, struct _getopt_data *d)
229
230
{
230
 
  (void) argc;
231
 
  (void) argv;
232
 
 
233
231
  /* Start processing options with ARGV-element 1 (since ARGV-element 0
234
232
     is the program name); the sequence of previously skipped
235
233
     non-option ARGV-elements is empty.  */
285
283
    }
286
284
  else
287
285
    d->__nonoption_flags_len = 0;
288
 
#else 
 
286
#else
289
287
  (void)argc;
290
288
  (void)argv;
291
289
#endif
1106
1104
 
1107
1105
/* glibc gets a LSB-compliant getopt.
1108
1106
   Standalone applications get a POSIX-compliant getopt.  */
1109
 
#ifdef _LIBC
 
1107
#if defined(_LIBC)
1110
1108
enum { POSIXLY_CORRECT = 0 };
1111
1109
#else
1112
1110
enum { POSIXLY_CORRECT = 1 };