diff options
Diffstat (limited to 'libguile/regex-posix.h')
-rw-r--r-- | libguile/regex-posix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/regex-posix.h b/libguile/regex-posix.h index 213e51aeb..37207503b 100644 --- a/libguile/regex-posix.h +++ b/libguile/regex-posix.h @@ -25,8 +25,8 @@ #include "libguile/__scm.h" SCM_API scm_t_bits scm_tc16_regex; -#define SCM_RGX(X) ((regex_t *) SCM_CELL_WORD_1 (X)) -#define SCM_RGXP(X) (!SCM_IMP (X) && (SCM_CELL_TYPE (X) == scm_tc16_regex)) +#define SCM_RGX(X) ((regex_t *) SCM_SMOB_DATA (X)) +#define SCM_RGXP(X) (SCM_SMOB_PREDICATE (scm_tc16_regex, (X))) SCM_API SCM scm_make_regexp (SCM pat, SCM flags); SCM_API SCM scm_regexp_p (SCM x); |