summaryrefslogtreecommitdiff
path: root/libguile/regex-posix.c
diff options
context:
space:
mode:
authorKeisuke Nishida <kxn30@po.cwru.edu>2000-12-08 17:32:56 +0000
committerKeisuke Nishida <kxn30@po.cwru.edu>2000-12-08 17:32:56 +0000
commite841c3e0c006a4c80d873f93cb512f0ec71a5705 (patch)
treea464d2eb9ca225d04d034b40e8b029efce1ea323 /libguile/regex-posix.c
parent38ae064c6e462bafc7e188b4586fb3e6eedec876 (diff)
downloadguile-e841c3e0c006a4c80d873f93cb512f0ec71a5705.tar.gz
Smob-related creanup.
Diffstat (limited to 'libguile/regex-posix.c')
-rw-r--r--libguile/regex-posix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c
index 6866fb071..0abb4b8da 100644
--- a/libguile/regex-posix.c
+++ b/libguile/regex-posix.c
@@ -92,10 +92,10 @@
#define REG_BASIC 0
#endif
-long scm_tc16_regex;
+scm_bits_t scm_tc16_regex;
static scm_sizet
-free_regex (SCM obj)
+regex_free (SCM obj)
{
regfree (SCM_RGX (obj));
free (SCM_RGX (obj));
@@ -280,8 +280,8 @@ SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0,
void
scm_init_regex_posix ()
{
- scm_tc16_regex = scm_make_smob_type_mfpe ("regexp", sizeof (regex_t),
- NULL, free_regex, NULL, NULL);
+ scm_tc16_regex = scm_make_smob_type ("regexp", sizeof (regex_t));
+ scm_set_smob_free (scm_tc16_regex, regex_free);
/* Compilation flags. */
scm_sysintern ("regexp/basic", scm_long2num (REG_BASIC));