1. 04 Jul, 2010 1 commit
  2. 03 Jul, 2010 4 commits
    • Andreas Schwab's avatar
      Fix invalid cast · a52a00a3
      Andreas Schwab authored
      * sorted-doc.c (cmpdoc): Fix signature.
      (qsort_compare): Delete.
      (main): Remove cast.
      a52a00a3
    • Juanma Barranquero's avatar
    • Juanma Barranquero's avatar
      Fix prototypes. · 3a35a84c
      Juanma Barranquero authored
      * src/cm.c (evalcost): Fix arg type.
      * src/cm.h (evalcost): Fix prototype.
      * src/lisp.h (memory_warnings): Fix prototype.
      
      * lib-src/ebrowse.c (match_qualified_namespace_alias):
        Pass sym* to find_namespace, not link*.
      * lib-src/emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET.
      * lib-src/sorted-doc.c (qsort_compare): New typedef.
        (main): Use it to cast cmpdoc.
      3a35a84c
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · 873fbd0b
      Dan Nicolaescu authored
      * lib-src/update-game-score.c: Convert function definitions to standard C.
      * lib-src/sorted-doc.c:
      * lib-src/profile.c:
      * lib-src/pop.c:
      * lib-src/movemail.c:
      * lib-src/make-docfile.c:
      * lib-src/hexl.c:
      * lib-src/fakemail.c:
      * lib-src/etags.c:
      * lib-src/ebrowse.c:
      * lib-src/digest-doc.c:
      * lib-src/b2m.c: Likewise.
      873fbd0b
  3. 02 Jul, 2010 2 commits
    • Dan Nicolaescu's avatar
      Convert some prototypes to standard C. · c532d349
      Dan Nicolaescu authored
      * lib-src/make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
      * lib-src/b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
      standard C prototypes.
      
      * src/term.c (term_clear_mouse_face, Fidentity):
      * src/syssignal.h (signal_handler_t):
      * src/lisp.h (memory_warnings):
      * src/coding.h (preferred_coding_system):
      * src/cm.h (evalcost):
      * src/blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
      c532d349
    • Jan D's avatar
      Remove __P and P_ from .c and .m files and definition of P_ · f57e2426
      Jan D authored
      * lisp.h:
      * atimer.h: Remove define for P_.
      
      * alloc.c: Remove __P and P_ from .c and .m files.
      * atimer.c:
      * buffer.c:
      * callint.c:
      * category.c:
      * charset.c:
      * chartab.c:
      * cm.c:
      * coding.c:
      * composite.c:
      * data.c:
      * dired.c:
      * dispnew.c:
      * doc.c:
      * editfns.c:
      * emacs.c:
      * eval.c:
      * fileio.c:
      * filelock.c:
      * fns.c:
      * font.c:
      * fontset.c:
      * frame.c:
      * ftfont.c:
      * ftxfont.c:
      * gmalloc.c:
      * gtkutil.c:
      * image.c:
      * indent.c:
      * intervals.c:
      * keyboard.c:
      * keymap.c:
      * lread.c:
      * marker.c:
      * menu.c:
      * minibuf.c:
      * print.c:
      * process.c:
      * scroll.c:
      * search.c:
      * sound.c:
      * strftime.c:
      * syntax.c:
      * sysdep.c:
      * term.c:
      * terminal.c:
      * textprop.c:
      * unexalpha.c:
      * w32console.c:
      * w32fns.c:
      * w32font.c:
      * w32menu.c:
      * w32term.c:
      * w32uniscribe.c:
      * window.c:
      * xdisp.c:
      * xfaces.c:
      * xfns.c:
      * xfont.c:
      * xftfont.c:
      * xmenu.c:
      * xselect.c:
      * xterm.c: Likewise.
      
      * ebrowse.c: Remove P_ and __P.
      * etags.c:
      * movemail.c:
      * pop.c:
      * update-game-score.c: Likewise.
      f57e2426
  4. 24 Jun, 2010 1 commit
  5. 11 Jun, 2010 1 commit
  6. 10 Jun, 2010 1 commit
  7. 06 Jun, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove BSTRING related code, all platforms define it. · 3085237c
      Dan Nicolaescu authored
      * src/s/usg5-4.h (BSTRING): Remove definition.
      * src/s/template.h (BSTRING):
      * src/s/msdos.h (BSTRING):
      * src/s/ms-w32.h (BSTRING):
      * src/s/hpux10-20.h (BSTRING):
      * src/s/gnu-linux.h (BSTRING):
      * src/s/darwin.h (BSTRING):
      * src/s/cygwin.h (BSTRING):
      * src/s/bsd-common.h (BSTRING):
      * src/s/aix4-2.h (BSTRING): Likewise.
      * src/sysdep.c: Remove code depending on BSTRING not being defined.
      
      * configure.in: Remove code dealing with BSTRING.
      
      * lib-src/ntlib.h: Remove code dealing with BSTRING.
      
      * nt/config.nt: Remove code depending on BSTRING.
      3085237c
  8. 29 May, 2010 1 commit
    • Chong Yidong's avatar
      Add --parent-id argument to emacsclient. · 0191e222
      Chong Yidong authored
      * lib-src/emacsclient.c (longopts, decode_options, print_help_and_exit):
      New arg `-parent-id'.
      (main): Send parent-id to Emacs.
      
      * lisp/server.el (server-process-filter): Receive parent-id argument
      from emacsclient.
      (server-create-window-system-frame): New arg.  Pass parent-id as
      frame parameter.
      0191e222
  9. 27 May, 2010 1 commit
    • Glenn Morris's avatar
      Do not preprocess src/Makefile.in. · 81ac4f35
      Glenn Morris authored
      * configure.in: Do not preprocess src/Makefile.in.
      (cpp_undefs, CPP_NEED_TRADITIONAL): Remove.
      (AC_EGREP_CPP): Test no longer needed.
      * configure: Regenerate.
      
      * config.bat: Do not preprocess src/Makefile.in.
      
      * make-dist: No more Makefile.c files.
      
      * INSTALL, src/README: Makefiles are not preprocessed.
      
      * src/Makefile.in, src/autodeps.mk, src/deps.mk, src/ns.mk:
      Convert comments to Makefile format.
      
      * lib-src/Makefile.in (distclean): No more Makefile.c.
      * src/Makefile.in (bootstrap-clean): No more Makefile.c.
      
      * admin/notes/cpp: Remove file.
      
      * admin/quick-install-emacs (AVOID): No more Makefile.c files.
      
      * etc/PROBLEMS, etc/MACHINES: Remove details of cpp problems which can
      no longer occur.
      81ac4f35
  10. 22 May, 2010 1 commit
  11. 12 May, 2010 1 commit
  12. 11 May, 2010 3 commits
    • Glenn Morris's avatar
      Minor lib-src/Makefile.in edits. · c88b05a9
      Glenn Morris authored
      * lib-src/Makefile.in (.m.o): Remove, there are no .m files.
      (BASE_CFLAGS): New variable.
      (ALL_CFLAGS, LINK_CFLAGS, CPP_CFLAGS): Use $BASE_CFLAGS.
      (check): Update the message.
      (update-game-score${EXEEXT}): Do not use $MOVE_FLAGS.
      c88b05a9
    • Glenn Morris's avatar
      Do not preprocess lib-src/Makefile.in · d3b23034
      Glenn Morris authored
      * configure.in: Generate lib-src/Makefile directly, do not run cpp.
      * config.bat: Do not run cpp on lib-src/Makefile.in.
      
      * lib-src/Makefile.in: Convert comments to makefile format.
      
      * admin/notes/cpp: lib-src/Makefile not preprocessed.
      d3b23034
    • Glenn Morris's avatar
      On msdos, set LIBS_SYSTEM with config.bat, not cpp. · acddf8ae
      Glenn Morris authored
      * config.bat [HAVE_X11]: Run sed3x.inp on lib-src/Makefile.
      
      * src/Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
      * src/s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
      
      * msdos/sed1x.inp (LIBS_SYSTEM): Edit to -lxext -lsys.
      * msdos/sed3x.inp: New file.
      
      * lib-src/Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
      (config.h) [MSDOS]: Do not include.
      acddf8ae
  13. 10 May, 2010 2 commits
    • Glenn Morris's avatar
      Move LIBS_SYSTEM from cpp to configure. · 97efb629
      Glenn Morris authored
      * configure.in (LIBS_SYSTEM): New output variable, replacing cpp.
      
      * lib-src/Makefile.in (LIBS_SYSTEM) [!MSDOS]: Set with configure, not cpp.
      (LIBS_SYSTEM) [MSDOS]: Use MSDOS_LIBS_SYSTEM.
      (NOT_C_CODE): Remove, no longer used.
      (config.h) [!MSDOS]: No longer include.
      (LOADLIBES): Use LIBS_SYSTEM as a variable.
      
      * src/Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
      (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
      (LIBES): Use LIBS_SYSTEM as a variable.
      * src/s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM.  Always define.
      * src/s/aix4-2.h (LIBS_SYSTEM):
      * src/s/freebsd.h (LIBS_SYSTEM):
      * src/s/hpux10-20.h (LIBS_SYSTEM):
      * src/s/sol2-6.h (LIBS_SYSTEM):
      * src/s/unixware.h (LIBS_SYSTEM):
      Move to configure.
      
      * msdos/sed1v2.inp, msdos/sed3v2.inp (LIBS_SYSTEM): Edit to empty.
      97efb629
    • Glenn Morris's avatar
      Move MAIL_USE_FLOCK, MAIL_USE_LOCKF, BLESSMAIL_TARGET from cpp to configure. · 7490175b
      Glenn Morris authored
      * configure.in (MAIL_USE_FLOCK, MAIL_USE_LOCKF): New AC_DEFINEs.
      (BLESSMAIL_TARGET): New output variable.
      
      * lib-src/Makefile.in (BLESSMAIL_TARGET): Set with configure, not cpp.
      
      * src/s/aix4-2.h (MAIL_USE_LOCKF):
      * src/s/bsd-common.h (MAIL_USE_FLOCK):
      * src/s/darwin.h (MAIL_USE_FLOCK):
      * src/s/gnu-linux.h (MAIL_USE_FLOCK):
      * src/s/irix6-5.h (MAIL_USE_FLOCK):
      * src/s/template.h (MAIL_USE_FLOCK):
      Move to configure.
      
      * src/s/ms-w32.h: Comment.
      
      * msdos/sed3v2.inp (BLESSMAIL_TARGET): Edit to need-blessmail.
      7490175b
  14. 08 May, 2010 2 commits
  15. 06 May, 2010 1 commit
  16. 05 May, 2010 2 commits
  17. 04 May, 2010 1 commit
    • Glenn Morris's avatar
      Move C_SWITCH_MACHINE, C_SWITCH_SYSTEM from cpp to autoconf. · 49628785
      Glenn Morris authored
      * configure.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM): New output
      variables, replacing c_switch_machine, c_switch_system.
      
      * src/s/aix4-2.h (C_SWITCH_SYSTEM):
      * src/m/alpha.h (C_SWITCH_MACHINE):
      Move to configure.in.
      * src/Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
      New variables, set by configure.
      (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
      $c_switch_machine and $c_switch_system.
      
      * lib-src/Makefile.in: Use @C_SWITCH_SYSTEM@, @C_SWITCH_MACHINE@
      rather than @c_switch_system@, @c_switch_machine@.
      49628785
  18. 26 Apr, 2010 1 commit
  19. 12 Apr, 2010 1 commit
  20. 11 Apr, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use autoconf, not cpp for some variables. · 76bd8202
      Dan Nicolaescu authored
      * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
      (C_SWITCH_X_SITE): Define using autoconf.
      
      * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
      (C_SWITCH_X_SITE): Define using autoconf.
      
      * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE): Define using
      autoconf, not cpp.
      (ALL_CFLAGS): Use them as make variables.
      76bd8202
  21. 07 Apr, 2010 1 commit
  22. 03 Apr, 2010 2 commits
  23. 02 Apr, 2010 4 commits
    • Chong Yidong's avatar
      Fix permissions handling (CVE-2010-0825). · 51a91f9d
      Chong Yidong authored
      * movemail.c (main): Check return values of setuid.  Avoid
      possibility of symlink attack when movemail is setgid mail
      (CVE-2010-0825).
      51a91f9d
    • Chong Yidong's avatar
      Fix permissions handling (CVE-2010-0825). · c8f19d81
      Chong Yidong authored
      * movemail.c (main): Check return values of setuid.  Avoid
      possibility of symlink attack when movemail is setgid mail
      (CVE-2010-0825).
      c8f19d81
    • Dan Nicolaescu's avatar
      Remove extern errno declarations. · 42a2c622
      Dan Nicolaescu authored
      * xterm.c:
      * xrdb.c:
      * w32term.c:
      * unexec.c:
      * unexaix.c:
      * sysdep.c:
      * process.c:
      * lread.c:
      * keyboard.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c (main):
      * ecrt0.c:
      * dispnew.c:
      * callproc.c:
      * buffer.c: Remove errno extern declarations.
      * s/netbsd.h (NEED_ERRNO): Remove.
      
      * movemail.c:
      * etags.c:
      * emacsclient.c: Remove extern errno declarations.
      42a2c622
    • Juanma Barranquero's avatar
      Fix typos in ChangeLogs. · 194d44e7
      Juanma Barranquero authored
      194d44e7
  24. 20 Mar, 2010 1 commit
    • Glenn Morris's avatar
      Cosmetic changes to lib-src/Makefile.in. · 5e58e3a4
      Glenn Morris authored
      * Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
      (LIBHESIOD, LIBRESOLV): Make previous change a bit more friendly by
      defining these as Makefile variables.
      (LIBS_MOVE): Add LIBS_MAIL into this.
      (movemail${EXEEXT}): Just use LIBS_MOVE, not LIBS_MAIL as well.
      5e58e3a4
  25. 19 Mar, 2010 1 commit
  26. 18 Mar, 2010 2 commits
    • Glenn Morris's avatar
      Replace some cpp with autoconf. · aded53ff
      Glenn Morris authored
      * configure.in (--with-mmdf, --with-mail-unlink):
      New options, off by default.
      (--with-mailhost): New option to set default POP host.
      (LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF, LIBGPM, LIBS_MAIL)
      (LIBHESIOD, LIBRESOLV, COM_ERRLIB, CRYPTOLIB, KRB5LIB, DESLIB, KRB4LIB):
      New variables, substituted in Makefiles.
      (try_libungif, ac_gif_lib_name): Replace with HAVE_GIF=maybe, LIBGIF.
      (LIBGIF): Use AC_SUBST rather than AC_DEFINE.
      (HAVE_LIBMAIL, HAVE_LIBLOCKFILE, HAVE_LIBCOM_ERR, HAVE_LIBCRYPTO)
      (HAVE_LIBK5CRYPTO, HAVE_LIBKRB5, HAVE_LIBDES425, HAVE_LIBDES)
      (HAVE_LIBKRB4, HAVE_LIBKRB): New AC_DEFINEs.
      
      * lib-src/Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
      (HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp.
      (BASE_CFLAGS): Remove (identical to CPP_CFLAGS).
      
      * src/Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
      (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
      aded53ff
    • Tetsurou Okazaki's avatar
      Close bug#5720. · f8388570
      Tetsurou Okazaki authored
      * Makefile.in, lib-src/Makefile.in (uninstall): Handle the case where
      archlibdir does not exist.
      f8388570