diff options
author | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2001-01-25 17:18:41 +0000 |
---|---|---|
committer | Dirk Herrmann <dirk@dirk-herrmanns-seiten.de> | 2001-01-25 17:18:41 +0000 |
commit | a98bddfd12b05872eedada5dedbd0e4967ace237 (patch) | |
tree | 999b9250a0392959485aa8fbc7ba9662d4d05ab5 /libguile/vports.c | |
parent | 0419a52877944ff360f44cec75d76f1cb29f4262 (diff) | |
download | guile-a98bddfd12b05872eedada5dedbd0e4967ace237.tar.gz |
* Made the port implementations less tightly coupled within guile.
Diffstat (limited to 'libguile/vports.c')
-rw-r--r-- | libguile/vports.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/libguile/vports.c b/libguile/vports.c index 512d55862..cdb43598d 100644 --- a/libguile/vports.c +++ b/libguile/vports.c @@ -67,6 +67,9 @@ */ +static scm_bits_t scm_tc16_sfport; + + static void sf_flush (SCM port) { @@ -197,20 +200,23 @@ SCM_DEFINE (scm_make_soft_port, "make-soft-port", 2, 0, 0, #undef FUNC_NAME -void scm_make_sfptob (void); /* Called from ports.c */ - -void +static scm_bits_t scm_make_sfptob () { - long tc = scm_make_port_type ("soft", sf_fill_input, sf_write); + scm_bits_t tc = scm_make_port_type ("soft", sf_fill_input, sf_write); + scm_set_port_mark (tc, scm_markstream); scm_set_port_flush (tc, sf_flush); scm_set_port_close (tc, sf_close); + + return tc; } void scm_init_vports () { + scm_tc16_sfport = scm_make_sfptob (); + #ifndef SCM_MAGIC_SNARFER #include "libguile/vports.x" #endif |