diff options
author | Marius Vollmer <mvo@zagadka.de> | 2004-07-23 15:43:02 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2004-07-23 15:43:02 +0000 |
commit | e11e83f3d99305ada6354cae7123fb8c0e998703 (patch) | |
tree | 23dccd2a0fd1741abb8561214acadc347036480b /libguile/ioext.c | |
parent | 928e0f421070bb610f3375d5808a6378d5edfa1b (diff) | |
download | guile-e11e83f3d99305ada6354cae7123fb8c0e998703.tar.gz |
* deprecated.h, deprecated.c, numbers.h (SCM_INUMP, SCM_NINUMP,
SCM_INUM): Deprecated by reenaming them to SCM_I_INUMP, SCM_I_NINUMP
and SCM_I_INUM, respectively and adding deprecated versions to
deprecated.h and deprecated.c. Changed all uses to either use the
SCM_I_ variants or scm_is_*, scm_to_*, or scm_from_*, as appropriate.
Diffstat (limited to 'libguile/ioext.c')
-rw-r--r-- | libguile/ioext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/ioext.c b/libguile/ioext.c index 0abce7f00..09392c057 100644 --- a/libguile/ioext.c +++ b/libguile/ioext.c @@ -53,7 +53,7 @@ SCM_DEFINE (scm_ftell, "ftell", 1, 0, 0, "@end lisp") #define FUNC_NAME s_scm_ftell { - return scm_seek (fd_port, SCM_INUM0, SCM_I_MAKINUM (SEEK_CUR)); + return scm_seek (fd_port, SCM_INUM0, scm_from_int (SEEK_CUR)); } #undef FUNC_NAME @@ -114,8 +114,8 @@ SCM_DEFINE (scm_dup_to_fdes, "dup->fdes", 1, 1, 0, fd_or_port = SCM_COERCE_OUTPORT (fd_or_port); - if (SCM_INUMP (fd_or_port)) - oldfd = SCM_INUM (fd_or_port); + if (scm_is_integer (fd_or_port)) + oldfd = scm_to_int (fd_or_port); else { SCM_VALIDATE_OPFPORT (1, fd_or_port); @@ -178,7 +178,7 @@ SCM_DEFINE (scm_fileno, "fileno", 1, 0, 0, { port = SCM_COERCE_OUTPORT (port); SCM_VALIDATE_OPFPORT (1, port); - return SCM_I_MAKINUM (SCM_FPORT_FDES (port)); + return scm_from_int (SCM_FPORT_FDES (port)); } #undef FUNC_NAME |