~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update manual style.
[fwd]
/
scan.c
diff --git
a/scan.c
b/scan.c
index
506f98c
..
84260ed
100644
(file)
--- a/
scan.c
+++ b/
scan.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: scan.c,v 1.
2 1999/07/26 23:24:3
3 mdw Exp $
+ * $Id: scan.c,v 1.
4 2001/02/03 20:30:0
3 mdw Exp $
*
* Character scanners
*
*
* Character scanners
*
@@
-29,6
+29,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: scan.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: scan.c,v $
+ * Revision 1.4 2001/02/03 20:30:03 mdw
+ * Support re-reading config files on SIGHUP.
+ *
+ * Revision 1.3 2000/08/01 17:58:10 mdw
+ * Fix subtleties with <ctype.h> functions.
+ *
* Revision 1.2 1999/07/26 23:24:33 mdw
* Complete rewrite. Allow a list of character sources to enable changes
* during parsing of syntactic constructs.
* Revision 1.2 1999/07/26 23:24:33 mdw
* Complete rewrite. Allow a list of character sources to enable changes
* during parsing of syntactic constructs.
@@
-101,7
+107,7
@@
static scansrc_ops fscan_ops = { fscan_scan, fscan_destroy };
scansrc *scan_file(FILE *fp, char *name, unsigned f)
{
scansrc *scan_file(FILE *fp, char *name, unsigned f)
{
- fscan *fs = CREATE(fs);
+ fscan *fs = CREATE(fs
can
);
fs->ss.ops = &fscan_ops;
fs->ss.src = name;
fs->ss.line = 1;
fs->ss.ops = &fscan_ops;
fs->ss.src = name;
fs->ss.line = 1;
@@
-128,7
+134,7
@@
static int avscan_scan(scansrc *ss)
int ch;
if (!as->p)
ch = EOF;
int ch;
if (!as->p)
ch = EOF;
- else if ((ch = *as->p++) == 0) {
+ else if ((ch =
(unsigned char)
*as->p++) == 0) {
as->ss.line++;
as->p = *as->av++;
ch = '\n';
as->ss.line++;
as->p = *as->av++;
ch = '\n';