diff options
| author | Stefan Monnier | 2008-07-24 20:26:48 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-07-24 20:26:48 +0000 |
| commit | dbc812e07b362411b2219a29ef288740ad826677 (patch) | |
| tree | c8f3b0348b4c9335b98ea79bf8e3f3e9791566c3 /src | |
| parent | 383cee7be3c05ca079c452bee2c024317864292a (diff) | |
| download | emacs-dbc812e07b362411b2219a29ef288740ad826677.tar.gz emacs-dbc812e07b362411b2219a29ef288740ad826677.zip | |
(PURESIZE_CHECKING_RATIO): New macro.
(PURESIZE): Use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 19 | ||||
| -rw-r--r-- | src/puresize.h | 11 |
2 files changed, 21 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2e003a1815c..61975a25e1a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * puresize.h (PURESIZE_CHECKING_RATIO): New macro. | ||
| 4 | (PURESIZE): Use it. | ||
| 5 | |||
| 1 | 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 7 | ||
| 3 | * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs. | 8 | * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs. |
| @@ -33,11 +38,11 @@ | |||
| 33 | 38 | ||
| 34 | 2008-07-23 Jason Rumney <jasonr@gnu.org> | 39 | 2008-07-23 Jason Rumney <jasonr@gnu.org> |
| 35 | 40 | ||
| 36 | * w32font.c (w32_enumfont_pattern_entity): Return height consistent | 41 | * w32font.c (w32_enumfont_pattern_entity): Return height consistent |
| 37 | with opened font. | 42 | with opened font. |
| 38 | (w32font_open): Set font type to gdi. | 43 | (w32font_open): Set font type to gdi. |
| 39 | 44 | ||
| 40 | * w32uniscribe.c (uniscribe_open): Set font type to uniscribe. | 45 | * w32uniscribe.c (uniscribe_open): Set font type to uniscribe. |
| 41 | 46 | ||
| 42 | 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu> | 47 | 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu> |
| 43 | 48 | ||
| @@ -216,8 +221,7 @@ | |||
| 216 | 221 | ||
| 217 | * syntax.c (find_start_pos, find_start_value) | 222 | * syntax.c (find_start_pos, find_start_value) |
| 218 | (find_start_value_byte, find_start_begv, find_defun_start) | 223 | (find_start_value_byte, find_start_begv, find_defun_start) |
| 219 | (back_comment, scan_sexps_forward): Use EMACS_INT for buffer | 224 | (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions. |
| 220 | positions. | ||
| 221 | 225 | ||
| 222 | 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu> | 226 | 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu> |
| 223 | 227 | ||
| @@ -227,8 +231,7 @@ | |||
| 227 | 231 | ||
| 228 | 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> | 232 | 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> |
| 229 | 233 | ||
| 230 | * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for | 234 | * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV. |
| 231 | HSV,AHSV. | ||
| 232 | 235 | ||
| 233 | 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> | 236 | 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com> |
| 234 | 237 | ||
diff --git a/src/puresize.h b/src/puresize.h index 9dba57ac497..5012c7462c1 100644 --- a/src/puresize.h +++ b/src/puresize.h | |||
| @@ -53,9 +53,18 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 53 | #endif | 53 | #endif |
| 54 | #endif | 54 | #endif |
| 55 | 55 | ||
| 56 | #ifdef ENABLE_CHECKING | ||
| 57 | /* ENABLE_CHECKING somehow increases the purespace used, probably because | ||
| 58 | it tends to cause some macro arguments to be evaluated twice. This is | ||
| 59 | a bug, but it's difficult to track it down. */ | ||
| 60 | #define PURESIZE_CHECKING_RATIO 12/10 /* Don't surround with `()'. */ | ||
| 61 | #else | ||
| 62 | #define PURESIZE_CHECKING_RATIO 1 | ||
| 63 | #endif | ||
| 64 | |||
| 56 | /* This is the actual size in bytes to allocate. */ | 65 | /* This is the actual size in bytes to allocate. */ |
| 57 | #ifndef PURESIZE | 66 | #ifndef PURESIZE |
| 58 | #define PURESIZE (BASE_PURESIZE * PURESIZE_RATIO) | 67 | #define PURESIZE (BASE_PURESIZE * PURESIZE_RATIO * PURESIZE_CHECKING_RATIO) |
| 59 | #endif | 68 | #endif |
| 60 | 69 | ||
| 61 | /* Signal an error if OBJ is pure. */ | 70 | /* Signal an error if OBJ is pure. */ |