~mdw
/
fwd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9b699b2
)
Initialize scanner properly.
author
mdw
<mdw>
Wed, 30 Jan 2002 09:29:34 +0000
(09:29 +0000)
committer
mdw
<mdw>
Wed, 30 Jan 2002 09:29:34 +0000
(09:29 +0000)
scan.c
patch
|
blob
|
blame
|
history
diff --git
a/scan.c
b/scan.c
index
84260ed
..
cd082f5
100644
(file)
--- a/
scan.c
+++ b/
scan.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: scan.c,v 1.
4 2001/02/03 20:30:03
mdw Exp $
+ * $Id: scan.c,v 1.
5 2002/01/30 09:29:34
mdw Exp $
*
* Character scanners
*
*
* Character scanners
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: scan.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: scan.c,v $
+ * Revision 1.5 2002/01/30 09:29:34 mdw
+ * Initialize scanner properly.
+ *
* Revision 1.4 2001/02/03 20:30:03 mdw
* Support re-reading config files on SIGHUP.
*
* Revision 1.4 2001/02/03 20:30:03 mdw
* Support re-reading config files on SIGHUP.
*
@@
-301,6
+304,7
@@
void scan_create(scanner *sc)
sc->head = &scan_eof;
sc->tail = &sc->head;
dstr_create(&sc->d);
sc->head = &scan_eof;
sc->tail = &sc->head;
dstr_create(&sc->d);
+ sc->wbegin = sc->wcont = 0;
}
/* --- @scan_destroy@ --- *
}
/* --- @scan_destroy@ --- *