projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
token: Update functional interface and add token_copy(), token_equal().
[pspp]
/
src
/
language
/
lexer
/
scan.c
diff --git
a/src/language/lexer/scan.c
b/src/language/lexer/scan.c
index 0acff46cdd119925f98e5845f67e8bfb975eae94..141e1e0f1522de638c7ed2bae5de6e78341ba146 100644
(file)
--- a/
src/language/lexer/scan.c
+++ b/
src/language/lexer/scan.c
@@
-594,7
+594,7
@@
void
scanner_init (struct scanner *scanner, struct token *token)
{
scanner->state = S_START;
-
token_init (token)
;
+
*token = (struct token) { .type = T_STOP }
;
}
/* Adds the segment with type TYPE and UTF-8 text S to SCANNER. TOKEN must be