1. 10 Jul, 2012 11 commits
    • Dmitry Antipov's avatar
      Optimize pure C strings initialization. · 2a0213a6
      Dmitry Antipov authored
      * lisp.h (make_pure_string): Fix prototype.
      (build_pure_c_string): New function, defined as static inline.  This
      provides a better opportunity to optimize away calls to strlen when
      the function is called with compile-time constant argument.
      * alloc.c (make_pure_c_string): Fix comment.  Change to add nchars
      argument, adjust users accordingly.  Use build_pure_c_string where
      * buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c,
      * keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c,
      * xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate.
    • Dmitry Antipov's avatar
      Avoid calls to strlen in miscellaneous functions. · cb1caeaf
      Dmitry Antipov authored
      * buffer.c (init_buffer): Use precalculated len, adjust if needed.
      * font.c (Ffont_xlfd_name): Likewise.  Change to call make_string.
      * lread.c (openp): Likewise.
    • Glenn Morris's avatar
      Move PENDING_OUTPUT_COUNT from src/s to configure · d02eb359
      Glenn Morris authored
      * configure.ac (PENDING_OUTPUT_COUNT): Move here from src/s.
      * src/s/cygwin.h, src/s/darwin.h, src/s/freebsd.h, src/s/netbsd.h:
      * src/s/unixware.h: Move PENDING_OUTPUT_COUNT definition to configure.
    • Glenn Morris's avatar
      Move DATA_START, DATA_SEG_BITS from src/s to configure · 882cf227
      Glenn Morris authored
      * configure.ac (DATA_START, DATA_SEG_BITS): Move here from src/s.
      * src/s/irix6-5.h (DATA_START, DATA_SEG_BITS):
      * src/s/hpux10-20.h (DATA_SEG_BITS, DATA_START):
      * src/s/gnu.h (DATA_START): Move definitions to configure.
    • Dmitry Antipov's avatar
      Avoid calls to strlen in path processing functions. · c293e30c
      Dmitry Antipov authored
      * fileio.c (file_name_as_directory): Add comment.  Change to add
      srclen argument and return the length of result.  Adjust users
      (directory_file_name): Fix comment.  Change to add srclen argument,
      swap 1nd and 2st arguments to obey the common convention.  Adjust
      users accordingly.
      * filelock.c (fill_in_lock_file_name): Avoid calls to strlen.
    • Glenn Morris's avatar
      * src/s/irix6-5.h (SETUP_SLAVE_PTY, PTY_NAME_SPRINTF): Drop ifdef guards. · af6e839f
      Glenn Morris authored
      We include usg5-4-common.h, which defines them both.
    • Glenn Morris's avatar
      * src/s/gnu.h: Don't include fcntl.h · 40289a12
      Glenn Morris authored
      (every file in Emacs that uses O_RDONLY already includes it; and this
      does not seem like the problem a src/s file should be trying to solve).
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      authors.el update for configure.ac renaming · c4907a5e
      Glenn Morris authored
      * lisp/emacs-lisp/authors.el (authors-fixed-entries):
      (authors-renamed-files-alist): Update for configure.in -> configure.ac.
    • Glenn Morris's avatar
      Stop ns builds setting the EMACSLOADPATH environment variable · 9e059e3f
      Glenn Morris authored
      Ref bugs 4309, 6401, etc.
      This is the last environment variable (ab)used by the ns port in this way.
      * src/nsterm.m (ns_load_path): Rename from ns_init_paths.
      Now it does not set EMACSLOADPATH, just returns the load-path string.
      * src/nsterm.h: Update accordingly.
      * src/lread.c [HAVE_NS]: Include nsterm.h.
      (init_lread) [HAVE_NS]: Use ns_load_path.
      * src/emacs.c (main) [HAVE_NS]: No longer call ns_init_paths.
    • Glenn Morris's avatar
      Tiny NEWS edit · 4107c81e
      Glenn Morris authored
  2. 09 Jul, 2012 26 commits
  3. 08 Jul, 2012 3 commits