1. 12 Jul, 2011 26 commits
    • Bruno Haible's avatar
      Rename module 'c++defs' to 'snippet/c++defs'. · 6045c2ba
      Bruno Haible authored
      * modules/snippet/c++defs: Renamed from modules/c++defs.
      (Files, Makefile.am): Update.
      * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
      * modules/arpa_inet (Depends-on): Update.
      * modules/ctype (Depends-on): Update.
      * modules/dirent (Depends-on): Update.
      * modules/fcntl-h (Depends-on): Update.
      * modules/glob (Depends-on): Update.
      * modules/iconv-h (Depends-on): Update.
      * modules/langinfo (Depends-on): Update.
      * modules/locale (Depends-on): Update.
      * modules/math (Depends-on): Update.
      * modules/netdb (Depends-on): Update.
      * modules/poll-h (Depends-on): Update.
      * modules/pty (Depends-on): Update.
      * modules/search (Depends-on): Update.
      * modules/signal (Depends-on): Update.
      * modules/spawn (Depends-on): Update.
      * modules/stdio (Depends-on): Update.
      * modules/stdlib (Depends-on): Update.
      * modules/string (Depends-on): Update.
      * modules/strings (Depends-on): Update.
      * modules/sys_ioctl (Depends-on): Update.
      * modules/sys_select (Depends-on): Update.
      * modules/sys_socket (Depends-on): Update.
      * modules/sys_stat (Depends-on): Update.
      * modules/sys_time (Depends-on): Update.
      * modules/sys_wait (Depends-on): Update.
      * modules/termios (Depends-on): Update.
      * modules/time (Depends-on): Update.
      * modules/unistd (Depends-on): Update.
      * modules/wchar (Depends-on): Update.
      * modules/wctype-h (Depends-on): Update.
      6045c2ba
    • Bruno Haible's avatar
      Rename module 'arg-nonnull' to 'snippet/arg-nonnull'. · 95e1b7bd
      Bruno Haible authored
      * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
      (Files, Makefile.am): Update.
      * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
      * modules/argv-iter (Depends-on): Update.
      * modules/arpa_inet (Depends-on): Update.
      * modules/dirent (Depends-on): Update.
      * modules/fcntl-h (Depends-on): Update.
      * modules/fnmatch (Depends-on): Update.
      * modules/getopt-posix (Depends-on): Update.
      * modules/glob (Depends-on): Update.
      * modules/iconv-h (Depends-on): Update.
      * modules/inttypes-incomplete (Depends-on): Update.
      * modules/locale (Depends-on): Update.
      * modules/math (Depends-on): Update.
      * modules/netdb (Depends-on): Update.
      * modules/search (Depends-on): Update.
      * modules/signal (Depends-on): Update.
      * modules/spawn (Depends-on): Update.
      * modules/stdio (Depends-on): Update.
      * modules/stdlib (Depends-on): Update.
      * modules/string (Depends-on): Update.
      * modules/strings (Depends-on): Update.
      * modules/sys_socket (Depends-on): Update.
      * modules/sys_stat (Depends-on): Update.
      * modules/sys_time (Depends-on): Update.
      * modules/sys_times (Depends-on): Update.
      * modules/sys_utsname (Depends-on): Update.
      * modules/time (Depends-on): Update.
      * modules/unistd (Depends-on): Update.
      * modules/wchar (Depends-on): Update.
      * MODULES.html.sh (Support for building libraries and executables):
      Update.
      95e1b7bd
    • Paul Eggert's avatar
      972228da
    • Paul Eggert's avatar
      modules/_Exit-tests: test _Noreturn too · 98f5f49c
      Paul Eggert authored
      * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
      old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
      (main): Use them.
      98f5f49c
    • Paul Eggert's avatar
      stdnoreturn, stdnoreturn-tests: remove modules · 4b69a607
      Paul Eggert authored
      They're not needed here and a bit premature for use elsewhere.  See
      <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
      * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
      * tests/test-stdnoreturn.c: Remove files.
      * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
      * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
      * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
      and using noreturn.
      * modules/openat, modules/sigpipe-die, modules/xalloc:
      * modules/xmemdup0, modules/xstrtol:
      Remove dependency on stdnoreturn.
      4b69a607
    • Paul Eggert's avatar
      _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER. · 29b9f941
      Paul Eggert authored
      * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
      Reparenthesize to avoid GCC warning.
      Support Microsoft's syntax.
      * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
      29b9f941
    • Paul Eggert's avatar
      _Noreturn-tests: remove module · 5e065fab
      Paul Eggert authored
      * modules/_Noreturn-tests: Remove.
      * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
      * tests/test-_Noreturn.c: Remove.
      * tests/test-stdnoreturn.c: Merge from the old
      tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
      5e065fab
    • Paul Eggert's avatar
      * top/maint.mk: Adjust to new noreturn support. · c3264f06
      Paul Eggert authored
      (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
      (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
      c3264f06
    • Paul Eggert's avatar
      xalloc: use stdnoreturn.h · a046525c
      Paul Eggert authored
      * lib/xalloc.h: Include <stdnoreturn.h>.
      (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
      * modules/xalloc (Depends-on): Add stdnoreturn.
      a046525c
    • Paul Eggert's avatar
      xstrtol: use stdnoreturn.h · b067a2ba
      Paul Eggert authored
      * lib/xstrtol.h: Include <stdnoreturn.h>.
      (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
      * modules/xstrtol (Depends-on): Add stdnoreturn.
      b067a2ba
    • Paul Eggert's avatar
      xmemdup0: use stdnoreturn.h · 2c2ff7ee
      Paul Eggert authored
      * lib/xmemdup0.h: Include <stdnoreturn.h>.
      (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
      * modules/xmemdup0 (Depends-on): Add stdnoreturn.
      2c2ff7ee
    • Paul Eggert's avatar
      sigpipe-die: use stdnoreturn.h · 96924181
      Paul Eggert authored
      * lib/sigpipe-die.h: Include <stdnoreturn.h>.
      (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
      * modules/sigpipe-die (Depends-on): Add stdnoreturn.
      96924181
    • Paul Eggert's avatar
      openat: use stdnoreturn.h · 6bddfff3
      Paul Eggert authored
      * lib/openat.h: Include <stdnoreturn.h>.
      (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
      * modules/openat (Depends-on): Add stdnoreturn.
      6bddfff3
    • Paul Eggert's avatar
      5e2a6b1f
    • Paul Eggert's avatar
      d4dd1df2
    • Paul Eggert's avatar
      * lib/glthread/thread.h: Modernize comment. · f2607506
      Paul Eggert authored
      f2607506
    • Paul Eggert's avatar
      obstack: use _Noreturn · e55e4a83
      Paul Eggert authored
      * lib/obstack.c (__attribute__): Remove macro.
      (print_and_abort): Use _Noreturn.
      e55e4a83
    • Paul Eggert's avatar
      c-stack: use _Noreturn · 64558173
      Paul Eggert authored
      * lib/c-stack.c (die, overflow_handler, segv_handler):
      Use _Noreturn rather than __attribute__((noreturn)).
      64558173
    • Paul Eggert's avatar
      exclude_tests: use _Noreturn · 6267b9ec
      Paul Eggert authored
      6267b9ec
    • Paul Eggert's avatar
      argmatch-tests: use _Noreturn · 48fa9343
      Paul Eggert authored
      * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Remove.
      (ARGMATCH_DIE_DECL): Use _Noreturn instead.
      48fa9343
    • Paul Eggert's avatar
      stdlib: use _Noreturn · f67969b0
      Paul Eggert authored
      * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
      (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
      * modules/stdlib (Depends-on): Add _Noreturn.
      (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
      f67969b0
    • Paul Eggert's avatar
      stdnoreturn-tests: new module · 1287b65e
      Paul Eggert authored
      * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
      1287b65e
    • Paul Eggert's avatar
      stdnoreturn: new module · a64f6695
      Paul Eggert authored
      * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
      * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
      a64f6695
    • Paul Eggert's avatar
      _Noreturn-tests: new module · 43c4ede2
      Paul Eggert authored
      * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
      43c4ede2
    • Paul Eggert's avatar
      _Noreturn: new module · ca825ce3
      Paul Eggert authored
      * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
      New section, mentioning it.
      * build-aux/_Noreturn.h, modules/_Noreturn: New files.
      ca825ce3
    • Paul Eggert's avatar
      8ac8d9b1
  2. 11 Jul, 2011 3 commits
    • Eric Blake's avatar
      ffs: new module · a918da4d
      Eric Blake authored
      Libvirt wants to use ffs() to avoid dragging in -lm for log2().
      
      * modules/ffs: New file.
      * m4/ffs.m4: Likewise.
      * lib/ffs.c: Likewise.
      * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
      * modules/strings (Makefile.am): Substitute witness.
      (Depends-on): Add c++defs.
      * lib/strings.in.h (ffs): Declare.
      * modules/ffs-tests: New test file.
      * tests/test-ffs.c: Test new module.
      * MODULES.html.sh (Integer arithmetic functions): Mention it.
      * doc/posix-functions/ffs.texi (ffs): Likewise.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      a918da4d
    • Eric Blake's avatar
      * ChangeLog: Fix typo. · 00a829e2
      Eric Blake authored
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      00a829e2
    • Eric Blake's avatar
      regex: avoid compiler warning · 77e4a0d2
      Eric Blake authored
      Although glibc leaks strcasecmp through <string.h>, this behavior
      is not required by POSIX, and HP NonStop needs <strings.h>
      
      * lib/regex.c (includes): Include <strings.h>, for use of
      strcasecmp in regcomp.c.
      Reported by Jachim Schmitz.
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      77e4a0d2
  3. 09 Jul, 2011 3 commits
  4. 08 Jul, 2011 8 commits