summaryrefslogtreecommitdiff
path: root/lib-src
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace changes.Juanma Barranquero2011-09-095-63/+63
|
* * lib-src/etags.c (Fortran_functions): Handle "elemental" functions.Glenn Morris2011-09-072-0/+7
|
* * lib-src/etags.c (Fortran_functions): Handle "pure" functions. (tiny change)Dieter Schuster2011-09-072-0/+7
| | | | Fixes: debbugs:9359
* Merge from trunk.Paul Eggert2011-09-061-1/+1
|\
* \ Merge from trunk.Paul Eggert2011-09-045-62/+136
|\ \ | |/
| * sprintf-related integer and memory overflow issuesPaul Eggert2011-09-045-61/+135
| |\ | | | | | | | | | Fixes: debbugs:9397 debbugs:9412
| | * Add Bug#.Paul Eggert2011-08-281-1/+1
| | |
| | * * update-game-score.c: Include <limits.h>Paul Eggert2011-08-282-10/+8
| | | | | | | | | | | | (get_user_id): Do not assume uid fits in 'int'. Simplify.
| | * * movemail.c (main): Do not use sprintf when its result might not fitPaul Eggert2011-08-282-4/+7
| | | | | | | | | | | | | | | in 'int'. Instead, put the possibly-long file name into the output of pfatal_with_name.
| | * * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,Paul Eggert2011-08-282-10/+41
| | | | | | | | | | | | | | | | | | | | | | | | 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 result might not fit in 'int'.
| | * Integer and memory overflow issues.Paul Eggert2011-08-282-37/+79
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to avoid potential buffer overflow issues on typical 64-bit hosts. Return void *, not long *. (get_current_dir_name): Report a failure, instead of looping forever, if buffer size calculation overflows. Treat malloc failures like realloc failures, as that has better behavior and is more consistent. Do not check whether xmalloc returns NULL, as that's not possible. (message): Do not arbitrarily truncate message to 2048 bytes when sending it to stderr; use vfprintf instead. (get_server_config, set_local_socket) (start_daemon_and_retry_set_socket): Do not alloca arbitrarily-large buffers; that's not safe. (get_server_config, set_local_socket): Do not use sprintf when its result might not fit in 'int'. (set_local_socket): Do not assume uid fits in 'int'.
* | Merge from trunk.Paul Eggert2011-07-287-49/+17
|\ \ | |/
| * Merge: Integer signedness and overflow and related fixes.Paul Eggert2011-07-277-48/+16
| |\ | | | | | | | | | Fixes: debbugs:9079
| | * Merge from trunk.Paul Eggert2011-07-102-4/+7
| | |\ | | |/ | |/|
| | * Assume freestanding C89 headers, string.h, stdlib.h.Paul Eggert2011-07-067-39/+11
| | |
| | * Merge from trunk.Paul Eggert2011-07-061-1/+1
| | |\
| | * | [ChangeLog]Paul Eggert2011-07-042-9/+5
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assume support for memcmp, memcpy, memmove, memset. This simplifies the code a bit. All current platforms have these, as they are required for C89. If this turns into a problem we can add the gnulib modules for these (a 1-line change to Makefile.in). * configure.in: Don't check for memcmp, memcpy, memmove, memset. [lib-src/ChangeLog] Assume support for memcmp, memcpy, memmove, memset. * etags.c (absolute_filename): Assume memmove exists. [src/ChangeLog] Assume support for memcmp, memcpy, memmove, memset. * lisp.h, sysdep.c (memcmp, memcpy, memmove, memset): * regex.c (memcmp, memcpy): Remove; we assume C89 now. * gmalloc.c (memcpy, memset, memmove): Remove; we assume C89 now. (__malloc_safe_bcopy): Remove; no longer needed.
* | | Add Bug#.Paul Eggert2011-07-251-1/+1
| | |
* | | Merge from trunk.Paul Eggert2011-07-251-1/+1
|\ \ \ | |/ /
* | | Merge from gnulib, using build-aux to remove clutter.Paul Eggert2011-07-242-2/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * m4/largefile.m4: New file, so that Emacs does not mess up when accessing files with large inode numbers in MacOS X 10.5 and later. * m4/nocrash.m4: New file, to avoid triggering background debugger and/or create core dumps during 'configure'. * build-aux/move-if-change: Renamed from move-if-change. * build-aux/snippet/arg-nonnull.h: Renamed from arg-nonnull.h. * build-aux/snippet/c++defs.h: Renamed from c++defs.h. * build-aux/snippet/warn-on-use.h: Renamed from warn-on-use.h. * build-aux/snippet/_Noreturn.h: New file, for draft C1X _Noreturn. * .bzrignore: The autogenerated files compile, config.guess, config.sub, depcomp, install-sh, and missing are now in build-aux. * Makefile.in (epaths-force, sync-from-gnulib): move-if-change is now in build-aux. (GNULIB_TOOL_FLAGS): Avoid threadlib; this is now a prerequisite of gnulib's pthread_sigmask module, but Emacs doesn't need it. (mkdir): install-sh is now in build-aux. * config.bat: c++defs.h is now in build-aux/snippets. * configure.in: Specify AC_CONFIG_AUX_DIR with build-aux (the usual parameter). * lib/gnulib.mk, m4/gl-comp.m4: Regenerate. * lib/makefile.w32-in (ARG_NONNULL_H): arg-nonnull.h moved to build-aux/snippet. * lib/pthread_sigmask.c, lib/stdlib.in.h, m4/extensions.m4: * m4/getopt.m4, m4/gnulib-common.m4, m4/pthread_sigmask.m4: Merge from gnuilib. This fixes porting bugs on Cygwin, Irix, and Solaris, enables MacOS extensions, and enables nocrash during 'configure'. * make-dist: Adjust to new build-aux and build-aux/snippit dirs. * admin/notes/copyright: The files compile, config.guess, config.sub, depcomp, install-sh, missing, and move-if-change are now in the new build-aux subdirectory. The files arg-nonnull.h, c++defs.h, and warn-on-use.h are now in build-aux/snippets. New file build-aux/snippets/_Noreturn.h. * leim/Makefile.in (install): install-sh is now in build-aux. * lib-src/Makefile.in ($(DESTDIR)${archlibdir}): install-sh moved to build-aux. * msdos/sedlibmk.inp (CONFIG_CLEAN_VPATH_FILES): Adjust to snippet moves from top level to build-aux/snippet. * src/Makefile.in (gl-stamp): move-if-change is now in build-aux.
* | * lib-src/update-game-score.c (usage): Update usage line.Andreas Schwab2011-07-092-3/+6
|/
* * lib-src/emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode onJason Rumney2011-07-022-0/+13
| | | | | | Windows. Fixes: debbugs:5486
* * lib-src/emacsclient.c (print_help_and_exit): More fixing of previous.Glenn Morris2011-06-251-1/+1
|
* * lib-src/emacsclient.c (print_help_and_exit): Fix previous change.Glenn Morris2011-06-251-1/+2
|
* Minor additions for previous emacsclient change.Glenn Morris2011-06-252-2/+8
| | | | | * lib-src/emacsclient.c (decode_options) <opt>: Add `F:'. (print_help_and_exit): Mention --frame-parameters.
* Allow emacsclient to set parameters of new graphical frames (bug#5864)Andreas Rottmann2011-06-252-0/+20
| | | | | | | | | | | | * lib-src/emacsclient.c (longopts, decode_options, main): Add frame-parameters. * lisp/server.el (server-create-window-system-frame): Add parameters arg. (server-process-filter): Doc fix. Handle frame-parameters. * doc/emacs/misc.texi (emacsclient Options): Mention --frame-parameters. * doc/man/emacsclient.1: Mention --frame-parameters. * etc/NEWS: Mention this.
* * movemail.c: Fix race condition and related bugs (Bug#8836).Paul Eggert2011-06-102-11/+34
| | | | | | | | | (main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this fixes some race conditions. Report mkstemp/mktemp errno rather than a possibly-garbage errno. Reinitialize the template each time through the loop, as earlier mkstemp/mktemp calls could have trashed it. Pass 0600 (not 0666) to mktemp, for consistency with mkstemp; the permissions don't matter anyway.
* * lib-src/emacsclient.c (socket_status): Use constant pointer.Dan Nicolaescu2011-06-012-1/+5
|
* [ChangeLog]Paul Eggert2011-05-283-9/+8
| | | | | | | | | | | | | | | | | | | | Use 'inline', not 'INLINE'. * configure.in, autogen/config.in (INLINE): Remove. [lib-src/ChangeLog] Use 'inline', not 'INLINE'. * etags.c (hash): Now inline unconditionally. * make-docfile.c (put_char): inline, not INLINE. [nt/ChangeLog] Use 'inline', not 'INLINE'. * config.nt (INLINE): Remove. [src/ChangeLog] Use 'inline', not 'INLINE'. * alloc.c, fontset.c (INLINE): Remove. * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. * gmalloc.c (register_heapinfo): Use inline unconditionally. * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__.
* * lib-src/Makefile.in (all, clean): Use $EXE_FILES.Glenn Morris2011-05-252-2/+3
|
* Small further clean-up in lib-src/Makefile.inGlenn Morris2011-05-242-14/+14
| | | | | | | | * lib-src/Makefile.in (.c.o): Remove (every .o file has an explicit rule). (insrcdir): New. (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff): Use $insrcdir to suppress unaesthetic ignored errors. (clean): Simplify list of things to delete.
* * lib-src/Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file.Glenn Morris2011-05-242-5/+4
|
* Tiny simplifications in lib-src/Makfile.inGlenn Morris2011-05-242-6/+8
| | | | | * lib-src/Makfile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion. (etags${EXEEXT}): Just depend on regex.o, not regex.h as well.
* * lib-src/Makefile.in (update-game-score${EXEEXT}): Use a single rule.Glenn Morris2011-05-232-7/+7
|
* * lib-src/etags.c: Fix typo in previous comment change.Glenn Morris2011-05-201-1/+1
|
* * lib-src/etags.c: Comment.Glenn Morris2011-05-201-2/+5
|
* Remove the SOME_MACHINE_LISP distinction in src/Makefile.in.Glenn Morris2011-05-182-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See discussion in http://debbugs.gnu.org/8302 * configure.in (NS_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) (WINDOW_SUPPORT): Remove output variables that are no longer used. * lib-src/makefile.w32-in (echolisp): Remove rule that is no longer needed. (clean): No more echolisp.tmp. * .bzrignore: Remove lib-src/echolisp.tmp. * lisp/emacs-lisp/autoload.el (batch-update-autoloads): Set autoload-excludes by parsing lisp/loadup.el rather than Makefiles. * lisp/loadup.el: Update commentary. * msdos/sed1x.inp (TOOLTIP_SUPPORT, WINDOW_SUPPORT): * msdos/sed1v2.inp (MSDOS_SUPPORT, NS_SUPPORT, MOUSE_SUPPORT) (TOOLTIP_SUPPORT, WINDOW_SUPPORT): No need to edit these any more. * src/Makefile.in (MSDOS_SUPPORT_REAL, MSDOS_SUPPORT, NS_SUPPORT) (REAL_MOUSE_SUPPORT, GPM_MOUSE_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT) (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT, WINDOW_SUPPORT): Remove. (lisp): Set the order to that of loadup.el. (shortlisp): Make it a copy of $lisp. (SOME_MACHINE_LISP): Remove. ($(etc)/DOC): Depend just on $lisp, not $SOME_MACHINE_LISP too. Use just $shortlisp, not $SOME_MACHINE_LISP too.
* Remove lib-src/fakemail.c.Glenn Morris2011-05-174-761/+11
| | | | | | | | | | | | | | | | | | | | * lib-src/fakemail.c: Remove file. * lib-src/Makefile.in (UTILITIES): Remove fakemail${EXEEXT}. (fakemail${EXEEXT}): Remove rule. * lib-src/makefile.w32-in ($(BLD)/fakemail.exe, fakemail) ($(BLD)/fakemail.$(O)): Remove. * lisp/mail/sendmail.el (sendmail-program): Fall back to just "sendmail". * lisp/mail/feedmail.el: Update commentary. * doc/emacs/ack.texi (Acknowledgments): Remove fakemail.c. * etc/NEWS: Mention this. * INSTALL: Remove fakemail.
* Fix verb tense in ChangeLog message.Ted Zlatanov2011-04-261-1/+1
|
* Add GnuTLS support for W32.Ted Zlatanov2011-04-242-1/+6
| | | | * lib-src/makefile.w32-in (obj): Added gnutls.o.
* Static checks with GCC 4.6.0 and non-default toolkits.Paul Eggert2011-04-164-19/+40
|\
| * * pop.c: Undo previous change.Paul Eggert2011-04-162-5/+1
| |
| * * pop.c (socket_connection): Double-cast to avoid GCC warningPaul Eggert2011-04-162-1/+5
| | | | | | | | about alignment.
| * * movemail.c (mail_spool_name): Protoize.Paul Eggert2011-04-162-6/+18
| | | | | | | | | | (main): Remove unused var. Mark var as initialized. Move locals to avoid shadowing, and use time_t for times.
| * * fakemail.c (xmalloc, xreallc): Use standard C prototypesPaul Eggert2011-04-162-9/+12
| | | | | | | | with void *. This avoids warnings about pointer casts.
| * * emacsclient.c (main): Don't use uninitialized var.Paul Eggert2011-04-162-4/+8
|/ | | | | (IS_ANY_SEP): Remove; unused. (get_current_dir_name): Add an extern decl.
* Update and split ChangeLogs.Juanma Barranquero2011-04-061-0/+4
|
* Fix more problems found by GCC 4.6.0's static checks.Paul Eggert2011-04-053-1/+18
|\
| * * emacsclient.c (message): Mark it as a printf-like function.Paul Eggert2011-04-052-0/+5
| |
| * * make-docfile.c (IF_LINT): New macro, copied from emacsclient.c.Paul Eggert2011-04-012-1/+13
|/ | | | (write_c_args): Use it to suppress GCC warning.