segment: The body of DEFINE does not have to be on separate lines.
[pspp] / src / language / lexer / token.c
index f6bc6a1d22166a8f7dfc118f400bcdbd5f8ac88d..718f3d07f3d480a1580d59714ee8348e63a38e5e 100644 (file)
@@ -42,7 +42,7 @@ token_init (struct token *token)
 
 /* Frees the string that TOKEN contains. */
 void
-token_destroy (struct token *token)
+token_uninit (struct token *token)
 {
   if (token != NULL)
     ss_dealloc (&token->string);
@@ -143,6 +143,7 @@ token_to_string (const struct token *token)
 
     case T_ID:
     case T_MACRO_ID:
+    case T_MACRO_PUNCT:
       return ss_xstrdup (token->string);
 
     case T_STRING: