HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca3873
)
* read.c (scm_flush_ws): Include filename in error message when it
author
Marius Vollmer
<mvo@zagadka.de>
Sun, 6 Aug 2000 22:04:11 +0000
(22:04 +0000)
committer
Marius Vollmer
<mvo@zagadka.de>
Sun, 6 Aug 2000 22:04:11 +0000
(22:04 +0000)
is not `#f'.
libguile/read.c
patch
|
blob
|
blame
|
history
diff --git
a/libguile/read.c
b/libguile/read.c
index
1fa8600
..
23d0e9a
100644
(file)
--- a/
libguile/read.c
+++ b/
libguile/read.c
@@
-138,7
+138,14
@@
scm_flush_ws (SCM port, const char *eoferr)
case EOF:
goteof:
if (eoferr)
- scm_wta (SCM_UNDEFINED, "end of file in ", eoferr);
+ {
+ if (SCM_FILENAME (port) != SCM_BOOL_F)
+ scm_misc_error (eoferr,
+ "end of file in ~A",
+ SCM_LIST1 (SCM_FILENAME (port)));
+ else
+ scm_misc_error (eoferr, "end of file", SCM_EOL);
+ }
return c;
case ';':
lp: