diff options
| author | Dmitry Antipov | 2014-09-09 15:43:22 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-09-09 15:43:22 +0400 |
| commit | e2588fa52fd7761e252361c341d8565790b3d1f2 (patch) | |
| tree | d42c861fba7d5770d8371a8109768ea541595ae3 /src/alloc.c | |
| parent | c7dfea947eba1980fe3a23ad13f04dd40c6c0d68 (diff) | |
| download | emacs-e2588fa52fd7761e252361c341d8565790b3d1f2.tar.gz emacs-e2588fa52fd7761e252361c341d8565790b3d1f2.zip | |
Cleanup last change and make all new stuff conditional.
* lisp.h (build_local_string): Rename to ...
(make_local_string): ... this macro.
(build_local_string, scoped_list1, scoped_list3): New macros.
(toplevel) [USE_STACK_LISP_OBJECTS]: Define all new macros
and functions as such, use regular fallbacks otherwise.
* alloc.c (verify_alloca) [USE_STACK_LISP_OBJECTS]: Define
conditionally.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 13043d6d9d7..5c7ce31cad8 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -7118,6 +7118,10 @@ die (const char *msg, const char *file, int line) | |||
| 7118 | terminate_due_to_signal (SIGABRT, INT_MAX); | 7118 | terminate_due_to_signal (SIGABRT, INT_MAX); |
| 7119 | } | 7119 | } |
| 7120 | 7120 | ||
| 7121 | #endif /* ENABLE_CHECKING */ | ||
| 7122 | |||
| 7123 | #if defined (ENABLE_CHECKING) && defined (USE_STACK_LISP_OBJECTS) | ||
| 7124 | |||
| 7121 | /* Stress alloca with inconveniently sized requests and check | 7125 | /* Stress alloca with inconveniently sized requests and check |
| 7122 | whether all allocated areas may be used for Lisp_Object. */ | 7126 | whether all allocated areas may be used for Lisp_Object. */ |
| 7123 | 7127 | ||
| @@ -7134,11 +7138,11 @@ verify_alloca (void) | |||
| 7134 | } | 7138 | } |
| 7135 | } | 7139 | } |
| 7136 | 7140 | ||
| 7137 | #else /* not ENABLE_CHECKING */ | 7141 | #else /* not (ENABLE_CHECKING && USE_STACK_LISP_OBJECTS) */ |
| 7138 | 7142 | ||
| 7139 | #define verify_alloca() ((void) 0) | 7143 | #define verify_alloca() ((void) 0) |
| 7140 | 7144 | ||
| 7141 | #endif /* ENABLE_CHECKING */ | 7145 | #endif /* ENABLE_CHECKING && USE_STACK_LISP_OBJECTS */ |
| 7142 | 7146 | ||
| 7143 | /* Initialization. */ | 7147 | /* Initialization. */ |
| 7144 | 7148 | ||