summaryrefslogtreecommitdiff
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-11-05 20:41:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-11-05 20:42:10 -0700
commit84c53436ab25b6c8f76c133e59b34e533ea33cc7 (patch)
tree0591d8e26be72e5c36a221c6642c614d43cb8c30 /src/emacs-module.c
parentbb61e50533a4dd1f2f93de1f8ca55d31f9094e6d (diff)
downloademacs-84c53436ab25b6c8f76c133e59b34e533ea33cc7.tar.gz
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;
or a pointer to handle non-local exits. The function must have an
ENV parameter. The function will return the specified value if a
signal or throw is caught. */
-// TODO: Have Fsignal check for CATCHER_ALL so we only have to install
-// one handler.
+/* TODO: Have Fsignal check for CATCHER_ALL so we only have to install
+ one handler. */
#define MODULE_HANDLE_NONLOCAL_EXIT(retval) \
MODULE_SETJMP (CONDITION_CASE, module_handle_signal, retval); \
MODULE_SETJMP (CATCHER_ALL, module_handle_throw, retval)
@@ -163,7 +163,7 @@ static emacs_value const module_nil = 0;
code after the macro may longjmp back into the macro, which means
its local variable C must stay live in later code. */
-// TODO: Make backtraces work if this macros is used.
+/* TODO: Make backtraces work if this macros is used. */
#define MODULE_SETJMP_1(handlertype, handlerfunc, retval, c, dummy) \
if (module_non_local_exit_check (env) != emacs_funcall_exit_return) \