aboutsummaryrefslogtreecommitdiff
path: root/src/lisp/core.lisp.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp/core.lisp.in')
-rw-r--r--src/lisp/core.lisp.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lisp/core.lisp.in b/src/lisp/core.lisp.in
index dece602f..61877e29 100644
--- a/src/lisp/core.lisp.in
+++ b/src/lisp/core.lisp.in
@@ -113,6 +113,8 @@
"closeFile"
"closeStream"
"eof?"
+ "getFileCursor"
+ "setFileCursor"
"forkStreamByName"
"prettyPrint"
"readLine"
@@ -608,6 +610,12 @@
(defmacro |eof?| (s)
`(null (peek-char nil ,s nil nil nil)))
+(defmacro |getFileCursor| (s)
+ `(file-position ,s))
+
+(defmacro |setFileCursor| (s n)
+ `(file-position ,s ,n))
+
;; Make a new stream object, duplicate of the denotation of argument.
(defmacro |forkStreamByName| (s)
`(make-synonym-stream ,s))