1. 14 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · fac0bb9c
      Paul Eggert authored
      This incorporates:
      2017-03-14 snippets: move unadjusted snippet sources to lib
      2017-03-14 gnulib-tool: fix typo in comment output
      2017-03-14 snippets: work around GNU Make 3.82 VPATH
      2017-03-13 gnulib-tool: minor --gnu-make fixups
      2017-03-12 gnulib-tool: new option --gnu-make
      * .gitignore: Remove lib/arg-nonnull.h, lib/c++defs.h,
      lib/warn-on-use.h.  Change exception from
      build-aux/snippet/_Noreturn.h to lib/_Noreturn.h.
      * admin/authors.el (authors-renamed-files-regexps):
      * admin/notes/copyright, make-dist:
      The snippet files moved from build-aux/snippet to lib.
      * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
      * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
      * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
      fac0bb9c
  2. 12 Mar, 2017 1 commit
    • Paul Eggert's avatar
      Remove some stray gnulib files · 026c2cbf
      Paul Eggert authored
      * admin/merge-gnulib: rm m4/gnulib-tool.m4 too.
      (GNULIB_MODULES): Remove unsetenv, as it is not needed and
      the --avoid=unsetenv option avoided most of it anyway.
      * lib/unsetenv.c, m4/gnulib-tool.m4, m4/setenv.m4: Remove.
      * lib/gnulib.mk: Regenerate.
      026c2cbf
  3. 03 Mar, 2017 1 commit
    • Paul Eggert's avatar
      logb now works correctly on large integers · 74f87fd1
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add count-leading-zeros.
      * etc/NEWS: Document the change.
      * lib/count-leading-zeros.c, lib/count-leading-zeros.h:
      * m4/count-leading-zeros.m4: New files, copied from Gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/floatfns.c: Include count-leading-zeros.h.
      (Flogb): Do not convert fixnum to float before taking the log,
      as the rounding error can cause the answer to be off by 1.
      * src/lisp.h (EMACS_UINT_WIDTH): New constant.
      * test/src/floatfns-tests.el (logb-extreme-fixnum): New test.
      74f87fd1
  4. 01 Jan, 2017 2 commits
    • Paul Eggert's avatar
      Merge from gnulib · 5a59e28d
      Paul Eggert authored
      This incorporates:
      2016-12-19 stdint: Fix WINT_MAX to match wint_t on mingw
      2016-12-18 getopt: Fix link error for users of getopt() in <unistd.h>
      2016-12-17 getlogin: Port to newer mingw
      2016-12-17 stdint: Fix WINT_MAX to match wint_t on MSVC
      2016-12-17 Avoid redefinition errors on MSVC
      * lib/getopt.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/unistd.in.h:
      * m4/stdint.m4, m4/unistd_h.m4:
      Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      Plus, this commit updates the indenting on copyright notices to
      match that of gnulib.
      5a59e28d
    • Paul Eggert's avatar
      Update copyright year to 2017 · 5badc81c
      Paul Eggert authored
      Run admin/update-copyright.
      5badc81c
  5. 15 Dec, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 5942af61
      Paul Eggert authored
      This incorporates:
      2016-12-14 xalloc-oversized: check for PTRDIFF_MAX too
      2016-12-12 fpending: port to native Windows with MSVC
      * .gitignore: Do not ignore lib/stdio-impl.h.
      * lib/fpending.c, lib/xalloc-oversized.h, m4/fpending.m4:
      Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stdio-impl.h:
      New file, copied from gnulib.
      * nt/gnulib.mk (EXTRA_DIST): Add stdio-impl.h.
      5942af61
  6. 27 Oct, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 63eebff3
      Paul Eggert authored
      This incorporates:
      2016-10-16 qsort_r: Fix macrology for platforms that lack the function.
      2016-10-13 stdint: port SIZE_MAX to glibc s390
      2016-10-11 maint: remove stray space after "." in AC_DEFINE comment.
      * lib/gnulib.mk: Regenerate.
      * lib/stdlib.in.h, m4/st_dm_mode.m4, m4/stdint.m4, m4/stdlib_h.m4:
      * m4/utimes.m4: Copy from gnulib.
      63eebff3
  7. 21 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Port recent flexmember changes to NetBSD · c0603964
      Paul Eggert authored
      The NetBSD library supports localtime_rz directly, and without
      this change 'configure' omitted the flexmember test that is marked
      as conditional on localtime_rz.  Emacs now needs to use
      flexmember.m4 even when localtime_rz works.
      Problem reported by Thomas Klausner.
      * admin/merge-gnulib (GNULIB_MODULES): Add flexmember.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      c0603964
  8. 15 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 8f4b6a20
      Paul Eggert authored
      This incorporates:
      2016-09-15 stdint: support new _WIDTH macros
      2016-09-15 limits-h: new module
      2016-09-15 sys_types: avoid glibc 2.25 warnings about major()
      2016-09-15 extensions: port to more ISO C TSes
      2016-09-13 intprops: new macro TYPE_WIDTH
      2016-09-13 extensions: port to recent ISO C TRs
      * .gitignore: Add lib/limits.h.
      * doc/misc/texinfo.tex, lib/ftoastr.h, lib/intprops.h:
      * lib/stdint.in.h, m4/extensions.m4, m4/stdint.m4, m4/stdio_h.m4:
      * m4/sys_types_h.m4: Copy from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/limits.in.h, m4/limits-h.m4: New files, copie from gnulib.
      * nt/gnulib.mk: Merge changes from lib/gnulib.mk.
      8f4b6a20
  9. 08 Sep, 2016 1 commit
    • Paul Eggert's avatar
      Update from gnulib · 12a7e0f8
      Paul Eggert authored
      This incorporates:
      2016-09-07 flexmember: new macro FLEXALIGNOF
      2016-09-07 flexmember: port better to GCC + valgrind
      2016-08-18 Port modules to use getprogname explicitly
      2016-09-02 manywarnings: add -fno-common
      * admin/merge-gnulib (GNULIB_TOOL_FLAGS): Don’t avoid flexmember,
      since time_rz now uses part of it.  Instead, remove m4/flexmember.m4.
      * configure.ac (AC_C_FLEXIBLE_ARRAY_MEMBER): Define away,
      since Emacs assumes C99 and therefore removes m4/flexmember.m4.
      * lib/euidaccess.c, lib/group-member.c, lib/time_rz.c:
      * m4/manywarnings.m4: Copy from gnulib.
      * lib/flexmember.h: New file, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      12a7e0f8
  10. 21 Feb, 2016 1 commit
    • Paul Eggert's avatar
      Use Gnulib filevercmp for version comparison · 1f7feeca
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add filevercmp.
      * doc/lispref/strings.texi (Text Comparison):
      * etc/NEWS, src/fns.c:
      * test/src/fns-tests.el (fns-tests-string-version-lessp):
      Rename newly-introduced function to string-version-lessp, by
      analogy with strverscmp.
      * lib/filevercmp.c, lib/filevercmp.h: New files, copied from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * src/fns.c: Include <filevercmp.h>.
      (gather_number_from_string): Remove.
      (Fstring_version_lessp): Reimplement via filevercmp.
      1f7feeca
  11. 02 Feb, 2016 1 commit
    • Paul Eggert's avatar
      Build with C11 if available · b50075dd
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add std-gnu11.
      * m4/std-gnu11.m4: New file, from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      b50075dd
  12. 19 Jan, 2016 2 commits
    • Paul Eggert's avatar
      Avoid stdio in SIGINT handler · 564c84f4
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add ignore-value.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/ignore-value.h: New file, from gnulib.
      * src/keyboard.c: Include it.
      (write_stdout, read_stdin): New functions.
      (handle_interrupt): Use them instead of printf and getchar,
      and avoid fflush when handling signals.
      564c84f4
    • Paul Eggert's avatar
      Merge from gnulib · cd19641e
      Paul Eggert authored
      This mostly just updates copyright dates of gnulib files.
      It also updates to the latest version of texinfo.tex.
      cd19641e
  13. 03 Jan, 2016 1 commit
    • Paul Eggert's avatar
      Avoid stdio in SIGINT handler · e79b06e6
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add ignore-value.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/ignore-value.h: New file, from gnulib.
      * src/keyboard.c: Include it.
      (write_stdout, read_stdin): New functions.
      (handle_interrupt): Use them instead of printf and getchar,
      and avoid fflush when handling signals.
      e79b06e6
  14. 01 Jan, 2016 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 98253051
      Paul Eggert authored
      This mostly just updates copyright dates of gnulib files.
      It also updates to the latest version of texinfo.tex.
      98253051
  15. 18 Dec, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 73b3beb5
      Paul Eggert authored
      This mostly commentary fixes.
      * doc/misc/texinfo.tex, lib/intprops.h: Copy from gnulib.
      * lib/gnulib.mk: Regenerate with new gnulib-tool.
      73b3beb5
  16. 27 Jul, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 2856b1dd
      Paul Eggert authored
      This incorporates:
      2015-07-27 time_rz: port better to MinGW
      2015-07-27 time: port __need_time_t to MinGW
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/strftime.c, lib/time.in.h, lib/time_rz.c: Copy from gnulib.
      * lib/time-internal.h: New file, from gnulib.
      2856b1dd
  17. 26 Jul, 2015 1 commit
    • Paul Eggert's avatar
      New optional ZONE arg for format-time-string etc. · af32fa95
      Paul Eggert authored
      This simplifies time conversions in other time zones.
      It also prevents display-time-world tampering with TZ (Bug#21020).
      * admin/admin.el (add-release-logs):
      Use improved add-log-time-format API.
      * admin/merge-gnulib (GNULIB_MODULES): Add time_rz, timegm.
      (GNULIB_TOOL_FLAGS): Avoid flexmember, setenv, unsetenv.
      * configure.ac (tzalloc): Remove test for this, since
      Emacs no longer uses HAVE_TZALLOC directly.
      * doc/lispref/os.texi (Time of Day, Time Conversion)
      (Time Parsing):
      * etc/NEWS: Document the new behavior.
      Merge from gnulib, incorporating:
      2015-07-25 strftime: fix newly-introduced bug on Solaris
      2015-07-23 fprintftime, strftime: use timezone_t args
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/strftime.c, lib/strftime.h, lib/time.in.h, m4/sys_time_h.m4:
      * m4/time_h.m4:
      Update from gnulib.
      * lib/time_rz.c, lib/timegm.c, m4/time_rz.m4, m4/timegm.m4:
      New files from gnulib.
      * lisp/time-stamp.el (time-stamp-string):
      * lisp/time.el (display-time-world-list)
      (display-time-world-display):
      Use new API, with time zone arg.
      * lisp/time.el (display-time-world-display):
      Fix race when current-time advances while we're running.
      * lisp/vc/add-log.el (add-log-iso8601-time-zone)
      (add-log-iso8601-time-string): Accept optional time zone arg.
      * lisp/vc/add-log.el (add-change-log-entry):
      * lisp/vc/log-edit.el (log-edit-changelog-ours-p): Use new arg.
      * nt/gnulib.mk: Propagate lib/gnulib.mk changes here.
      Add rules for the time module, since they're now needed
      for tzalloc etc.
      * src/conf_post.h (getenv_TZ, setenv_TZ): New macros.
      (emacs_getenv_TZ, emacs_setenv_TZ): New decls.
      * src/editfns.c: Include errno.h.
      (set_time_zone_rule): Omit unnecessary forward decl.
      (initial_tz): Remove, replacing with ...
      (local_tz, wall_clock_tz, utc_tz): New static vars and constants.
      (tzeqlen): New constant; prefer it to (sizeof "TZ=" - 1).
      (emacs_localtime_rz, emacs_mktime_z, xtzalloc, xtzfree)
      (tzlookup): New static functions.
      (init_editfns): New arg DUMPING.  All uses changed.
      (init_editfns): Omit most initialization if dumping, not if
      !initialized.  Initialize wall_clock_tz and local_tz.
      (emacs_nmemftime, format_time_string): Time zone argument can now
      be any time zone, not just a boolean for UTC or local time.  All
      callers changed.
      (Fformat_time_string, Fencode_time, Fcurrent_time_string)
      (Fcurrent_time_zone): New optional arg ZONE.
      (Fdecode_time, Fset_time_zone_rule): ZONE arg can now also take
      the same form as with the other new additions.
      (decode_time_zone): Remove; no longer needed.
      (tzvalbuf): Now file-scope.
      (emacs_getenv_TZ, emacs_setenv_TZ): New functions.
      (syms_of_editfns): Define Qwall.
      * src/editfns.c (mktime_z) [!HAVE_TZALLOC]:
      * src/systime.h (mktime_z, timezone_t, tzalloc, tzfree)
      [!HAVE_TZALLOC]:
      Remove; now supplied by gnulib.
      * src/emacs.c (main):
      * src/lisp.h (init_editfns): Adjust to init_editfns API change.
      af32fa95
  18. 07 Jun, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 325bf192
      Paul Eggert authored
      This incorporates:
      2015-06-06 acl-permissions: pacify -Wsuggest-attribute=const
      2015-06-05 stdio: Don't redefine gets when using C++
      2015-06-05 acl-permissions: port to AIX, C89 HP-UX
      2015-06-02 file-has-acl: fix build on Mac OS X 10
      2015-06-01 gnulib-tool: concatenate lib_SOURCES to a single line
      2015-06-01 pthread_sigmask: discount system version if a simple macro
      2015-05-31 readlinkat: avoid OS X 10.10 trailing slash bug
      * doc/misc/texinfo.tex, lib/acl-internal.h, lib/get-permissions.c:
      * lib/readlinkat.c, lib/set-permissions.c, lib/stdio.in.h:
      * m4/acl.m4, m4/pthread_sigmask.m4, m4/readlinkat.m4: Copy from gnulib.
      * lib/gnulib.mk: Regenerate.
      325bf192
  19. 28 May, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 6c52e9b9
      Paul Eggert authored
      This incorporates:
      2015-05-27 qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
      2015-05-27 file-has-acl: Split feature tests again (Bug#20667)
      2015-05-27 string: fix build failure on BSD/OSX with FORTIFY_SOURCE
      2015-05-26 stdio: limit __gnu_printf__ witness to gcc 4.4+
      2015-05-26 inttypes: force correct mingw PRIdMAX even without <stdio.h>
      2015-05-26 stdio: fix probe on mingw under gcc 5.1
      * admin/merge-gnulib (GNULIB_MODULES):
      Replace qacl with qcopy-acl, since we don't need the rest of qacl.
      * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h:
      * lib/inttypes.in.h, lib/qcopy-acl.c, lib/qset-acl.c:
      * lib/string.in.h, m4/acl.m4, m4/stdio_h.m4:
      Get latest versions from gnulib.
      * lib/get-permissions.c, lib/set-permissions.c: New files.
      * lib/gnulib.mk, m4/gnulib-comp.m4:
      Regenerate.
      * nt/gnulib.mk: Merge lib/gnulib.mk changes by hand.
      6c52e9b9
  20. 25 Apr, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · 27e6afeb
      Paul Eggert authored
      This incorporates:
      2015-04-24 file-has-acl: new module, split from acl
      2015-04-24 manywarnings: add GCC 5.1 warnings
      2015-04-21 lstat: fix cross-compilation 'ln -s' problem
      2015-04-15 qacl: Simplify HP-UX acl_nontrivial check
      2015-04-15 acl: On Linux, check for acls without libacl
      2015-04-14 tempname: avoid unused parameter warnings (trivial)
      * lib/acl-internal.c: New file, from gnulib.
      * lib/file-has-acl.c: Remove; no longer imported from gnulib.
      * lib/acl-internal.h, lib/gnulib.mk, lib/qcopy-acl.c, lib/tempname.c:
      * m4/acl.m4, m4/gnulib-comp.m4, m4/lstat.m4, m4/manywarnings.m4:
      Update from gnulib.
      27e6afeb
  21. 07 Apr, 2015 1 commit
    • Paul Eggert's avatar
      Generate a ChangeLog file from commit logs · 23468561
      Paul Eggert authored
      * .gitignore: Add 'ChangeLog'.
      * build-aux/gitlog-to-changelog: New file, from Gnulib.
      * build-aux/gitlog-to-emacslog: New file.
      * CONTRIBUTE: Document the revised workflow.
      * Makefile.in (clean): Remove *.tmp and etc/*.tmp*
      instead of just special cases.
      (CHANGELOG_HISTORY_INDEX_MAX, CHANGELOG_N, gen_origin): New vars.
      (ChangeLog, unchanged-history-files, change-history)
      (change-history-commit): New rules.
      * admin/admin.el (make-manuals-dist--1):
      Don't worry about doc/ChangeLog.
      * admin/authors.el: Add a FIXME.
      * admin/make-tarball.txt:
      * lisp/calendar/icalendar.el:
      * lisp/gnus/deuglify.el:
      * lisp/obsolete/gulp.el:
      * lwlib/README:
      Adjust to renamed ChangeLog history files.
      * admin/merge-gnulib (GNULIB_MODULES): Add gitlog-to-changelog.
      * admin/notes/repo: Call it 'master' a la Git, not 'trunk' a la Bzr.
      Remove obsolete discussion of merging ChangeLog files.
      New section "Maintaining ChangeLog history".
      * build-aux/git-hooks/pre-commit:
      Reject attempts to commit files named 'ChangeLog'.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * make-dist: Make and distribute top-level ChangeLog if there's a
      .git directory.  Distribute the new ChangeLog history files
      instead of scattered ChangeLog files.  Distribute the new files
      gitlog-to-changelog and gitlog-to-emacslog.
      Fixes: bug#19113
      23468561
  22. 19 Mar, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib · ccf00107
      Paul Eggert authored
      This incorporates:
      2015-03-19 fdopendir: port better to MinGW
      2015-03-18 fdopendir: fix typo in comment
      2015-02-24 glob, etc.: port to MSVC v18 on MS-Windows 8.1
      * lib/dirent.in.h, lib/fdopendir.c: Update from gnulib.
      * lib/dirfd.c, m4/dirfd.m4: New files from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      ccf00107
  23. 28 Jan, 2015 1 commit
    • Paul Eggert's avatar
      Merge from gnulib and try to repair bad merge · 39c2fa3f
      Paul Eggert authored
      This attempts to repair problems introduced by the bad merge
      5491fd10.  The easiest way for me
      to fix the badly-merged gnulib files was to run
      'admin/merge-gnulib', so I did that, which also imported the
      following changes:
      * build-aux/update-copyright, m4/gnulib.m4:
      Update from gnulib, incorporating:
      2015-01-15 time: port to MinGW32 3.21
      2015-01-15 update-copyright: apply to self
      2015-01-11 update-copyright: recognize groff's \(co marker
      39c2fa3f
  24. 01 Jan, 2015 2 commits
  25. 25 Dec, 2014 1 commit
    • Paul Eggert's avatar
      Prefer stpcpy to strcat · 1e6879db
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add stpcpy.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stpcpy.c, m4/stpcpy.m4: New files, from gnulib.
      * lib-src/ebrowse.c (sym_scope_1, operator_name, open_file):
      * lib-src/emacsclient.c (get_server_config, set_local_socket)
      (start_daemon_and_retry_set_socket):
      * lib-src/etags.c (main, C_entries, relative_filename):
      * lib-src/pop.c (sendline):
      * lib-src/update-game-score.c (main):
      * lwlib/xlwmenu.c (resource_widget_value):
      * src/callproc.c (child_setup):
      * src/dbusbind.c (xd_signature_cat):
      * src/doc.c (get_doc_string, Fsnarf_documentation):
      * src/editfns.c (Fuser_full_name):
      * src/frame.c (xrdb_get_resource):
      * src/gtkutil.c (xg_get_file_with_chooser):
      * src/tparam.c (tparam1):
      * src/xfns.c (xic_create_fontsetname):
      * src/xrdb.c (gethomedir, get_user_db, get_environ_db):
      * src/xsmfns.c (smc_save_yourself_CB):
      Rewrite to avoid the need for strcat, typically by using stpcpy
      and/or lispstpcpy.  strcat tends to be part of O(N**2) algorithms.
      * src/doc.c (sibling_etc):
      * src/xrdb.c (xdefaults):
      Now a top-level static constant.
      1e6879db
  26. 13 Dec, 2014 2 commits
    • Paul Eggert's avatar
      Replace union hack with C11-style max_align_t · 7fc616af
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add stddef, for max_align_t.
      * lib/gnulib.mk: Regenerate.
      * src/alloc.c (XMALLOC_BASE_ALIGNMENT): Use max_align_t instead of
      a hack involving a union.
      7fc616af
    • Paul Eggert's avatar
      Merge from gnulib · b81a1837
      Paul Eggert authored
      2014-12-12 stddef: support C11's max_align_t
      2014-12-08 apply _GL_ATTRIBUTE_PURE to some inline functions
      2014-12-02 support GNU format printf and scanf on mingw
      * doc/misc/texinfo.tex, lib/stat-time.h, lib/stddef.in.h:
      * lib/timespec.h, m4/extensions.m4, m4/stddef_h.m4, m4/stdio_h.m4:
      Update from gnulib.
      * lib/gnulib.mk: Regenerate.
      b81a1837
  27. 19 Oct, 2014 1 commit
    • Paul Eggert's avatar
      Merge from gnulib. · 821339c9
      Paul Eggert authored
      This incorporates:
      2014-10-18 readlinkat: port to AIX 7.1
      2014-10-07 fcntl: fix error reporting by dupfd
      * lib/fcntl.c, lib/readlinkat.c, lib/unistd.in.h, m4/readlinkat.m4:
      * m4/unistd_h.m4: Update from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      821339c9
  28. 30 Aug, 2014 1 commit
    • Paul Eggert's avatar
      Vector-sorting fixes. · f9caea82
      Paul Eggert authored
      It's not safe to call qsort or qsort_r, since they have undefined
      behavior if the user-specified predicate is not a total order.
      Also, watch out for garbage-collection while sorting vectors.
      * admin/merge-gnulib (GNULIB_MODULES): Add vla.
      * configure.ac (qsort_r): Remove, as we no longer use qsort-like
      functions.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/vla.h, m4/vararrays.m4: New files, copied from gnulib.
      * lib/stdlib.in.h, m4/stdlib_h.m4: Sync from gnulib, incorporating:
      2014-08-29 qsort_r: new module, for GNU-style qsort_r
      The previous two files' changes are boilerplate generated by
      admin/merge-gnulib, and should not affect Emacs.
      * src/fns.c: Include <vla.h>.
      (sort_vector_predicate) [!HAVE_QSORT_R]: Remove.
      (sort_vector_compare): Remove, replacing with ....
      (inorder, merge_vectors, sort_vector_inplace, sort_vector_copy):
      ... these new functions.
      (sort_vector): Rewrite to use the new functions.
      GCPRO locals, since the predicate can invoke the GC.
      Since it's in-place return void; caller changed.
      (merge): Use 'inorder', for clarity.
      
      Fixes: debbugs:18361
      f9caea82
  29. 04 Aug, 2014 1 commit
    • Paul Eggert's avatar
      Merge from gnulib, incorporating: · c7d117f3
      Paul Eggert authored
      2014-08-04 extern-inline: port to FreeBSD, DragonFly
      * lib/gnulib.mk: Regenerate (comment change only).
      * m4/extern-inline.m4: Update from gnulib.
      c7d117f3
  30. 17 May, 2014 1 commit
    • Paul Eggert's avatar
      Assume C99 or later. · 8208d2bf
      Paul Eggert authored
      * lib/stdarg.in.h, lib/stdbool.in.h, m4/stdarg.m4, m4/stdbool.m4:
      Remove.
      * configure.ac (_AC_PROG_CC_C89): Define a dummy, to keep 'configure'
      smaller.
      (gl_PROG_CC_C99): Use this to get C99 or later.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * admin/merge-gnulib (GNULIB_MODULES): Remove stdarg, stdbool.
      (GNULIB_TOOL_FLAGS): Avoid stdarg, stdbool.
      * doc/lispref/internals.texi (C Dialect): Document this.
      * etc/NEWS: Document this.
      * nt/gnulib.mk: Remove stdarg and stdbool modules.
      * src/bytecode.c (B__dummy__): Remove.
      * src/conf_post.h (bool_bf) [!NS_IMPL_GNUSTEP]: Use bool.
      (FLEXIBLE_ARRAY_MEMBER): Now always empty.
      * src/dbusbind.c (XD_DEBUG_MESSAGE) [!DBUS_DEBUG]:
      * src/regex.c (DEBUG_PRINT): Assume varargs macros.
      * src/lisp.h (DEFUN_FUNCTION_INIT): Remove.  All uses now assume C99.
      
      Fixes: debbugs:17487
      8208d2bf
  31. 07 Mar, 2014 1 commit
    • Paul Eggert's avatar
      Merge from gnulib. · 0d181095
      Paul Eggert authored
      This incorporates:
      2014-03-04 stdint: fix missing SIZE_MAX on Android
      2013-03-02 sys_types: avoid autoconf warning about gl_SYS_TYPES_H
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/stdint.in.h, lib/sys_types.in.h, m4/sys_types_h.m4:
      Update from gnulib.
      
      Fix oversight preventing lib/sys/types.h from being generated.
      * admin/merge-gnulib (GNULIB_TOOL_FLAGS): Don't avoid sys_types.
      0d181095
  32. 01 Jan, 2014 1 commit
  33. 24 Dec, 2013 1 commit
    • Paul Eggert's avatar
      Automate the procedure for updating copyright year. · 9ebada6a
      Paul Eggert authored
      * admin/merge-gnulib (GNULIB_MODULES): Add update-copyright.
      * admin/notes/years: Mention admin/update-copyright.
      * admin/update-copyright: New file.
      * build-aux/update-copyright: New file.
      * make-dist: Distribute it.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * msdos/autogen/Makefile.in: Update copyright year.
      9ebada6a
  34. 17 Dec, 2013 1 commit
    • Paul Eggert's avatar
      Merge from gnulib, incorporating: · e9ad5665
      Paul Eggert authored
      2013-12-17 gettimeofday: port recent C++ fix to Emacs
      2013-12-17 gettimeofday: fix C++ crosscompilation
      2013-12-17 qacl: port to Windows better
      * lib/file-has-acl.c, lib/time.in.h, m4/gettimeofday.m4, m4/time_h.m4:
      Update from gnulib.
      * lib/gnulib.mk: Regenerate.
      e9ad5665
  35. 08 Dec, 2013 1 commit
    • Paul Eggert's avatar
      Use libcrypto's checksum implementations if available, for speed. · e9551b12
      Paul Eggert authored
      On commonly used platform libcrypto uses architecture-specific
      assembly code, which is significantly faster than the C code we
      were using.  See Pádraig Brady's note in
      <http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00000.html>.
      Merge from gnulib, incorporating:
      2013-12-07 md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
      2013-12-07 md5, sha1, sha256, sha512: add 'auto', and set-default method
      2013-12-04 include_next: minimize code duplication
      2013-12-03 md5, sha1, sha256, sha512: support mandating use of openssl
      2013-12-02 md5, sha1, sha256, sha512: use openssl routines if available
      * configure.ac (--without-all): Set with_openssl_default too.
      Use gl_SET_CRYPTO_CHECK_DEFAULT to default to 'auto'.
      (HAVE_LIB_CRYPTO): New var.
      Say whether Emacs is configured to use a crypto library.
      * lib/gl_openssl.h, m4/absolute-header.m4, m4/gl-openssl.m4:
      New files, copied from gnulib.
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/md5.c, lib/md5.h, lib/sha1.c, lib/sha1.h:
      * lib/sha256.c, lib/sha256.h, lib/sha512.c, lib/sha512.h:
      * m4/include_next.m4, m4/md5.m4, m4/sha1.m4, m4/sha256.m4, m4/sha512.m4:
      Update from gnulib.
      * src/Makefile.in (LIB_CRYPTO): New macro.
      (LIBES): Use it.
      e9551b12
  36. 12 Oct, 2013 1 commit
    • Paul Eggert's avatar
      Merge from gnulib. · 46e5e833
      Paul Eggert authored
      This incorporates:
      2013-10-10 strtoumax: port to Solaris 8
      2013-10-09 strtoimax, strtoumax: port to HP-UX 11.11
      * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
      * lib/inttypes.in.h, lib/strtoimax.c, m4/inttypes.m4, m4/strtoimax.m4:
      * m4/strtoumax.m4:
      Update from gnulib.
      46e5e833