aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * * 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.
* Fix more problems found by GCC 4.6.0's static checks.Paul Eggert2011-03-292-4/+7
|\
| * * etags.c (just_read_file): Remove dummy variable and simplify.Paul Eggert2011-03-282-4/+6
|/
* Remove (RET)SIGTYPE; it is identical to void on all supported systems.Glenn Morris2011-03-262-3/+7
| | | | | | | | | | | | | | | | | | | | | | Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg01068.html * configure.in (AC_TYPE_SIGNAL): Remove obsolete macro. (AH_BOTTOM): Do not define SIGTYPE. * lib-src/emacsclient.c: Replace SIGTYPE with void. * nt/config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void). * src/syssignal.h: Replace RETSIGTYPE with void. * src/atimer.c, src/data.c, src/dispnew.c, src/emacs.c, src/floatfns.c: * src/keyboard.c, src/keyboard.h, src/lisp.h, src/process.c, src/sysdep.c: * src/xterm.c: Replace SIGTYPE with void everywhere. * src/s/template.h (SIGTYPE): Remove commented out definition. * src/s/usg5-4-common.h (SIGTYPE): Remove definition. * admin/CPP-DEFINES: Remove SIGTYPE.
* w32: Fix some warnings reported by -Wall -Wextra.Juanma Barranquero2011-03-232-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/ntlib.c: Include <ctype.h>. * nt/cmdproxy.c: Include <ctype.h>. (make_absolute): Remove unused variable `i'. * src/w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'. (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer. (Fx_close_connection): Remove unused variable `i'. * src/w32font.c (w32font_draw): Return number of glyphs. (w32font_open_internal): Remove unused variable `i'. (w32font_driver): Add missing initializer. * src/w32menu.c (utf8to16): Remove unused variable `utf16'. (fill_in_menu): Remove unused variable `items_added'. * src/w32term.c (last_mouse_press_frame): Remove static global variable. (w32_clip_to_row): Remove unused variable `f'. (x_delete_terminal): Remove unused variable `i'. * src/w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'. (NOTHING): Remove unused static global variable. (uniscribe_check_otf): Remove unused variable `table'. (uniscribe_font_driver): Add missing initializers.
* Replace mkinstalldirs with `install-sh -d', as automake recommends.Glenn Morris2011-03-222-2/+7
| | | | | | | | | | | | | | | | * Makefile.in (mkdir): Use `install-sh -d' instead of mkinstalldirs. (sync-from-gnulib): Don't sync mkinstalldirs. * make-dist: Don't distribute mkinstalldirs. * leim/Makefile.in (install): Use `install-sh -d' rather than mkinstalldirs. * lib-src/Makefile.in ($(DESTDIR)${archlibdir}): Use `install-sh -d' rather than mkinstalldirs. * configure.in, doc/emacs/Makefile.in: Update comments. * admin/notes/copyright: Remove mkinstalldirs.
* Fix more problems found by GCC 4.5.2's static checks.Paul Eggert2011-03-226-39/+67
|\
| * * ebrowse.c: Use size_t, not int, for sizes.Paul Eggert2011-03-212-12/+17
| | | | | | | | | | | | | | | | This avoids a warning with gcc -Wstrict-overflow, and works better for very large objects. (inbuffer_size): Now size_t. All uses changed. (xmalloc, xrealloc, operator_name, process_file): Use size_t for sizes. Don't bother testing whether a size_t value can be negative.
| * * etags.c (Ada_funcs): Redo slightly to avoid overflow warning.Paul Eggert2011-03-212-1/+3
| |
| * etags: In Prolog functions, don't assume int fits in size_t.Paul Eggert2011-03-212-16/+22
| | | | | | | | | | | | | | This avoids a warning with gcc -Wstrict-overflow. * etags.c (Prolog_functions, prolog_pr, prolog_atom): Use size_t, not int, to store sizes. (prolog_atom): Return 0, not -1, on error. All callers changed.
| * Add Bug#.Paul Eggert2011-03-211-2/+2
| |
| * update-game-score: fix bug with -rPaul Eggert2011-03-212-6/+14
| | | | | | | | | | | | | | * update-game-score.c (main): Don't set 'scores' to garbage when -r is specified and scorecount != MAX_SCORES. This bug was introduced in the 2002-04-10 change, and was found with gcc -Wstrict-overflow (GCC 4.5.2, x86-64).
| * [ChangeLog]Paul Eggert2011-03-203-4/+11
|/ | | | | | | | | | | | | | fakemail: Remove dependency on ignore-value. * Makefile.in (GNULIB_MODULES): Add stdio. * lib/stdio.in.h, m4/stdio_h.m4: New files, automatically imported from gnulib. [lib-src/ChangeLog] fakemail: Remove dependency on ignore-value. This undoes some of the recent fakemail-related changes. It is made possible due to recent changes to gnulib's stdio module. * Makefile.in (fakemail${EXEEXT}): Do not depend on ignore-value.h. * fakemail.c: Do not include ignore-value.h. (put_line): Do not use ignore_value.
* Remove unnecessary "(tiny change)" markers.Juanma Barranquero2011-03-071-1/+1
|
* Add --quiet option for emacsclient (bug#663) (tiny change)Drake Wilson2011-03-022-4/+20
| | | | | | | | | * lib-src/emacsclient.c (longopts): Add quiet. (decode_options): Handle q/quiet. (print_help_and_exit): Add q/quiet. (main): Suppress some messages if quiet option is used. * doc/emacs/misc.texi (emacsclient Options): Add q/quiet.
* Fix dependencies following 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.Eli Zaretskii2011-02-262-1/+3
| | | | lib-src/Makefile.in (fakemail${EXEEXT}): Depend on lib/ignore-value.h.
* Fix the MS-Windows build after 2011-02-26T05:54:36Z!eggert@cs.ucla.edu.Eli Zaretskii2011-02-262-6/+29
| | | | | | emacsclient.c (xstrdup) [WINDOWSNT]: Function added back. (w32_getenv): Use xstrdup to return all values in malloc'ed storage.
* * ebrowse.c (BROWSE_STRUCT): Remove unused macro.Paul Eggert2011-02-252-1/+1
|
* * ebrowse.c (parse_qualified_param_ident_or_type): Make it clearPaul Eggert2011-02-252-1/+8
| | | | | to reader (and to the compiler) that the loop always executes at least once. This prevents a warning with recent GCC.
* * fakemail.c: Include <ignore-value.h>.Paul Eggert2011-02-252-3/+18
| | | | | | | | | (put_line): Explicitly ignore fwrite return value, for benefit of recent glibc + gcc. (close_the_streams): Diagnose output errors instead of merely exiting with nonzero status. (my_fclose, main): Diagnose input errors, and exit with nonzero status. Formerly, input errors were silently ignored.
* * ebrowse.c (insert_keyword): Rename parameter to avoid shadowing diagnostic.Paul Eggert2011-02-252-3/+4
|
* * ebrowse.c (putstr): Rename from PUTSTR and turn into a function.Paul Eggert2011-02-252-29/+36
| | | | | All callers changed. This is cleaner, and avoids GCC warnings about passing NULL to fputs.
* * emacsclient.c (IF_LINT): New macro.Paul Eggert2011-02-252-2/+14
| | | | | (set_local_socket, main): Use it to suppress warnings with GCC -Wuninitialized.
* * emacsclient.c (xstrdup): Remove; no longer needed.Paul Eggert2011-02-252-23/+14
| | | | | | | (get_current_dir_name, w32_getenv, get_server_config, find_tty): (set_local_socket, main): Use const char *, not char *, for pointers that are not assigned through.
* * emacsclient.c (main): Avoid dangling 'if'.Paul Eggert2011-02-252-15/+17
|
* * emacsclient.c: Redo local variables to avoid shadowing problems.Paul Eggert2011-02-252-8/+14
| | | | | | (message, socket_status, start_daemon_and_retry_set_socket): Rename locals. (main): Move decl of "i".
* * etags.c (ISUPPER): Move to inside the only #ifdef where it's used.Paul Eggert2011-02-252-1/+4
| | | | This avoids an unused-macro warning with some GCC settings.
* * make-docfile.c (scan_c_file): Refactor local variable decls to make their ↵Paul Eggert2011-02-252-9/+6
| | | | | | scope more accurate and to avoid a GCC -Wuninitialized diagnostic.
* * make-docfile.c (write_globals): Change char * to char const *Paul Eggert2011-02-252-1/+7
| | | | | to avoid a GCC "assignment discards qualifiers" diagnostic in some configurations.
* * lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle): Obsolete.Stefan Monnier2011-02-231-1/+1
|
* Fix 2011-02-22T17:37:06Z!eggert@cs.ucla.edu.Eli Zaretskii2011-02-222-1/+4
| | | | etags.c (canonicalize_filename, ISUPPER): Fix last change.
* MS-Windows part of 2011-02-21T23:22:34Z!eggert@cs.ucla.edu, addition of ↵Eli Zaretskii2011-02-222-0/+18
| | | | | | | min-max.h. lib-src/makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)): Depend on ../lib/min-max.h.
* etags: Downcase drive letters, for consistency with Emacs proper.Paul Eggert2011-02-222-4/+7
| | | | | * etags.c (upcase): Remove; no longer used. (canonicalize_filename): Downcase drive letters.
* Merge: Assume S_ISLNK etc. work, since gnulib supports this.Paul Eggert2011-02-212-6/+7
|\
| * [ChangeLog]Paul Eggert2011-02-212-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assume S_ISLNK etc. work, since gnulib supports this. * Makefile.in (GNULIB_MODULES): Add sys_stat. * configure.in: Check for lstat and set HAVE_LSTAT=0 if not. Pretend to be using the gnulib lstat module for benefit of sys/stat.h. * configure, lib/Makefile.in, lib/gnulib.mk: Regenerate. [lib-src/ChangeLog] Assume S_ISLNK etc. work, since gnulib supports this. * etags.c (S_ISREG): Remove. [src/ChangeLog] Assume S_ISLNK etc. work, since gnulib supports this. * config.in: Regenerate. * dired.c (lstat): Remove. (file_name_completion): Assume S_ISDIR works. (file_name_completion_stat): Assume S_ISLNK works. Do not bother calling stat unless lstat says it's a symlink. * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove. (Fcopy_file): Assume S_ISREG and S_ISLNK work. (check_writable, Ffile_writable_p, Fset_file_times): Assume S_ISDIR works. (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether fifos exist. (Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works. * filelock.c (S_ISLNK): Remove. * lread.c (openp): Assume S_ISDIR works. * xrdb.c (S_ISDIR): Remove.
* | lib-src/makefile.w32-in (obj): Remove filemode.o.Juanma Barranquero2011-02-222-3/+7
|/
* * movemail.c: Define macros only in needed contexts.Paul Eggert2011-02-212-2/+16
|
* * Makefile.in (ebrowse${EXEEXT}, pop.o): Depend on min-max.h.Paul Eggert2011-02-212-2/+3
|
* Merge from mainline.Paul Eggert2011-02-212-0/+11
|\
| * Adapt MS-Windows build to import of filemode.c from gnulib.Eli Zaretskii2011-02-212-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nt/inc/sys/stat.h (S_ISUID, S_ISGID, S_ISVTX, S_IRGRP, S_IROTH) (S_IWGRP, S_IWOTH, S_IXGRP, S_IXOTH, S_ISSOCK, S_ISLNK, S_ISCTG) (S_ISDOOR, S_ISMPB, S_ISMPC, S_ISNWK, S_ISPORT, S_ISWHT) (S_TYPEISMQ, S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Define. (lstat): Define to stat. lib/makefile.w32-in ($(BLD)/filemode.$(O)): Move from src/makefile.w32-in and adapt. Depend on stamp_BLD. (GNULIBOBJS): Add $(BLD)/filemode.$(O). src/makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to lib/makefilw.w32-in. ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h. (GLOBAL_SOURCES): Remove filemode.c. (OBJ1): Remove $(BLD)/filemode.$(O). lib-src/makefile.w32-in ($(BLD)/ctags.$(O), $(BLD)/emacsclient.$(O)) ($(BLD)/etags.$(O), $(BLD)/movemail.$(O), $(BLD)/ntlib.$(O)): Depend on $(EMACS_ROOT)/nt/inc/sys/stat.h.
* | [ChangeLog]Paul Eggert2011-02-213-10/+8
| | | | | | | | | | | | | | | | | | * lib/min-max.h: New file, for "min" and "max". [lib-src/ChangeLog] New file "lib/min-max.h". * ebrowse.c (min, max): Define them by including <min-max.h> instead of defining it ourselves. * pop.c (min): Likewise.
* | * test-distrib.c (buf): Make this local, to avoid shadowing.Paul Eggert2011-02-212-2/+2
| |
* | * movemail.c (popmail): Report fchown failure instead of ignoring it.Paul Eggert2011-02-212-1/+15
| | | | | | | | But if the file already has the right ownership, don't worry about it.
* | * make-docfile.c (input_buffer): Rename variables to avoid shadowing.Paul Eggert2011-02-212-8/+11
| |
* | Merge from mainline.Paul Eggert2011-02-212-1/+6
|\ \ | |/
| * * make-docfile.c (scan_c_file): Adapt to the new BVAR macro.Ben Key2011-02-212-1/+6
| |
* | * movemail.c: (DIRECTORY_SEP, IS_DIRECTORY_SEP, DONE, IS_FROM_LINE):Paul Eggert2011-02-213-17/+5
| | | | | | | | | | | | Remove unused macros. * pop.c (index): Remove unused macro. (KPOP_PORT): Define only if KERBEROS is defined.
* | * movemail.c: Remove unused varsPaul Eggert2011-02-212-5/+1
| |
* | * movemail.c (main, pop_retr): Rename locals to avoid shadowing.Paul Eggert2011-02-212-11/+13
| |
* | Declare file-scope functions and variables static if not exported.Paul Eggert2011-02-219-215/+181
|/ | | | | | | | This is more consistent, and is nicer with gcc -Wstrict-prototypes. * ebrowse.c, emacsclient.c, fakemail.c, make-docfile.c, movemail.c: * profile.c, test-distrib.c, update-game-score.c: Declare non-'main' functions and variables to be static. * ebrowse.c: Omit redundant function prototypes.