aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPaul Eggert2016-11-05 20:41:37 -0700
committerPaul Eggert2016-11-05 20:42:10 -0700
commit84c53436ab25b6c8f76c133e59b34e533ea33cc7 (patch)
tree0591d8e26be72e5c36a221c6642c614d43cb8c30 /src/emacs-module.c
parentbb61e50533a4dd1f2f93de1f8ca55d31f9094e6d (diff)
downloademacs-84c53436ab25b6c8f76c133e59b34e533ea33cc7.tar.gz
emacs-84c53436ab25b6c8f76c133e59b34e533ea33cc7.zip
Prefer comments /* like this */ in C code
Emacs C code assumes C99 features, but has long used traditional comments /* like this */ instead of C99-style comments // like this. Stick with traditional comments for now, partly for style, partly as it may be safer with compilers that are not fully in C99 mode.
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r--src/emacs-module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index eca5af739b9..a28fe57b12d 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -142,8 +142,8 @@ static emacs_value const module_nil = 0;
142 or a pointer to handle non-local exits. The function must have an 142 or a pointer to handle non-local exits. The function must have an
143 ENV parameter. The function will return the specified value if a 143 ENV parameter. The function will return the specified value if a
144 signal or throw is caught. */ 144 signal or throw is caught. */
145// TODO: Have Fsignal check for CATCHER_ALL so we only have to install 145/* TODO: Have Fsignal check for CATCHER_ALL so we only have to install
146// one handler. 146 one handler. */
147#define MODULE_HANDLE_NONLOCAL_EXIT(retval) \ 147#define MODULE_HANDLE_NONLOCAL_EXIT(retval) \
148 MODULE_SETJMP (CONDITION_CASE, module_handle_signal, retval); \ 148 MODULE_SETJMP (CONDITION_CASE, module_handle_signal, retval); \
149 MODULE_SETJMP (CATCHER_ALL, module_handle_throw, retval) 149 MODULE_SETJMP (CATCHER_ALL, module_handle_throw, retval)
@@ -163,7 +163,7 @@ static emacs_value const module_nil = 0;
163 code after the macro may longjmp back into the macro, which means 163 code after the macro may longjmp back into the macro, which means
164 its local variable C must stay live in later code. */ 164 its local variable C must stay live in later code. */
165 165
166// TODO: Make backtraces work if this macros is used. 166/* TODO: Make backtraces work if this macros is used. */
167 167
168#define MODULE_SETJMP_1(handlertype, handlerfunc, retval, c, dummy) \ 168#define MODULE_SETJMP_1(handlertype, handlerfunc, retval, c, dummy) \
169 if (module_non_local_exit_check (env) != emacs_funcall_exit_return) \ 169 if (module_non_local_exit_check (env) != emacs_funcall_exit_return) \