aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-09-08 08:46:15 -0400
committerGravatar Peter McGoron 2024-09-08 08:46:15 -0400
commit775eb863ef2b00251b9bb3d75baafa67011a5c0c (patch)
tree2ff051fb936e1398098ec392059fb4729c5e170f
parentreadtable: comments (diff)
readtable: handle EOF by returning EOF symbol
-rw-r--r--read.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/read.scm b/read.scm
index 7523b78..63a119d 100644
--- a/read.scm
+++ b/read.scm
@@ -242,6 +242,7 @@
(readtable:process
(readtable:empty/default readtable:read-ident)
(list readtable:add-all-as-skip readtable:ASCII-whitespace)
+ (list readtable:update #f (readtable:return 'eof))
(list readtable:update #\;
(readtable:jump-discard readtable:read-to-newline))))
@@ -275,6 +276,6 @@
(loop))))))
(loop)))))
-(read-all "x yy zz ; this is a comment\nx")
+(read-all "x yy zz ; this is a comment\nx call/cc ")
> git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@97 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-12-20dmaas - renamed exported arm definitions into the raw1394_ namespace; ↵Gravatar anonymous 3-124/+48 brought kernel-raw1394.h back in sync with the kernel version git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@96 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-12-16rawiso updates:Gravatar dmaas 3-18/+25 - changed return type of rawiso xmit/recv handlers from int to enum raw1394_iso_disposition - added an ioctl (RAW1394_ISO_QUEUE_ACTIVITY) to force an ISO_ACTIVITY event into the queue. This is needed for handling RAW1394_ISO_DEFER, to kick us out of the next read() instead of sleeping forever. - removed references to "8-byte" isochronous header - this is an OHCI-specific implementation detail git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@95 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-11-18fix cplusplus extern C blockGravatar ddennedy 1-4/+4 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@94 53a565d1-3bb7-0310-b661-cf11e63c67ab 2002-11-18merged rawiso branchGravatar ddennedy 7-6/+488 git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@93 53a565d1-3bb7-0310-b661-cf11e63c67ab