token: Update functional interface and add token_copy(), token_equal().
[pspp] / src / language / lexer / scan.c
index 0acff46cdd119925f98e5845f67e8bfb975eae94..141e1e0f1522de638c7ed2bae5de6e78341ba146 100644 (file)
@@ -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