1. 23 Mar, 2011 2 commits
    • Juanma Barranquero's avatar
      w32: Fix some warnings reported by -Wall -Wextra. · 9c88f339
      Juanma Barranquero authored
      * 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.
      9c88f339
    • Glenn Morris's avatar
      Replace mkinstalldirs with `install-sh -d', as automake recommends. · 8cc1d519
      Glenn Morris authored
      * 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.
      8cc1d519
  2. 21 Mar, 2011 6 commits
    • Paul Eggert's avatar
      * ebrowse.c: Use size_t, not int, for sizes. · b1f961e1
      Paul Eggert authored
      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.
      b1f961e1
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      etags: In Prolog functions, don't assume int fits in size_t. · 3ef271f2
      Paul Eggert authored
      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.
      3ef271f2
    • Paul Eggert's avatar
      Add Bug#. · 5d6d7e57
      Paul Eggert authored
      5d6d7e57
    • Paul Eggert's avatar
      update-game-score: fix bug with -r · f0d80d43
      Paul Eggert authored
      * 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).
      f0d80d43
    • Paul Eggert's avatar
      [ChangeLog] · d5cad867
      Paul Eggert authored
      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.
      d5cad867
  3. 11 Mar, 2011 1 commit
  4. 07 Mar, 2011 2 commits
  5. 03 Mar, 2011 1 commit
  6. 01 Mar, 2011 1 commit
  7. 26 Feb, 2011 8 commits
  8. 25 Feb, 2011 6 commits
  9. 23 Feb, 2011 1 commit
  10. 22 Feb, 2011 7 commits
  11. 21 Feb, 2011 5 commits
    • Paul Eggert's avatar
      [ChangeLog] · ba01e9d7
      Paul Eggert authored
      * 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.
      ba01e9d7
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      * movemail.c (popmail): Report fchown failure instead of ignoring it. · f0939c31
      Paul Eggert authored
      But if the file already has the right ownership, don't worry about it.
      f0939c31
    • Eli Zaretskii's avatar
      Adapt MS-Windows build to import of filemode.c from gnulib. · 25c51af3
      Eli Zaretskii authored
       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.
      25c51af3
    • Paul Eggert's avatar