1. 24 Sep, 2013 5 commits
    • Paul Eggert's avatar
      * dispnew.c (clear_glyph_row, copy_row_except_pointers): · 9da0f50e
      Paul Eggert authored
      Prefer signed to unsigned integers where either will do.
      No need for 'const' on locals that do not escape.
      Omit easserts with unnecessary and unportable assumptions about
      alignment.  Avoid unnecessary casts to char *.
      9da0f50e
    • Dmitry Antipov's avatar
      Use union for the payload of struct Lisp_Vector. · d6d9cbc1
      Dmitry Antipov authored
      This helps to avoid a few glitches dictated by C's aliasing rules.
      * lisp.h (struct Lisp_Vector): Use union for next and
      contents member.  Adjust comment.  Change related users.
      * alloc.c (next_in_free_list, set_next_in_free_list): Remove.
      Related users changed.
      * buffer.c, bytecode.c, ccl.c, character.h, chartab.c, composite.c:
      * composite.h, disptab.h, fns.c, fontset.c, indent.c, keyboard.c:
      * lread.c, msdos.c, process.c, w32menu.c, window.c, xdisp.c:
      * xfaces.c, xfont.c, xmenu.c: Related users changed.
      d6d9cbc1
    • Dmitry Antipov's avatar
      Optimize glyph row clearing and copying routines. · ec7bc82f
      Dmitry Antipov authored
      * dispextern.h (struct glyph_row): Change layout of struct
      glyph_row to help copy_row_except_pointers.  Adjust comment.
      * dispnew.c (null_row): Remove.
      (clear_glyph_row): Use offsetof and memset to find and clear
      just the members that need clearing.  Adjust comment.
      (copy_row_except_pointers): Likewise for copying.
      ec7bc82f
    • Paul Eggert's avatar
      Some minor cleanups of recently-added bool vector code. · 7be68de5
      Paul Eggert authored
      * conf_post.h (assume): Always return void.  Use lint version
      only if GCC and MSC versions don't apply.
      * conf_post.h (assume):
      * data.c (USC_MSC_POPCOUNT, count_trailing_zero_bits):
      Depend on _MSC_VER, not __MSC_VER, for consistency with
      the rest of Emacs.
      * data.c (bool_vector_spare_mask, popcount_size_t_generic)
      (popcount_size_t_msc, popcount_size_t_gcc, popcount_size_t)
      (bool_vector_binop_driver, count_trailing_zero_bits)
      (size_t_to_host_endian): Now static, not static inline;
      the latter isn't needed with modern compilers and doesn't
      work with older compilers anyway.
      7be68de5
    • Paul Eggert's avatar
      d160dd0c
  2. 23 Sep, 2013 14 commits
  3. 22 Sep, 2013 9 commits
    • Jan Djärv's avatar
      Fix compiler warnings from XCode 5.0 on OSX. · fb83ea63
      Jan Djärv authored
      * nsterm.m (setMarkedText:selectedRange:):
      (deleteWorkingText):
      * nsmenu.m (addDisplayItemWithImage:idx:tag:helpText:enabled:):
      * nsfont.m (ns_get_covering_families, ns_findfonts): Cast NSLog
      argument to unsigned long to avoid warning.
      (nsfont_draw): Use 0.25 instead of  Fix2X (kATSItalicQDSkew).
      
      * process.c (wait_reading_process_output): Change int pnamelen to
      socklen_t.
      fb83ea63
    • Xue Fuqiao's avatar
    • Leo Liu's avatar
      * files.el (interpreter-mode-alist): Add octave. · 7186ba60
      Leo Liu authored
      7186ba60
    • Jan Djärv's avatar
    • Daniel Colascione's avatar
    • Daniel Colascione's avatar
      Add set operations for bool-vector. · 3e0b94e7
      Daniel Colascione authored
      http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00404.html
      
      * data.c (Qbool_vector_p): New symbol.
      (bool_vector_spare_mask,popcount_size_t_generic)
      (popcount_size_t_msc,popcount_size_t_gcc)
      (popcount_size_t)
      (bool_vector_binop_driver)
      (count_trailing_zero_bits,size_t_to_host_endian)
      (Fbool_vector_exclusive_or)
      (Fbool_vector_union)
      (Fbool_vector_intersection,Fbool_vector_set_difference)
      (Fbool_vector_subsetp,Fbool_vector_not)
      (Fbool_vector_count_matches)
      (Fbool_vector_count_matches_at): New functions.
      (syms_of_data): Intern new symbol, functions.
      * alloc.c (bool_vector_payload_bytes): New function.
      (Fmake_bool_vector): Instead of calling Fmake_vector,
      which performs redundant initialization and argument checking,
      just call allocate_vector ourselves.  Make sure we clear any
      terminating padding to zero.
      (vector_nbytes,sweep_vectors): Use bool_vector_payload_bytes
      instead of open-coding the size calculation.
      (vroundup_ct): New macro.
      (vroundup): Assume argument >= 0; invoke vroundup_ct.
      * casetab.c (shuffle,set_identity): Change lint_assume to assume.
      * composite.c (composition_gstring_put_cache): Change
      lint_assume to assume.
      * conf_post.h (assume): New macro.
      (lint_assume): Remove.
      * dispnew.c (update_frame_1): Change lint_assume to assume.
      * ftfont.c (ftfont_shape_by_flt): Change lint_assume
      to assume.
      * image.c (gif_load): Change lint_assume to assume.
      * lisp.h (eassert_and_assume): New macro.
      (Qbool_vector_p): Declare.
      (CHECK_BOOL_VECTOR,ROUNDUP,BITS_PER_SIZE_T): New macros.
      (swap16,swap32,swap64): New inline functions.
      * macfont.c (macfont_shape): Change lint_assume to assume.
      * ralloc.c: Rename ROUNDUP to PAGE_ROUNDUP throughout.
      * xsettings.c (parse_settings): Use new swap16 and
      swap32 from lisp.h instead of file-specific macros.
      3e0b94e7
    • Eli Zaretskii's avatar
      Fix bug #15365 with aborts in try_window_id. · 76880d88
      Eli Zaretskii authored
       src/xdisp.c (try_window_id): Don't abort if cursor row could not be
       found (which can legitimately happen when the glyph row at the
       window start is disabled in the current_matrix.
      76880d88
    • Paul Eggert's avatar
      Fix syntax.h bug introduced by recent INLINE change. · c6cfd910
      Paul Eggert authored
      syntax.h defined an extern inline function SYNTAX_ENTRY that was
      conditionally compiled one way in some modules, and a different
      way in others.  This doesn't work with extern inline functions,
      which must have the same definition in all modules, because the
      defining code might be shared across modules, depending on the
      implementation.  Symptoms reported by Martin Rudalics in:
      http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00414.html
      * regex.c, syntax.c (SYNTAX_ENTRY_VIA_PROPERTY): Remove.
      (SYNTAX, SYNTAX_ENTRY, SYNTAX_WITH_FLAGS): New macros,
      overriding the corresponding functions in syntax.h.
      * syntax.h (syntax_property_entry, syntax_property_with_flags)
      (syntax_property): New inline functions.
      (SYNTAX_ENTRY, SYNTAX_WITH_FLAGS, SYNTAX):
      Rewrite in terms of these new functions.
      c6cfd910
    • Xue Fuqiao's avatar
      @refill is no longer needed. · 3a4be55b
      Xue Fuqiao authored
      * doc/emacs/fixit.texi (Transpose):
      (Fixing Case): Remove @refill.
      3a4be55b
  4. 21 Sep, 2013 8 commits
  5. 20 Sep, 2013 4 commits