1. 20 Feb, 2011 1 commit
    • Paul Eggert's avatar
      Import filemode module from gnulib. · 5fa4ac76
      Paul Eggert authored
      * .bzrignore: Add lib/sys/.
      * Makefile.in (GNULIB_MODULES): Add filemode.
      * lib/Makefile.am (MOSTLYCLEANDIRS): New macro.
      * lib/filemode.c: Renamed from src/filemode.c and regenerated
      from gnulib.  This adds support for some more file types, e.g.,
      Cray DMF migrated files.
      * lisp/emacs-lisp/find-gc.el (find-gc-source-files): Remove filemode.c.
      * lib/filemode.h, lib/sys_stat.in.h, m4/filemode.m4, m4/st_dm_mode.m4:
      * m4/sys_stat_h.m4: New files, generated from gnulib.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>
  2. 19 Feb, 2011 1 commit
    • Paul Eggert's avatar
      Import simpler crypto/md5 module from gnulib, plus stdint module. · 5f90be1b
      Paul Eggert authored
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      * src/config.in: Regenerate.
      * lib/md5.c, lib/md5.h: Regenerate with simpler version, which
      assumes C99-style <stdint.h>, supplied by the stdint module.
      * lib/stdint.in.h, m4/longlong.m4, m4/stdint.m4: New files,
      generated from gnulib.
      * src/deps.mk (fns.o): Do not depend on md5.h, fixing a typo in
      the earlier patch.
  3. 18 Feb, 2011 2 commits
    • Paul Eggert's avatar
      Import crypto/md5 module from gnulib. · 942f733f
      Paul Eggert authored
      * Makefile.in (MAKEFILE_MODULES): Add crypto/md5.
      * admin/notes/copyright: Remove src/md5.c and src/md5.h as
      special cases.
      * src/Makefile.in (base_obj): Remove md5.o, since this file
      is in lib now.
      * src/deps.mk (md5.o): Remove.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      * lib/md5.c: Regenerate.  This renames the file from src/md5.c,
      and adds some porting improvements from gnulib.
      * lib/md5.h: Regenerate, likwise; rename from src/md5.h.
      * m4/md5.m4: New file, from gnulib.
      2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
    • Paul Eggert's avatar
      Import IRIX 6.5 getloadavg fixes from gnulib. · 7d315eb6
      Paul Eggert authored
      * configure, lib/getloadavg.c, m4/getloadavg.m4: Regenerate.
  4. 16 Feb, 2011 1 commit
  5. 15 Feb, 2011 2 commits
  6. 10 Feb, 2011 1 commit
  7. 08 Feb, 2011 2 commits
    • Tom Tromey's avatar
      Make globals.h a generated header · 00b3c7ac
      Tom Tromey authored
      	* configure: Rebuild.
      	* configure.in (NS_OBJC_OBJ): New subst.
      	* make-docfile.c: Unconditionally include stdlib.h.
      	(generate_globals): New global.
      	(xrealloc): New function.
      	(main): Handle '-g'.  Call start_globals, write_globals.
      	(scan_file): Conditionally call put_filename.
      	(start_globals): New function.
      	(struct global): New.
      	(num_globals, globals): New globals.
      	(add_global, compare_globals, write_globals): New functions.
      	(scan_c_file): Update for "-g".
      	(scan_lisp_file): Fail if "-g".
      	(enum global_type): New.
      	* Makefile.in (NS_OBJC_OBJ): New variable.
      	(base_obj): Rename from 'obj'.
      	(obj): New variable.
      	(globals.h, gl-stamp, $(obj)): New targets.
      	(GLOBAL_SOURCES): New variable.
      	* globals.h: Remove.
      	* nsselect.m (Vselection_alist): Define.  Reverts part of
      	* buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
      	* xselect.c (Vselection_alist): Define.  Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
    • Paul Eggert's avatar
      Import getloadavg module from gnulib. · 79ab4b7f
      Paul Eggert authored
  8. 05 Feb, 2011 1 commit
  9. 03 Feb, 2011 1 commit
  10. 01 Feb, 2011 1 commit
  11. 31 Jan, 2011 1 commit
  12. 30 Jan, 2011 2 commits
    • Paul Eggert's avatar
      strftime: import from gnulib · 16c3e636
      Paul Eggert authored
    • Paul Eggert's avatar
      gnulib: import mktime and move-if-change fixes from gnulib · 3de84ad9
      Paul Eggert authored
      * configure: Regenerate from the following.
      2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
      mktime: clarify long_int width checking
      * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
      the top level, to make it clearer that the assumption about
      long_int width is being checked.  See
      2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
      TYPE_MAXIMUM: avoid theoretically undefined behavior
      * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
      negative number, which the C Standard says has undefined behavior.
      In practice this is not a problem, but might as well do it by the book.
      Reported by Rich Felker and Eric Blake; see
      * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
      * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
      mktime: #undef mktime before #defining it
      * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
      mktime: systematically normalize tm_isdst comparisons
      * lib/mktime.c (isdst_differ): New function.
      (__mktime_internal): Use it systematically for all isdst comparisons.
      This completes the fix for libc BZ #6723, and removes the need for
      normalizing tm_isdst.  See
      (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
      mktime: fix some integer overflow issues and sidestep the rest
      This was prompted by a bug report by Benjamin Lindner for MinGW
      His bug is due to signed integer overflow (0 - INT_MIN), and I
      I scanned through mktime.c looking for other integer overflow
      problems, fixing all the bugs I found.
      Although the C Standard says the resulting code is still not safe
      in the presence of integer overflow, in practice it should be good
      enough for all real-world two's-complement implementations, except
      for debugging environments that deliberately trap on integer
      overflow (e.g., gcc -ftrapv).
      * lib/mktime.c (WRAPV): New macro.
      (SHR): Also check that long_int and time_t shift right in the
      usual way, before using the fast-but-unportable method.
      used.  The code already assumed two's complement, so there's
      no need to test for alternatives.  All uses removed.
      (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
      the C standard.  Problem reported by Rich Felker in
      (twos_complement_arithmetic): Also check long_int and time_t.
      (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
      (guess_time_tm, ranged_convert, __mktime_internal): Use them.
      (__mktime_internal): Avoid integer overflow with unary subtraction
      in two instances where -1 - X is an adequate replacement for -X,
      since the calculations are approximate.
      2011-01-29  Eric Blake  <eblake@redhat.com>
      mktime: avoid infinite loop
      * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
      type; behavior is still undefined but portable to all known targets.
      Reported by Rich Felker.
      2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
      mktime: avoid problems on NetBSD 5 / i386
      * lib/mktime.c (long_int): New type.  This works around a problem
      on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
      but time_t is 64 bits, and where I expect the existing code is
      wrong in some cases.
      (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
      (ydhms_diff): Bring back the compile-time check for wide-enough
      year and yday.
      mktime: fix misspelling in comment
      * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
      This merges all recent glibc changes of importance.
      2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
      move-if-change: cope with concurrent mv of identical file.
      * move-if-change (CMPPROG): Accept environment
      variable as an override for `cmp'.
      (usage): Document CMPPROG.
      Adjust comparison to drop stdout.  Cope with failure of mv if
      the target file exists and is identical to the source, for
      parallel builds.
      Report from H.J. Lu against binutils in PR binutils/12283.
  13. 27 Jan, 2011 2 commits
  14. 24 Jan, 2011 1 commit
  15. 23 Jan, 2011 1 commit
  16. 22 Jan, 2011 2 commits
    • Miles Bader's avatar
      Update configure · 9ba41eb9
      Miles Bader authored
    • Paul Eggert's avatar
      src/config.in: shrink slightly · b06b1098
      Paul Eggert authored
      * configure.in: Invoke the new gnulib macro gl_ASSERT_NO_GNULIB_TESTS.
      This makes src/config.in a bit smaller, by removing identifiers
      like GNULIB_TEST_MKTIME that Emacs does not need.
      * m4/getopt.m4, m4/gnulib-common.m4, m4/include_next.m4:
      * m4/multiarch.m4, m4/stddef_h.m4, m4/time_h.m4, m4/unistd_h.m4:
      Sync from gnulib.  This removes a few more unnecessary symbols from
      src/config.in, such as AA_APPLE_UNIVERSAL_BUILD and HAVE_STDDEF_H.
      * configure, src/config.in: Regenerate.
  17. 18 Jan, 2011 1 commit
  18. 15 Jan, 2011 2 commits
  19. 12 Jan, 2011 3 commits
  20. 09 Jan, 2011 4 commits
  21. 08 Jan, 2011 1 commit
    • Paul Eggert's avatar
      Regenerate. · 743c80a7
      Paul Eggert authored
      * aclocal.m4, compile, depcomp, lib/Makefile.in, lib/dummy.c:
      * lib/gnulib.mk, m4/00gnulib.m4, m4/gnulib-cache.m4:
      * m4/gnulib-common.m4, m4/gnulib-comp.m4, m4/gnulib-tool.m4, missing:
      New files, generated automatically, with 'make sync-from-gnulib'
      followed by 'make'.
      * configure, lisp/dired.el, src/config.in: Regenerate.
  22. 05 Jan, 2011 2 commits
  23. 29 Dec, 2010 1 commit
  24. 10 Dec, 2010 3 commits
  25. 04 Dec, 2010 1 commit