1. 30 Apr, 2016 1 commit
    • Eli Zaretskii's avatar
      Fix the MSDOS build · ccdaf04c
      Eli Zaretskii authored
      * config.bat:
      * msdos/sedlisp.inp:
      * msdos/sedlibmk.inp:
      * msdos/sedleim.inp:
      * msdos/sedadmin.inp:
      * msdos/sed6.inp:
      * msdos/sed3v2.inp:
      * msdos/sed2v2.inp:
      * msdos/sed1v2.inp: Adapt to Emacs 25.
      
      * src/process.c (remove_slash_colon): Move out of "#ifdef
      subprocesses" block, as it its called unconditionally.  Move
      ADD_SUBFEATURE calls into "#ifdef subprocesses" block, as they
      reference variables only defined in that block.
      * src/msdos.h: Provide prototypes for IT_set_frame_parameters,
      faccessat, msdos_fatal_signal, syms_of_msdos, pthread_sigmask,
      dos_keysns, dos_keyread, run_msdos_command, and
      syms_of_win16select, to avoid compiler warnings.
      * src/msdos.c (SYS_ENVIRON): Define to either '_environ' or
      'environ', depending on the DJGPP version.
      Remove declarations of externally-visible Lisp objects, like
      Qbackground_color and Qreverse.
      (run_msdos_command): First argument is not signed, not unsigned.
      Use SYS_ENVIRON.
      (sys_select): Use 'timespec_cmp' instead of 'timespec_sign', as
      the latter doesn't work when 'time_t' is an unsigned data type.
      This caused idle timers to behave incorrectly: they only fired
      after a keyboard input event.
      * src/frame.c (adjust_frame_size) [MSDOS]: Account for
      FRAME_TOP_MARGIN that isn't counted in the frame's number of
      lines, but dos_set_window_size needs it to be added.
      * src/lread.c (INFINITY, NAN) [DJGPP < 2.05]: Provide definitions.
      * src/fns.c (sort_vector_copy) [__GNUC__ < 4]: Provide a prototype
      that works around compilation errors with older GCC versions.
      * src/w16select.c: Don't declare QCLIPBOARD and QPRIMARY as Lisp
      Objects.
      * src/filelock.c [MSDOS]: Ifdef away most of the code.  Provide
      no-op implementations for 'lock_file' and 'unlock_file'.
      (Ffile_locked_p) [MSDOS]: Always return nil.  This avoids multiple
      ifdefs in all users of filelock.c functionality.
      * src/conf_post.h (EOVERFLOW, SIZE_MAX) [DJGPP < 2.04]: Define.
      * src/emacs.c [MSDOS]: Include dosfns.h, to avoid compiler
      warnings.
      * src/dosfns.h: Provide prototypes for dos_cleanup,
      syms_of_dosfns, and init_dosfns.
      * src/deps.mk (atimer.o): Depend on msdos.h.
      (emacs.o): Depend on dosfns.h.
      * src/atimer.c [MSDOS]: Include msdos.h, to avoid compiler
      warnings.
      
      * lisp/window.el (window--adjust-process-windows): Skip the body
      if 'process-list' is not available.  This avoids failure to start
      up on MS-DOS.
      * lisp/vc/diff.el (diff-no-select): Test 'make-process', not
      'start-process', as the latter is now available on all platforms.
      * lisp/textmodes/ispell.el (ispell-async-processp): Replace
      'start-process' with 'make-process' in a comment.
      * lisp/term/internal.el (IT-unicode-translations): Modify and add
      a few translations to display Info files with Unicode markup.  Fix
      an ancient off-by-one mismatch error with Unicode codepoints.
      * lisp/progmodes/compile.el (compilation-start): Test
      'make-process', not 'start-process', as the latter is now
      available on all platforms.
      * lisp/man.el (Man-build-man-command, Man-getpage-in-background):
      Test 'make-process', not 'start-process', as the latter is now
      available on all platforms.
      * lisp/international/mule-cmds.el (set-coding-system-map): Test
      'make-process', not 'start-process', as the latter is now
      available on all platforms.
      * lisp/eshell/esh-cmd.el (eshell-do-pipelines-synchronously): Doc
      fix.
      (eshell-execute-pipeline): Test 'make-process', not
      'start-process', as the latter is now available on all platforms.
      ccdaf04c
  2. 01 Jan, 2016 1 commit
  3. 16 May, 2015 1 commit
    • Glenn Morris's avatar
      Replace AC_SUBST_FILE in configure with include in Makefiles. · 48e384d7
      Glenn Morris authored
      * configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag)
      (oldxmenu_deps_frag, lisp_frag): Remove output variables/files.
      (AUTO_DEPEND): New output variable.
      * lwlib/Makefile.in (AUTO_DEPEND): New, set by configure.
      (DEPFLAGS, MKDEPDIR): Set directly via conditional.
      (lwlib_deps_frag): Replace by conditional include.
      * lwlib/autodeps.mk: Remove file.
      * oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure.
      (DEPFLAGS, MKDEPDIR): Set directly via conditional.
      (oldxmenu_deps_frag): Replace by conditional include.
      * oldXMenu/autodeps.mk: Remove file.
      * src/Makefile.in (AUTO_DEPEND): New, set by configure.
      (DEPFLAGS, MKDEPDIR): Set directly via conditional.
      (lisp_frag): Replace by an include.
      (deps_frag): Replace by conditional include.
      * src/autodeps.mk: Remove file.
      48e384d7
  4. 01 Jan, 2015 2 commits
  5. 28 Jun, 2014 1 commit
    • Glenn Morris's avatar
      Use gcc auto-dependency information for lwlib and oldXMenu · 93160ec3
      Glenn Morris authored
      * configure.ac (lwlib_deps_frag, oldxmenu_deps_frag): New output files.
      
      * make-dist (lwlib, oldXMenu): Distribute *.mk.
      
      * lwlib/Makefile.in: Move old dependency information to new file deps.mk.
      (MKDIR_P, DEPFLAGS, MKDEPDIR, lwlib_deps_frag):
      New, set by configure.
      (DEPDIR): New variable.
      (ALL_CFLAGS): Add DEPFLAGS.
      (.c.o): Add MKDEPDIR.
      (clean, mostlyclean): Delete DEPDIR.
      
      * lwlib/deps.mk, lwlib/autodeps.mk: New files.
      
      * oldXMenu/Makefile.in: Move old dependency information to new file deps.mk.
      (MKDIR_P, DEPFLAGS, MKDEPDIR, oldxmenu_deps_frag):
      New, set by configure.
      (DEPDIR): New variable.
      (ALL_CFLAGS): Add DEPFLAGS.
      (.c.o): Add MKDEPDIR.
      (clean, mostlyclean): Delete DEPDIR.
      
      * oldXMenu/deps.mk, oldXMenu/autodeps.mk: New files.
      
      * src/deps.mk: Comment update.
      
      * .bzrignore: Ignore lwlib/deps, oldXMenu/deps.
      93160ec3
  6. 01 Jan, 2014 1 commit
  7. 13 Jul, 2013 1 commit
  8. 25 Feb, 2013 1 commit
    • Paul Eggert's avatar
      Simplify data_start configuration. · 1ddc2bd6
      Paul Eggert authored
      This is a followon simplification to the fix for Bug#13650.
      * admin/CPP-DEFINES (DATA_START, ORDINARY_LINK): Remove.
      * configure.ac (CRT_DIR, LIB_STANDARD, START_FILES, DATA_START)
      (LD_FIRSTFLAG, ORDINARY_LINK, LIB_GCC): Remove.
      (AC_CHECK_HEADERS_ONCE): Remove sys/resource.h, as it's
      not always needed.
      (HAVE_DATA_START): New macro.
      * etc/PROBLEMS (LIBS_SYSTEM, LIBS_MACHINE, LIBS_STANDARD): Remove.
      Remove legacy-systems section, as this stuff is no longer
      applicable with current linking strategies.
      * src/Makefile.in (LD_FIRSTFLAG, LIB_GCC, CRT_DIR, LIB_STANDARD)
      (START_FILES): Remove.  All uses removed.
      (otherobj): Remove $(VMLIMIT_OBJ), as it's now first.
      (ALLOBJS): Move here from autodeps.mk, and with VMLIMITS_OBJ first.
      (buildobj.h): Use it.
      ($(ALLOBJS)): Depend on globals.h.
      (temacs$(EXEEXT)): Use $(ALLOBJS).
      * src/autodeps.mk (ALLOBJS): Move to Makefile.in.
      * src/deps.mk (vm-limit.o):
      * src/makefile.w32-in ($(BLD)/vm-limit.$(O)):
      Do not depend on mem-limits.h.
      * src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
      (__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__)
      [__GNUC__ && !ORDINARY_LINK]: Remove.
      * src/mem-limits.h, src/pre-crt0.c: Remove.
      * src/unexaix.c, src/unexcoff.c: Don't include mem-limits.h.
      * src/unexcoff.c (etext): New decl.
      (make_hdr): Use it instead of start_of_data.
      * src/vm-limit.c: Move most of mem-limits.h's contents here.
      (data_start): New decl.  It's OK if this is approximate,
      so simplify-away some unnecessary exactness.
      (POINTER): Remove; all uses removed.
      (data_space_start): Now char *, to avoid casts.
      (exceeds_lisp_ptr): New function, replacing the old
      EXCEEDS_LISP_PTR macro.  All uses changed.
      (check_memory_limits): Simplify and remove casts.
      (start_of_data) [!CANNOT_DUMP || !SYSTEM_MALLOC]: Remove.
      (memory_warnings): Use data_start instead of start_of_data.
      
      Fixes: debbugs:13783
      1ddc2bd6
  9. 01 Jan, 2013 1 commit
  10. 10 Dec, 2012 1 commit
  11. 05 Jan, 2012 1 commit
  12. 15 Aug, 2011 1 commit
    • Eli Zaretskii's avatar
      Use uniprop tables instead of biditype.h and bidimirror.h. · 474a8465
      Eli Zaretskii authored
       src/bidi.c (bidi_initialize): Use uniprop_table instead of including
       biditype.h and bidimirror.h.
       src/biditype.h: File removed.
       src/bidimirror.h: File removed.
       src/deps.mk (bidi.o): Remove biditype.h and
       bidimirror.h.
       src/makefile.w32-in ($(BLD)/bidi.$(O)): Remove biditype.h and
       bidimirror.h.
       src/dispextern.h: Fix a typo in the comment to bidi_type_t.
       src/chartab.c: Improve commentary for the uniprop_table API.
      
       admin/unidata/bidimirror.awk: File removed.
       admin/unidata/biditype.awk: File removed.
       admin/unidata/makefile.w32-in (all): Remove src/biditype.h and
       src/bidimirror.h.
       (../../src/biditype.h, ../../src/bidimirror.h): Deleted.
       admin/unidata/Makefile.in (all): Remove src/biditype.h and
       src/bidimirror.h.
       (../../src/biditype.h, ../../src/bidimirror.h): Deleted.
      474a8465
  13. 21 Jun, 2011 1 commit
  14. 24 May, 2011 1 commit
  15. 23 Apr, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix doprnt so it could be used safely in `verror'. (Bug#8435) · e6c3da20
      Eli Zaretskii authored
       src/doprnt.c: Include limits.h.
       (SIZE_MAX): New macro.
       (doprnt): Return a size_t value.  2nd arg is now size_t.  Many
       local variables are now size_t instead of int or unsigned.
       Improve overflow protection.  Support `l' modifier for integer
       conversions.  Support %l conversion.  Don't assume an EMACS_INT
       argument for integer conversions and for %c.
       src/lisp.h (doprnt): Restore prototype.
       src/makefile.w32-in ($(BLD)/callint.$(O)): Depend on
       $(SRC)/character.h.
       src/Makefile.in (base_obj): Add back doprnt.o.
       src/deps.mk (doprnt.o): Add back prerequisites.
       (callint.o): Depend on character.h.
       src/eval.c (internal_lisp_condition_case): Include the handler
       representation in the error message.
       (verror): Call doprnt instead of vsnprintf.  Fix an off-by-one bug
       when breaking from the loop.
       src/xdisp.c (vmessage): Call doprnt instead of vsnprintf.
       src/callint.c (Fcall_interactively): When displaying error message
       about invalid control letter, pass the character's codepoint, not
       a pointer to its multibyte form.  Improve display of the character
       in octal and display also its hex code.
       src/character.c (char_string): Use %x to display the (unsigned)
       codepoint of an invalid character, to avoid displaying a bogus
       negative value.
       src/font.c (check_otf_features): Pass SDATA of SYMBOL_NAME to
       `error', not SYMBOL_NAME itself.
       src/coding.c (Fencode_sjis_char, Fencode_big5_char): Use %c for
       character arguments to `error'.
       src/charset.c (check_iso_charset_parameter): Fix incorrect argument
       to `error' in error message about FINAL_CHAR argument.  Make sure
       FINAL_CHAR is a character, and use %c when it is passed as
       argument to `error'.
      e6c3da20
  16. 07 Apr, 2011 1 commit
  17. 01 Apr, 2011 1 commit
  18. 19 Mar, 2011 1 commit
    • Paul Eggert's avatar
      Make tparam.h and terminfo.c consistent. · af8a867c
      Paul Eggert authored
      * cm.c (tputs, tgoto, BC, UP): Remove extern decls.  Include
      tparam.h instead, since it declares them.
      * cm.h (PC): Remove extern decl; tparam.h now does this.
      * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
      * terminfo.c: Include tparam.h, to check interfaces.
      (tparm): Make 1st arg a const pointer in decl.  Put it at top level.
      (tparam): Adjust signature to match interface in tparam.h;
      this removes some undefined behavior.  Check that outstring and len
      are zero, which they always are with Emacs.
      * tparam.h (PC, BC, UP): New extern decls.
      af8a867c
  19. 17 Mar, 2011 1 commit
  20. 16 Mar, 2011 1 commit
    • Paul Eggert's avatar
      New file unexec.h, the (simple) interface for unexec. · ce701a33
      Paul Eggert authored
      * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
      (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
      Depend on unexec.h.
      * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
      * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
      * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
      ce701a33
  21. 12 Mar, 2011 2 commits
    • Eli Zaretskii's avatar
      Make termcap.c implementations consistent with tparam.h prototypes. · 058e5dad
      Eli Zaretskii authored
       src/termcap.c [MSDOS]: Include "msdos.h.
       (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
       Constify `char *' arguments and their references according to
       prototypes in tparam.h.
       src/deps.mk (termcap.o): Depend on tparam.h and msdos.h.
      058e5dad
    • Paul Eggert's avatar
      Improve quality of tests for time stamp overflow. For example, · b8d9bd41
      Paul Eggert authored
      without this patch (encode-time 0 0 0 1 1 1152921504606846976)
      returns the obviously-bogus value (-948597 62170) on my RHEL 5.5
      x86-64 host.  With it, it reports time overflow.
      * deps.mk (editfns.o): Depend on ../lib/intprops.h.
      * editfns.c: Include limits.h and intprops.h.
      (TIME_T_MIN, TIME_T_MAX): New macros.
      (time_overflow): Move earlier, to before first use.
      (hi_time, lo_time): New functions, for an accurate test for
      out-of-range times.
      (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
      (Fget_internal_run_time): Don't assume time_t fits in int.
      (make_time): Use list2 instead of Fcons twice.
      (Fdecode_time): More accurate test for out-of-range times.
      (check_tm_member): New function.
      (Fencode_time): Use it, to test for out-of-range times.
      b8d9bd41
  22. 08 Mar, 2011 1 commit
    • Paul Eggert's avatar
      * tparam.h: New file. · 50938595
      Paul Eggert authored
      * term.c, tparam.h: Include it.
      * deps.mk (term.o, tparam.o): Depend on tparam.h.
      * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
      Move these decls to tparam.h, and make them agree with what
      is actually in tparam.c.  The previous trick of using incompatible
      decls in different modules does not conform to the C standard.
      All callers of tparam changed to use tparam's actual API.
      * tparam.c (tparam1, tparam, tgoto):
      Use const pointers where appropriate.
      50938595
  23. 20 Feb, 2011 1 commit
    • Paul Eggert's avatar
      Import filemode module from gnulib. · cfd812fa
      Paul Eggert authored
      * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
      * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
      (filemode.o): Remove; this is now in ../lib.
      * dired.c: Include <filemode.h>.
      (filemodestring): Remove now-redundant decl.
      * config.in: Regenerate.
      
      2011-02-20  Paul Eggert  <eggert@cs.ucla.edu>
      cfd812fa
  24. 19 Feb, 2011 2 commits
  25. 18 Feb, 2011 1 commit
    • Paul Eggert's avatar
      Import crypto/md5 module from gnulib. · 942f733f
      Paul Eggert authored
      * Makefile.in (MAKEFILE_MODULES): Add crypto/md5.
      * admin/notes/copyright: Remove src/md5.c and src/md5.h as
      special cases.
      * src/Makefile.in (base_obj): Remove md5.o, since this file
      is in lib now.
      * src/deps.mk (md5.o): Remove.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk, m4/gl-comp.m4:
      Regenerate.
      * lib/md5.c: Regenerate.  This renames the file from src/md5.c,
      and adds some porting improvements from gnulib.
      * lib/md5.h: Regenerate, likwise; rename from src/md5.h.
      * m4/md5.m4: New file, from gnulib.
      
      2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
      942f733f
  26. 16 Feb, 2011 1 commit
  27. 08 Feb, 2011 1 commit
  28. 04 Feb, 2011 1 commit
  29. 30 Jan, 2011 1 commit
  30. 25 Jan, 2011 1 commit
  31. 15 Jan, 2011 1 commit
  32. 09 Jan, 2011 1 commit
  33. 18 Sep, 2010 1 commit
  34. 22 Aug, 2010 1 commit
  35. 05 Aug, 2010 1 commit
    • Eli Zaretskii's avatar
      Rename src/unexec.c => src/unexcoff.c. · 29cf3e20
      Eli Zaretskii authored
       src/unexcoff.c: Renamed from unexec.c.
       src/deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
       configure.in (UNEXEC_OBJ): Rename unexec.o => unexcoff.o.
       admin/MAINTAINERS: Rename src/unexec.c => src/unexcoff.c.
       etc/AUTHORS: Rename unexec.o => unexcoff.o.
       etc/PROBLEMS: Rename unexec.o => unex*.o.
       lisp/emacs-lisp/find-gc.el (find-gc-source-files): Rename
       unexec.c => unexcoff.c.
       lisp/emacs-lisp/authors.el (authors-fixed-entries): Rename
       unexec.c => unexcoff.c.
       msdos/sed1v2.inp (UNEXEC_OBJ): Edit to unexcoff.o, due to renaming of
       unexec.c => unexcoff.c.
      29cf3e20
  36. 12 Jun, 2010 1 commit
    • Eli Zaretskii's avatar
      Use BidiMirroring.txt for mirroring characters in bidi context. · cbc4fd20
      Eli Zaretskii authored
       admin/unidata/bidimirror.awk: New file.
       admin/unidata/BidiMirroring.txt: New file from
       http://www.unicode.org/Public/6.0.0/ucd/BidiMirroring-6.0.0d1.txt.
       admin/unidata/Makefile.in: (../../src/bidimirror.h): New target.
       (all): Depend on ../../src/biditype.h and ../../src/bidimirror.h.
       admin/unidata/makefile.w32-in (../../src/bidimirror.h): New target.
       (all): Depend on ../../src/biditype.h and ../../src/bidimirror.h.
       src/makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
       bidimirror.h.
       src/deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
       src/bidi.c (bidi_initialize): Initialize bidi_mirror_table.
       (bidi_mirror_char): Use bidi_mirror_table.
      cbc4fd20
  37. 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