lib/getopt_.h


Log

Author Commit Date CI Message
Bruno Haible 8fac1a69 2007-03-09T00:33:15 Convert tabs in the middle of preprocessor directives.
Eric Blake 7b9878d5 2006-11-01T13:14:15 * lib/getopt_.h: Fix comments.
Paul Eggert 7c3f8da8 2005-09-23T04:15:13 Sync from coreutils. * .cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h, stat-time.h. * argmatch.h: Include verify.h (ARGMATCH_VERIFY): Use verify rather than rolling our own. (ARGMATCH_ASSERT): Remove; unused. * canonicalize.c: Assume STDC_HEADERS. * exclude.c: Include "strcase.h". * regex_internal.h [!defined _LIBC]: Likewise. * getusershell.c: Include stdio--.h rather than stdio.h and stdio-safer.h. (getusershell): Call fopen, not fopen_safer. * save-cwd.c: Include fcntl--.h rather than fcntl.h. Do not include unistd-safer.h. (save_cwd): Don't call fd_safer; no longer needed now that we include fcntl--.h. * modules/argmatch (Depends-on): Add verify. * modules/getloadavg (Depends-on): Depend on fcntl-safer, not unistd-safer. * modules/save-cwd (Depends-on): Likewise. * backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4: * fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4: * getugroups.m4, group-member.m4, idcache.m4, link-follow.m4: * mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4: * physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4: * save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4: * userspec.m4, xgetcwd.m4, xreadlink.m4: Don't bother checking for string.h, stdlib.h, unistd.h. * fts.m4 (gl_FUNC_FTS_CORE): Don't require AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat module's job. * jm-macros.m4 (gl_MACROS): Likewise. * prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT. * backupfile.c: Use ARGMATCH_VERIFY, just in case. * posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just the .tm_year member, since otherwise gcc-4.0 would now warn about tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday. * quotearg.c (quotearg_n_options): Change code to be suboptimal, in order to avoid an unsuppressible warning from gcc on 64-bit systems. * lstat.m4 (gl_FUNC_LSTAT): Use AC_LIBSOURCES to require lstat.c and lstat.h. Remove obsolete comment. * xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ. * xstrtod.m4: Likewise.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Jim Meyering c73a1f61 2004-11-23T21:43:14 remove trailing blanks
Sergey Poznyakoff df814656 2004-11-23T02:50:54 Re-addition of __getopt_argv_const caused redefinition warnings. To avoid them, include the defines in `#if !defined __need_getopt ... #endif'. The only place where __getopt_argv_const is used is in definitions of getopt_long and getopt_long_only below, which are as well protected by `#ifndef __need_getopt'. [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef __need_getopt after including <stdio.h> and <unistd.h> These headers might have defined it.
Paul Eggert d62116ed 2004-11-21T07:22:02 Fix brain cramp in previous checkin.
Paul Eggert 1d82398e 2004-11-21T05:10:10 (__CONCAT): New macro. (getopt, getopt_long, getopt_long_only, optarg, opterr, optind, optopt): Use it instead of invoking ## directly; otherwise, the symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
Paul Eggert 3e6466c9 2004-11-17T01:53:27 (__getopt_argv_const): Bring it back. (getopt_long, getopt_long_only): Use it.
Paul Eggert 06ee59a5 2004-11-17T01:13:54 Merge from coreutils to support a more-standard getopt.
Paul Eggert f58b957b 2004-11-11T21:14:57 (__getopt_argv_const): New macro, to be used so that we can stop lying to compilers about the constness of argv when we are compiled outside glibc. (getopt, getopt_long, getopt_long_only): Use it. [defined __GETOPT_PREFIX && !defined __need_getopt]: Include <stdlib.h> and <stdio.h>, too.
Paul Eggert 1c64ecc4 2004-11-11T20:24:58 [defined __GETOPT_PREFIX && !defined __need_getopt]: Include <unistd.h> if available. Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for the other external symbols. (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style declaration, since the above renaming now works around collisions.
Paul Eggert e474e7f4 2004-08-12T08:05:22 Renamed from getopt.h.