diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs-module.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index d158e243139..d9e564771d0 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -246,10 +246,6 @@ module_decode_utf_8 (const char *str, ptrdiff_t len) | |||
| 246 | of `internal_condition_case' etc., and to avoid worrying about | 246 | of `internal_condition_case' etc., and to avoid worrying about |
| 247 | passing information to the handler functions. */ | 247 | passing information to the handler functions. */ |
| 248 | 248 | ||
| 249 | #if !HAS_ATTRIBUTE (cleanup) | ||
| 250 | #error "__attribute__ ((cleanup)) not supported by this compiler; try GCC" | ||
| 251 | #endif | ||
| 252 | |||
| 253 | /* Place this macro at the beginning of a function returning a number | 249 | /* Place this macro at the beginning of a function returning a number |
| 254 | or a pointer to handle non-local exits. The function must have an | 250 | or a pointer to handle non-local exits. The function must have an |
| 255 | ENV parameter. The function will return the specified value if a | 251 | ENV parameter. The function will return the specified value if a |
| @@ -258,7 +254,9 @@ module_decode_utf_8 (const char *str, ptrdiff_t len) | |||
| 258 | /* It is very important that pushing the handler doesn't itself raise | 254 | /* It is very important that pushing the handler doesn't itself raise |
| 259 | a signal. Install the cleanup only after the handler has been | 255 | a signal. Install the cleanup only after the handler has been |
| 260 | pushed. Use __attribute__ ((cleanup)) to avoid | 256 | pushed. Use __attribute__ ((cleanup)) to avoid |
| 261 | non-local-exit-prone manual cleanup. | 257 | non-local-exit-prone manual cleanup. This is an extension provided |
| 258 | by GCC and similar compilers; configure prevents module.c from | ||
| 259 | being compiled when it is not present. | ||
| 262 | 260 | ||
| 263 | The do-while forces uses of the macro to be followed by a semicolon. | 261 | The do-while forces uses of the macro to be followed by a semicolon. |
| 264 | This macro cannot enclose its entire body inside a do-while, as the | 262 | This macro cannot enclose its entire body inside a do-while, as the |