diff options
author | Greg J. Badros <gjb@cs.washington.edu> | 1999-12-16 03:46:42 +0000 |
---|---|---|
committer | Greg J. Badros <gjb@cs.washington.edu> | 1999-12-16 03:46:42 +0000 |
commit | d3a6bc94840464e1af8109de5dddd5859560c679 (patch) | |
tree | 87475ee6d125df4493b89e5e6a9a13933c8ab356 /libguile/gdbint.c | |
parent | f353a9e2323b3957cd8475bcf10f7b489a8ce000 (diff) | |
download | guile-d3a6bc94840464e1af8109de5dddd5859560c679.tar.gz |
* *.h: Use SCM_NIMP(X) && in all the FOOP macros.
* *.[ch]: Use do { ... } while (0) idiom in macros that expanded
to a bare block.
Diffstat (limited to 'libguile/gdbint.c')
-rw-r--r-- | libguile/gdbint.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libguile/gdbint.c b/libguile/gdbint.c index c219dbd32..6e0b294b3 100644 --- a/libguile/gdbint.c +++ b/libguile/gdbint.c @@ -87,28 +87,28 @@ * debugger. */ #define SCM_BEGIN_FOREIGN_BLOCK \ -{ \ +do { \ old_ints = scm_ints_disabled; scm_ints_disabled = 1; \ old_gc = scm_block_gc; scm_block_gc = 1; \ scm_print_carefully_p = 1; \ -} \ +} while (0) #define SCM_END_FOREIGN_BLOCK \ -{ \ +do { \ scm_print_carefully_p = 0; \ scm_block_gc = old_gc; \ scm_ints_disabled = old_ints; \ -} \ +} while (0) #define RESET_STRING { gdb_output_length = 0; } #define SEND_STRING(str) \ -{ \ +do { \ gdb_output = str; \ gdb_output_length = strlen (str); \ -} \ +} while (0) /* {Gdb interface} |