1. 28 Jun, 2012 1 commit
    • Dmitry Antipov's avatar
      Generalize run-time debugging checks. · a54e2c05
      Dmitry Antipov authored
      * configure.in (ENABLE_CHECKING): Update comment.
      * src/dispextern.h (XASSERTS): Remove.
      * src/fontset.c (xassert): Remove.
      Convert from xassert to eassert.
      * src/alloc.c: Convert from xassert to eassert.
      * src/bidi.c: Likewise.
      * src/dispnew.c: Likewise.
      * src/fns.c: Likewise.
      * src/fringe.c: Likewise.
      * src/ftfont.c: Likewise.
      * src/gtkutil.c: Likewise.
      * src/image.c: Likewise.
      * src/keyboard.c: Likewise.
      * src/menu.c: Likewise.
      * src/process.c: Likewise.
      * src/scroll.c: Likewise.
      * src/sound.c: Likewise.
      * src/term.c: Likewise.
      * src/w32console.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32term.c: Likewise.
      * src/window.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xselect.c: Likewise.
      * src/xterm.c: Likewise.
      a54e2c05
  2. 27 Jun, 2012 10 commits
  3. 26 Jun, 2012 7 commits
    • Stefan Monnier's avatar
    • Eli Zaretskii's avatar
      Define HAVE_STRCASECMP and HAVE_STRNCASECMP on MS-Windows. · f6f62d1b
      Eli Zaretskii authored
       src/s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to
       _stricmp and _strnicmp.
       (HAVE_STRCASECMP, HAVE_STRNCASECMP): Define to 1.
      f6f62d1b
    • Dmitry Antipov's avatar
      * alloc.c (allocate_window): Zero out non-Lisp part of newly · 62efea5e
      Dmitry Antipov authored
      allocated window.
      (allocate_process): Likewise for new process.
      (allocate_terminal): Changed to use offsetof.
      (allocate_frame): Likewise.
      * frame.c (make_frame): Omit redundant initialization.
      * window.c (make_parent_window): Use memset.
      (make_window): Omit redundant initialization.
      * process.c (make_process): Omit redundant initialization.
      * terminal.c (create_terminal): Likewise.
      62efea5e
    • Dmitry Antipov's avatar
      42997f4d
    • Dmitry Antipov's avatar
      * src/alloc.c: Remove build_string. · 1130ecfc
      Dmitry Antipov authored
      * src/lisp.h: Define build_string as static inline.  This provides
      a better opportunity to optimize away calls to strlen when the
      function is called with compile-time constant argument.
      * src/image.c (imagemagick_error): Convert to build_string.
      * src/w32proc.c (sys_spawnve): Likewise.
      * src/xterm.c (x_term_init): Likewise.
      * admin/coccinelle/build_string.cocci: Semantic patch
      to convert from make_string to build_string.
      1130ecfc
    • Paul Eggert's avatar
      Use sprintf return value instead of invoking strlen on result. · 99027bdd
      Paul Eggert authored
      In the old days this wasn't portable, since some sprintf
      implementations returned char *.  But they died out years ago and
      Emacs already assumes sprintf returns int.
      Similarly for float_to_string.
      This patch speeds up (number-to-string 1000) by 3% on Fedora 15 x86-64.
      * ccl.c (ccl_driver):
      * character.c (string_escape_byte8):
      * data.c (Fnumber_to_string):
      * doprnt.c (doprnt):
      * print.c (print_object):
      * xdisp.c (message_dolog):
      * xfns.c (syms_of_xfns):
      Use sprintf or float_to_string result to avoid need to call strlen.
      * data.c (Fnumber_to_string):
      Use make_unibyte_string, since the string must be ASCII.
      * lisp.h, print.c (float_to_string): Now returns int length.
      * term.c (produce_glyphless_glyph):
      Use sprintf result rather than recomputing it.
      99027bdd
    • Paul Eggert's avatar
      cf38a720
  4. 25 Jun, 2012 7 commits
  5. 24 Jun, 2012 8 commits
  6. 23 Jun, 2012 7 commits