emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109298: * lisp.h (STRING_BYTES_BOUND


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109298: * lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.
Date: Mon, 30 Jul 2012 08:30:40 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109298
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Mon 2012-07-30 08:30:40 -0700
message:
  * lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.
  
  This is a bit clearer.  Fix some commentary typos.
modified:
  src/ChangeLog
  src/lisp.h
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-30 14:52:08 +0000
+++ b/src/ChangeLog     2012-07-30 15:30:40 +0000
@@ -1,3 +1,8 @@
+2012-07-30  Paul Eggert  <address@hidden>
+
+       * lisp.h (STRING_BYTES_BOUND): Cast entire result to ptrdiff_t.
+       This is a bit clearer.  Fix some commentary typos.
+
 2012-07-30  Glenn Morris  <address@hidden>
 
        * s/netbsd.h: Let configure include signal.h if needed.
@@ -53,7 +58,7 @@
        (enum maxargs, enum FLOAT_TO_STRING_BUFSIZE, enum MAX_ALLOCA):
        New enums, for gdb_make_enums_visible.
        (GLYPH_MODE_LINE_FACE): Remove; unused.
-       * alloc.c (STRING_BYTES_MAX): Now a constant, now a macro.
+       * alloc.c (STRING_BYTES_MAX): Now a constant, not a macro.
        (gdb_make_enums_visible): Add enum CHARTAB_SIZE_BITS, enum
        CHAR_TABLE_STANDARD_SLOTS, enum char_bits, enum DEFAULT_HASH_SIZE,
        enum FLOAT_TO_STRING_BUFSIZE, enum Lisp_Bits, enum Lisp_Compiled,

=== modified file 'src/lisp.h'
--- a/src/lisp.h        2012-07-30 06:43:46 +0000
+++ b/src/lisp.h        2012-07-30 15:30:40 +0000
@@ -715,12 +715,12 @@
    would expose alloc.c internal details that we'd rather keep
    private.
 
-   This is a macros for use in static initializers, and a constant for
+   This is a macro for use in static initializers, and a constant for
    visibility to GDB.  The cast to ptrdiff_t ensures that
-   STRING_BYTES_BOUND is signed.  */
+   the macro is signed.  */
 static ptrdiff_t const STRING_BYTES_BOUND =
 #define STRING_BYTES_BOUND  \
-  min (MOST_POSITIVE_FIXNUM, (ptrdiff_t) min (SIZE_MAX, PTRDIFF_MAX) - 1)
+  ((ptrdiff_t) min (MOST_POSITIVE_FIXNUM, min (SIZE_MAX, PTRDIFF_MAX) - 1))
        STRING_BYTES_BOUND;
 
 /* Mark STR as a unibyte string.  */
@@ -1517,7 +1517,7 @@
     CHAR_META = 0x8000000,
 
     CHAR_MODIFIER_MASK =
-     (CHAR_ALT | CHAR_SUPER | CHAR_HYPER | CHAR_SHIFT | CHAR_CTL | CHAR_META),
+      CHAR_ALT | CHAR_SUPER | CHAR_HYPER | CHAR_SHIFT | CHAR_CTL | CHAR_META,
 
     /* Actually, the current Emacs uses 22 bits for the character value
        itself.  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]