summaryrefslogtreecommitdiff
path: root/src/system.h
AgeCommit message (Collapse)Author
2006-01-11(X2NREALLOC): Now that verify_true is no longer void,Jim Meyering
cast its result to void, to avoid gcc's warning that ``left-hand operand of comma expression has no effect''. (DECIMAL_DIGIT_ACCUMULATE, X2REALLOC): Likewise.
2006-01-10Sync from gnulib.Paul Eggert
2006-01-03(O_DIRECTORY) [!defined O_DIRECTORY]: Define.Jim Meyering
2005-12-07(O_NOATIME): Define to 0 if not already defined.Paul Eggert
2005-09-28* src/system.h (LONGEST_MODIFIER): Use ULONG_MAX_LT_ULLONG_MAXPaul Eggert
instead of ULLONG_MAX, as the latter doesn't work with GCC 2.7.2.1.
2005-09-23Don't include utime.h; not needed.Paul Eggert
(struct utimbuf) [!defined HAVE_STRUCT_UTIMBUF]: Remove; not needed.
2005-09-22(X2NREALLOC, X2REALLOC): Moved here fromPaul Eggert
../lib/xalloc.h, with args properly parenthesized, and using verify_expr rather than the old VERIFY_EXPR.
2005-08-23Remove unnecessary parens in `#if defined (SYMBOL)' expressions.Jim Meyering
2005-07-11(setmode, fileno): Remove; no longer needed, we think.Paul Eggert
(SET_MODE, SET_BINARY, SET_BINARY2): Remove. [defined __DJGPP__]: Don't include <io.h> or <sys/exceptn.h>.
2005-07-06remove stray `=' from commentJim Meyering
2005-07-05(DECIMAL_DIGIT_ACCUMULATE): Generate a hard errorPaul Eggert
(not just a warning) if GCC is used and the types don't match.
2005-07-05(VERIFY_W_TYPEOF): Remove; no longer needed.Paul Eggert
(DECIMAL_DIGIT_ACCUMULATE): Change last arg from T's maximum value to T itself. All callers changed. Check that T is unsigned, and that Accum is of type T. This fixes a bug in the unlikely case where SIZE_MAX <= INT_MAX, and it no longer requires typeof to do the proper validity checks.
2005-07-05(VERIFY_W_TYPEOF): Adjust to verify.h change.Paul Eggert
2005-07-04Include "verify.h".Jim Meyering
2005-07-04(verify): Rename from VERIFY_EXPR, to be lower case,Jim Meyering
like assert. Use sizeof, rather than equivalent ((...)0), for it's slightly simpler syntax. Suggestions from Paul Eggert. (verify_decl): Rename from VERIFY.
2005-07-01Assume HAVE_UNISTD_H.Jim Meyering
2005-07-01Assume HAVE_FCNTL_H (i.e., include <fcntl.h>Jim Meyering
unconditionally, and don't include <sys/file.h>).
2005-06-30(VERIFY): Guard definition with #ifndef.Jim Meyering
(VERIFY_EXPR): Undef before defining.
2005-06-29Use one fewer helper macro.Jim Meyering
2005-06-29(VERIFY): Rewrite to use string-concatenationJim Meyering
and __LINE__ so as not to require a struct name parameter. (GL_CONCAT, GL_CONCAT2, GL_LINE_CONCAT): Define helper macros.
2005-06-10(VERIFY_W_TYPEOF): Add parentheses.Jim Meyering
2005-06-02Don't use "path" or "filename".Paul Eggert
2005-05-30Don't bother mentioning _POSIX_VERSION in comment.Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-04-09Readability nit:Jim Meyering
Change this: # define __attribute__(x) to this: # define __attribute__(x) /* empty */
2005-04-09(RETSIGTYPE): Remove; no longer needed. All uses replaced with void.Paul Eggert
2005-04-04(USAGE_BUILTIN_WARNING): remove trailing newlineJim Meyering
2005-04-04(USAGE_BUILTIN_WARNING): New macro.Jim Meyering
2005-03-29(ptr_align): Declare `ptr' parameter to be aJim Meyering
`const' pointer, since this function never writes through it.
2005-03-29Remove #if-0'd-out code.Jim Meyering
2005-03-28(GETOPT_HELP_OPTION_DECL): Use NULL, not `0'.Jim Meyering
(GETOPT_VERSION_OPTION_DECL): Likewise.
2005-03-25(DECIMAL_DIGIT_ACCUMULATE): Reverse the sense ofJim Meyering
the return value, and update callers:
2005-03-18comment tweakJim Meyering
2005-03-18Add comments for new macros.Jim Meyering
2005-03-17Make __typeof__-using code depend on HAVE_TYPEOF, not __GNUC__,Jim Meyering
since so many other C compilers also honor __typeof__.
2005-03-17spacing nitJim Meyering
2005-03-17Fix typo.Jim Meyering
2005-03-17(DECIMAL_DIGIT_ACCUMULATE): The use of __typeof__ must be conditional.Jim Meyering
2005-03-17(VERIFY, VERIFY_EXPR, DECIMAL_DIGIT_ACCUMULATE): New macros.Jim Meyering
2005-03-09Include intprops.h.Paul Eggert
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_STRLEN_BOUND): Remove; they are now defined in intprops.h.
2005-02-03Include "memrchr.h".Paul Eggert
(memrchr) [!HAVE_DECL_MEMRCHR]: Remove decl.
2005-01-24Use S_BLKSIZE value for ST_NBLOCKSIZE where available.Jim Meyering
2005-01-03* m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.Paul Eggert
* m4/ullong_max.m4: New file. * src/system.h: Undo previous change; we now use Autoconf.
2005-01-03If PRIdMAX, PRIoMAX, PRIuMAX, and PRIxMAX areJim Meyering
not all defined and either ULONG_MAX or ULLONG_MAX is not defined, then fail at compile-time rather than let tools like od produce invalid results at run time.
2004-12-02Assume locale.h exists.Paul Eggert
(HAVE_SETLOCALE): Remove.
2004-11-03Don't #define and #undef getopt around <stdlib.h>,Paul Eggert
as this breaks the new regime that does "#define getopt rpl_getopt".
2004-08-08(O_BINARY) [!O_BINARY && defined O_BINARY]:Paul Eggert
Do not define, to avoid annoying compiler messages on QNX 6.3.
2004-08-04(PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX):Paul Eggert
Define to a concatenation of string literals, not to an expression; needed for concatenation contexts. (INTMAX_MAX, INTMAX_MIN): New macros.
2004-08-02(ptr_align): Use size_t; in practice, this is just asPaul Eggert
good as uintptr_t in checking for alignments, and has fewer configuration hassles.