aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2023-02-22 10:57:33 +0800
committerPo Lu2023-02-22 11:01:44 +0800
commit137bdaced6a7c39063cebb5f7c12195438495c52 (patch)
tree16160cad2f99c6847b5d133b8b0826d5ca010e3e /src
parenta892c0487a6391e9d35296b2b4168318a7ca622f (diff)
downloademacs-137bdaced6a7c39063cebb5f7c12195438495c52.tar.gz
emacs-137bdaced6a7c39063cebb5f7c12195438495c52.zip
Update Android port
* INSTALL.android: Port to MIPS. * configure.ac (modules): Default to ifavailable. Write actual test for __attribute__((cleanup)). * m4/ndk-build.m4: Recognize mips and mips64. * src/emacs-module.c: Remove broken HAS_ATTRIBUTE test.
Diffstat (limited to 'src')
-rw-r--r--src/emacs-module.c8
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