1. 10 Feb, 2011 1 commit
  2. 09 Feb, 2011 2 commits
  3. 08 Feb, 2011 1 commit
    • 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.
  4. 07 Feb, 2011 1 commit
  5. 06 Feb, 2011 2 commits
  6. 05 Feb, 2011 1 commit
  7. 03 Feb, 2011 1 commit
  8. 31 Jan, 2011 2 commits
    • Eli Zaretskii's avatar
      Fix the MS-Windows build broken by 2011-01-30T23:34:18Z!eggert@cs.ucla.edu and... · 70b0d280
      Eli Zaretskii authored
      Fix the MS-Windows build broken by 2011-01-30T23:34:18Z!eggert@cs.ucla.edu and 2011-01-31T08:15:13Z!eggert@cs.ucla.edu.
       lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/strftime.$(O) and
       ($(BLD)/dtoastr.$(O)): Depend on $(EMACS_ROOT)/src/s/ms-w32.h and
       ($(BLD)/time_r.$(O)): Define prerequisites.
       src/makefile.w32-in (OBJ2): Remove strftime.$(O).
       ($(BLD)/strftime.$(O)): Remove prerequisites.
       lib-src/makefile.w32-in (VERSION): Don't define, defined on nt/config.nt.
       ($(BLD)/emacsclient.$(O)): Don't depend on makefile.w32-in.
       nt/config.nt (VERSION): Uncomment definition.
       (restrict): Define.
       nt/inc/stdbool.h: New file.
       admin/admin.el (set-version): Remove lib-src/makefile.w32-in.  Add
    • Paul Eggert's avatar
  9. 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.
  10. 29 Jan, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and... · f915f0f7
      Eli Zaretskii authored
      Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de.
       lib/getopt_.h: New files.
       src/s/ms-w32.h (HAVE_MKTIME): Remove.
       src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
       (GNULIB): New variable.
       (LIBS): Add $(GNULIB).
       $(TEMACS): Depend on $(GNULIB).
       <top-level>: Fix font-lock disrupted by a lone `"'.
       src/makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
       (GETOPTOBJS, GETOPTDEPS): Remove targets.
       (MOVEMAILOBJS): Replace $(GETOPTOBJS) with ../lib/$(BLD)/libgnu.$(A).
       ($(BLD)/movemail.exe): Depend on ../lib/getopt.h.
       and getopt1.o with ../lib/$(BLD)/libgnu.$(A).
       (clean): Don't remove getopt.h.
       (getopt.h, $(BLD)/getopt.$(O), $(BLD)/getopt1.$(O)): Remove targets.
       ($(BLD)/ctags.$(O), $(BLD)/etags.$(O)): Replace getopt.h with
       nt/makefile.w32-in (all-other-dirs-nmake, all-other-dirs-gmake)
       (bootstrap-nmake, bootstrap-gmake, bootstrap-clean-nmake)
       (bootstrap-clean-gmake, clean-other-dirs-nmake)
       (clean-other-dirs-gmake, cleanall-other-dirs-nmake)
       (cleanall-other-dirs-gmake, distclean-other-dirs-nmake)
       (distclean-other-dirs-gmake, maintainer-clean-other-dirs-nmake)
       (maintainer-clean-other-dirs-gmake): Recurse into ../lib as well.
       nt/configure.bat: Create lib/makefile.
       nt/config.nt (HAVE_MKTIME, BROKEN_MKTIME): Remove.
       (_GL_UNUSED, _UNUSED_PARAMETER_): Add definitions, for gnulib.
  11. 28 Jan, 2011 1 commit
    • Paul Eggert's avatar
      improve fix for MS-DOS file name clash · c7e95b91
      Paul Eggert authored
      * Makefile.in (DOS_gnulib_comp.m4): Renamed from DOS-gnulib-comp.m4,
      for portability to POSIX make.  Reported by Bruno Haible.
      (sync-from-gnulib): Copy gl-comp.m4 (if present) back to
      gnulib-comp.m4 before running gnulib-tool, to prevent old gnulib
      files from accumulating as garbage.  Also reported by Bruno Haible.
  12. 27 Jan, 2011 2 commits
  13. 26 Jan, 2011 1 commit
  14. 25 Jan, 2011 3 commits
  15. 24 Jan, 2011 1 commit
  16. 23 Jan, 2011 1 commit
  17. 22 Jan, 2011 3 commits
    • Paul Eggert's avatar
      aclocal.m4: put this file back into repository · e02ea74b
      Paul Eggert authored
      This way, we don't have to assume that the maintainer has
      the automake package installed.  See
      * .bzrignore: Remove aclocal.m4, undoing the previous change.
      * Makefile.in (top_maintainer_clean): Do not remove aclocal.m4,
      undoing the previous change.
      * aclocal.m4: New file (actually, resurrected).
    • Miles Bader's avatar
      configure.in: Don't zero-out FONTCONFIG_CFLAGS and FONTCONFIG_LIBS · 48dcd482
      Miles Bader authored
      when building with XFT (doing so is incorrect, as Emacs directly uses
      fontconfig, and breaks building when using a strict linker).
    • 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.
  18. 21 Jan, 2011 1 commit
  19. 20 Jan, 2011 1 commit
  20. 19 Jan, 2011 1 commit
  21. 18 Jan, 2011 2 commits
  22. 17 Jan, 2011 1 commit
    • Paul Eggert's avatar
      Makefile.in: tidy up the building of lib · 3cbecb8f
      Paul Eggert authored
      * Makefile.in (am--refresh): Mark as .PHONY.
      (top_maintainer_clean): Don't remove lib/gnulib.mk m4/gnulib-cache.m4,
      as they're not rebuilt unless you do a "make sync-from-gnulib"
      and the former is needed for "configure".
      (maintainer-clean): Don't recurse into lib, as "make bootstrap-clean"
      has already removed lib/Makefile.
  23. 15 Jan, 2011 2 commits
  24. 14 Jan, 2011 1 commit
    • Paul Eggert's avatar
      * make-dist: Distribute test/ files too. · 9f4b8b47
      Paul Eggert authored
      Distribute every file under test/ that is under version control,
      using patterns like *.el to capture files that are added later.
      Without this change, "configure" would fail, because it would
      attempt to build from a Makefile.in that was not distributed.
  25. 12 Jan, 2011 3 commits
  26. 09 Jan, 2011 2 commits