]> code.delx.au - gnu-emacs/commitdiff
(PURESIZE_CHECKING_RATIO): New macro.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 24 Jul 2008 20:26:48 +0000 (20:26 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 24 Jul 2008 20:26:48 +0000 (20:26 +0000)
(PURESIZE): Use it.

src/ChangeLog
src/puresize.h

index 2e003a1815c30847d593e53e1530f0f80f1b5cea..61975a25e1a3b51e2d213c4285ea59c4d09146a1 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
+       (PURESIZE): Use it.
+
 2008-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
 
 2008-07-23  Jason Rumney  <jasonr@gnu.org>
 
-        * w32font.c (w32_enumfont_pattern_entity): Return height consistent
-        with opened font.
-        (w32font_open): Set font type to gdi.
+       * w32font.c (w32_enumfont_pattern_entity): Return height consistent
+       with opened font.
+       (w32font_open): Set font type to gdi.
 
-        * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
+       * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
 
 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
 
 
        * syntax.c (find_start_pos, find_start_value)
        (find_start_value_byte, find_start_begv, find_defun_start)
-       (back_comment, scan_sexps_forward): Use EMACS_INT for buffer
-       positions.
+       (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
 
 2008-07-20  Dan Nicolaescu  <dann@ics.uci.edu>
 
 
 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
 
-       * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for
-       HSV,AHSV.
+       * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
 
 2008-07-20  Adrian Robert  <Adrian.B.Robert@gmail.com>
 
index 9dba57ac49725854a90b43c0a9dc03bf64c2df7f..5012c7462c1e8b7576b08f0c4bff463e9c6dd9d8 100644 (file)
@@ -53,9 +53,18 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #endif
 #endif
 
+#ifdef ENABLE_CHECKING
+/* ENABLE_CHECKING somehow increases the purespace used, probably because
+   it tends to cause some macro arguments to be evaluated twice.  This is
+   a bug, but it's difficult to track it down.  */
+#define PURESIZE_CHECKING_RATIO 12/10  /* Don't surround with `()'. */
+#else
+#define PURESIZE_CHECKING_RATIO 1
+#endif
+
 /* This is the actual size in bytes to allocate.  */
 #ifndef PURESIZE
-#define PURESIZE  (BASE_PURESIZE * PURESIZE_RATIO)
+#define PURESIZE  (BASE_PURESIZE * PURESIZE_RATIO * PURESIZE_CHECKING_RATIO)
 #endif
 
 /* Signal an error if OBJ is pure.  */