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/regex-posix.h | |
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/regex-posix.h')
-rw-r--r-- | libguile/regex-posix.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libguile/regex-posix.h b/libguile/regex-posix.h index 3290ffcf5..172ed928c 100644 --- a/libguile/regex-posix.h +++ b/libguile/regex-posix.h @@ -45,11 +45,14 @@ * If you do not wish that, delete this exception notice. */ +/* Software engineering face-lift by Greg J. Badros, 11-Dec-1999, + gjb@cs.washington.edu, http://www.cs.washington.edu/homes/gjb */ + #include "libguile/__scm.h" extern long scm_tc16_regex; #define SCM_RGX(X) ((regex_t *) SCM_CDR(X)) -#define SCM_RGXP(X) (SCM_CAR (X) == (SCM) scm_tc16_regex) +#define SCM_RGXP(X) (SCM_NIMP(X) && (SCM_CAR (X) == (SCM) scm_tc16_regex)) extern SCM scm_make_regexp SCM_P ((SCM pat, SCM flags)); SCM scm_regexp_p SCM_P ((SCM x)); |