/[gnats]/gnats/libiberty/getopt.c
ViewVC logotype

Diff of /gnats/libiberty/getopt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.4 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 82  Line 82 
82  #ifndef _  #ifndef _
83  /* This is for other GNU distributions with internationalized messages.  /* This is for other GNU distributions with internationalized messages.
84     When compiling libc, the _ macro is predefined.  */     When compiling libc, the _ macro is predefined.  */
85  # ifdef HAVE_LIBINTL_H  # if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC
86  #  include <libintl.h>  #  include <libintl.h>
87  #  define _(msgid)      gettext (msgid)  #  define _(msgid)      gettext (msgid)
88  # else  # else
# Line 333  exchange (argv) Line 333  exchange (argv)
333          nonoption_flags_len = nonoption_flags_max_len = 0;          nonoption_flags_len = nonoption_flags_max_len = 0;
334        else        else
335          {          {
336            memset (__mempcpy (new_str, __getopt_nonoption_flags,            memset (mempcpy (new_str, __getopt_nonoption_flags,
337                               nonoption_flags_max_len),                             nonoption_flags_max_len),
338                    '\0', top + 1 - nonoption_flags_max_len);                    '\0', top + 1 - nonoption_flags_max_len);
339            nonoption_flags_max_len = top + 1;            nonoption_flags_max_len = top + 1;
340            __getopt_nonoption_flags = new_str;            __getopt_nonoption_flags = new_str;
# Line 444  _getopt_initialize (argc, argv, optstrin Line 444  _getopt_initialize (argc, argv, optstrin
444                if (__getopt_nonoption_flags == NULL)                if (__getopt_nonoption_flags == NULL)
445                  nonoption_flags_max_len = -1;                  nonoption_flags_max_len = -1;
446                else                else
447                  memset (__mempcpy (__getopt_nonoption_flags, orig_str, len),                  memset (mempcpy (__getopt_nonoption_flags, orig_str, len),
448                          '\0', nonoption_flags_max_len - len);                          '\0', nonoption_flags_max_len - len);
449              }              }
450          }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26