A simpler, centralized INLINE.
[bpt/emacs.git] / lib-src / ChangeLog
index 81876d8..1186a0c 100644 (file)
@@ -1,3 +1,169 @@
+2013-09-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       A simpler, centralized INLINE.
+       * profile.c (INLINE): New macro.
+       (SYSTIME_INLINE): Remove.
+
+2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.in (SHELL): Now @SHELL@, not /bin/sh,
+       for portability to hosts where /bin/sh has problems.
+
+2013-08-10  Eli Zaretskii  <eliz@gnu.org>
+
+       * update-game-score.exe.manifest: New file.
+
+       * Makefile.in (UPDATE_MANIFEST): New variable.
+       (SCRIPTS): Add $(UPDATE_MANIFEST).
+
+2013-08-05  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * makefile.w32-in (lisp2): Add nadvice.elc.
+
+2013-08-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * update-game-score.c (read_score): Try reading a character before
+       probing the stream for EOF.  Initialize score->score to zero,
+       before reading and accumulating the score.
+       (read_scores): Fix logic that determines which value to return.
+       Close the input stream when finished reading the scores (avoids
+       failures in overwriting the file with a new one on MS-Windows,
+       since a file that is open cannot be deleted).
+
+       * ntlib.h (rename): Don't undefine.
+
+       * ntlib.c (sys_rename): New function, needed for
+       update-game-score.
+
+2013-08-04  Eli Zaretskii  <eliz@gnu.org>
+
+       * ntlib.h: Include fcntl.h.
+       (mkostemp): Declare prototype.
+       (mktemp): Don't redefine.
+
+       * ntlib.c (mkostemp): New function.  (Bug#15015)
+
+2013-08-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix some minor races in hosts lacking mkostemp (Bug#15015).
+       * movemail.c (main):
+       * update-game-score.c (write_scores):
+       Use mkostemp (which now works on all platforms, due to changes
+       in the portability layer) rather than mktemp (which has a race)
+       or mkstemp (which we no longer bother with).
+
+2013-07-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port to C89.
+       * ebrowse.c (USAGE): Remove macro with too-long string literal ...
+       (usage_message): ... and replace it with this new static constant
+       containing multiple literals.  All uses changed.
+       * emacsclient.c (print_help_and_exit):
+       Rewrite to avoid string literals longer than the C89 limits.
+       (start_daemon_and_retry_set_socket):
+       Rewrite to avoid non-constant array initializer.
+       * make-docfile.c (enum global_type): Omit trailing comma.
+
+2013-07-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Prefer plain 'static' to 'static inline' (Bug#12541).
+       I missed these instances of 'static inline' in an earlier sweep.
+       * ebrowse.c (putstr):
+       * etags.c (hash):
+       * make-docfile.c (put_char): No longer inline.
+       * etags.c (hash): Prefer int to unsigned when either will do.
+
+2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Use C99-style flexible array members if available.
+       * ebrowse.c: Include <stddef.h>, for offsetof.
+       (struct member, struct alias, struct sym):
+       Use FLEXIBLE_ARRAY_MEMBER.
+       (add_sym, add_member, make_namespace, register_namespace_alias):
+       Use offsetof (struct, flex_array_member), not sizeof (struct), as
+       that ports better to pre-C99 non-GCC.
+
+2013-05-29  Eli Zaretskii  <eliz@gnu.org>
+
+       * Makefile.in (mostlyclean): Remove *.res files.
+
+2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port --enable-gcc-warnings to clang.
+       * etags.c: Omit unnecessary forward decls.
+       (print_version, print_help): Declare _Noreturn.
+       * pop.c (socket_connection) [HAVE_GETADDRINFO]: Simplify.
+
+2013-05-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * update-game-score.c [WINDOWSNT]: Include "ntlib.h".
+
+       * ntlib.h (sleep): Update prototype.
+       (geteuid): Add prototype.
+
+       * ntlib.c (sleep): Now returns an unsigned value.
+       (getgid): New function.
+
+       * Makefile.in (CLIENTW, LIB_WSOCK32, LIBS_ECLIENT, NTLIB)
+       (CLIENTRES, WINDRES, NTINC, NTDEPS): New variables.
+       (INSTALLABLES): Add $(CLIENTW).
+       (LIBS_MOVE): Use $(LIB_WSOCK32).
+       ($(DESTDIR)${archlibdir}): Use $(EXEEXT) on update-game-score.
+       (test-distrib${EXEEXT}): Use $(EXEEXT) on test-distrib.
+       (etags${EXEEXT}, ebrowse${EXEEXT}, ctags${EXEEXT})
+       (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT})
+       (emacsclient${EXEEXT}, hexl${EXEEXT}, update-game-score${EXEEXT}):
+       Add $(NTLIB) to prerequisites.  Use $(EXEEXT).
+       (pop.o): Add pop.h to prerequisites.
+       (emacsclientw${EXEEXT}, ntlib.o): New targets.
+       (emacsclient.res): New target.
+
+2013-05-15  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * makefile.w32-in ($(DOC)): Use DOC rather than DOC-X.
+
+2013-05-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * make-docfile.c (search_lisp_doc_at_eol) [DEBUG]: Fix typo,
+       by removing references to no-longer-existing locals.
+
+2013-03-26  Eli Zaretskii  <eliz@gnu.org>
+
+       Fix incompatibilities between MinGW.org and MinGW64 headers.
+       * ntlib.c (struct timespec) [!_TIMEZONE_DEFINED]: Define the
+       struct only if _TIMEZONE_DEFINED is not defined.
+
+2013-03-23  cg  <chengang31@gmail.com>  (tiny change)
+
+       * makefile.w32-in (LIB_SRC): Move before first use.
+
+2013-03-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * pop.c: Fix ERRMAX typo (Bug#13925).
+       (socket_connection) [!HAVE_KRB5_ERROR_TEXT && HAVE_KRB5_ERROR_E_TEXT]:
+       Use ERROR_MAX, not ERRMAX.
+
+2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       File synchronization fixes (Bug#13944).
+       * Makefile.in (LIB_FDATASYNC): New macro.
+       (emacsclient${EXEEXT}): Use it.
+       * emacsclient.c (main): Use fdatasync, not fsync, since we don't
+       care about metadata.  Keep trying if interrupted.
+       * movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
+       fsync is available everywhere (or there is a substitute).
+       Don't report an error if fsync returns EINVAL.
+
+       Static checking by Sun C 5.12.
+       * etags.c (analyse_regex): Omit unreachable code.
+
+       * movemail.c (main): Call umask on all systems.
+       This is OK since Emacs already assumes umask elsewhere.
+       Don't grant more read permissions than necessary.
+       The old 0333 dates back to before we called setuid,
+       so it was needed back then to ensure user-readability,
+       but 0377 should suffice now.
+
 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        * movemail.c (getenv): Remove decl (unused since 1994).
        to avoid potential buffer overflow issues on typical 64-bit hosts.
        (whatlen_max): New static var.
        (main): Avoid buffer overflow if subsidiary command length is
-       greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
+       greater than BUFSIZ or 2*BUFSIZ + 20.  Do not use sprintf when its
        result might not fit in 'int'.
 
        * movemail.c (main): Do not use sprintf when its result might not fit
 
 2002-03-05  Francesco Potortì  <pot@gnu.org>
 
-       * etags.c: Honour #line directives.
+       * etags.c: Honor #line directives.
        (no_line_directive): New global var; set it for old behavior.
        (main): Remove some #ifdef in the getopt switch.
        (add_node, put_entries): Code added to merge different chunks of
        (longopts): New long options without short counterpart are
        globals, members, no-globals, no-members.  Regexp options are now
        defined  conditionally to ETAGS_REGEXPS.
-       (print_help): Updated.
+       (print_help): Update.
 
 1997-05-22  Francesco Potortì  <F.Potorti@cnuce.cnr.it>
 
 
 1995-06-13  Geoff Voelker  <voelker@cs.washington.edu>
 
-       * etags.c (process_file,absolute_filename): Handle filenames
+       * etags.c (process_file, absolute_filename): Handle filenames
        starting with a drive letter.
 
        * makefile.nt (install): Copy wakeup.exe properly.
 1995-05-25  Geoff Voelker  <voelker@cs.washington.edu>
 
        * makefile.nt (LIBS): Use BASE_LIBS.
-       (make-docfile.exe,hexl.exe,wakeup.exe,etags.exe): Don't depend
+       (make-docfile.exe, hexl.exe, wakeup.exe, etags.exe): Don't depend
        upon LIBS.
        (DOC): Use del instead of rm.
        (DOC) [WINDOWS95]: Use DOC.
        (clean): Handle MSVC aux files.
-       (config.h,paths.h): Use $(CP) instead of cp.
+       (config.h, paths.h): Use $(CP) instead of cp.
        (config.h): Use $(CONFIG_H)
        (make-docfile.obj): Depend upon config.h.
        Clean up comments.
 
 1988-12-31  Richard Mlynarik  (mly@rice-chex.ai.mit.edu)
 
-       * env.c: Add decl for my-index
+       * env.c: Add decl for my-index.
        * etags.c (file-entries): .oak => scheme.
 
 1988-12-30  Richard Stallman  (rms@sugar-bombs.ai.mit.edu)