comparison lib/userspec.c @ 4333:fcd34d3861a4

in lib: * addext.c, backupfile.c, fsusage.c, human.c, pathmax.h, rpmatch.c, userspec.c, xreadlink.c, xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H. * backupfile.c, fsusage.c, hash.c, human.c, safe-read.c, userspec.c, xstrtol.c (CHAR_BIT) : Don't define, since <limits.h> is guaranteed to do that. * fatal.c: Include <stdarg.h> without checking for __STDC__. * exclude.c: Include <stdbool.h> unconditionally. * tempname.c: Include <stddef.h> unconditionally. * hash.c: Include <limits.h>, since we no longer define CHAR_BIT. * modechange.c, rpmatch.c (NULL): Don't define, since <stddef.h> does that. * quote.c: Dont include <stddef.h> or <sys/types.h>; not needed. * safe-read.c (INT_MAX): Don't define, since <limits.h> does that. * safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer needed. * xstrtol.c: Likewise. * safe-read.c: Remove TYPE_SIGNED; no longer needed. * savedir.c: Include <stddef.h> instead of defining NULL. in m4: * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h. * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise. * human.m4 (gl_HUMAN): Likewise. * pathmax.m4 (gl_PATHMAX): Likewise. * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise. * userspec.m4 (gl_USERSPEC): Likewise. * xreadlink.m4 (gl_XREADLINK): Likewise. * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise. * quote.m4 (gl_QUOTE): Don't check for stddef.h.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 29 May 2003 07:21:59 +0000
parents 99ea86c79f44
children ff249a314eac
comparison
equal deleted inserted replaced
4332:b459be4ef089 4333:fcd34d3861a4
30 30
31 #if HAVE_SYS_PARAM_H 31 #if HAVE_SYS_PARAM_H
32 # include <sys/param.h> 32 # include <sys/param.h>
33 #endif 33 #endif
34 34
35 #if HAVE_LIMITS_H 35 #include <limits.h>
36 # include <limits.h>
37 #endif
38 36
39 #if HAVE_STRING_H 37 #if HAVE_STRING_H
40 # include <string.h> 38 # include <string.h>
41 #else 39 #else
42 # include <strings.h> 40 # include <strings.h>
70 # define endgrent() ((void) 0) 68 # define endgrent() ((void) 0)
71 #endif 69 #endif
72 70
73 #ifndef HAVE_ENDPWENT 71 #ifndef HAVE_ENDPWENT
74 # define endpwent() ((void) 0) 72 # define endpwent() ((void) 0)
75 #endif
76
77 #ifndef CHAR_BIT
78 # define CHAR_BIT 8
79 #endif 73 #endif
80 74
81 /* The extra casts work around common compiler bugs. */ 75 /* The extra casts work around common compiler bugs. */
82 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) 76 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
83 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0. 77 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.