improve macro error messages
[pspp] / src / language / lexer / macro.h
index 0b6fd0dac3f942bf244309152c698afd39710cb5..c10ce8e3cd2cdc4f40260698e41eed65e8c348e9 100644 (file)
@@ -38,6 +38,8 @@ void macro_token_uninit (struct macro_token *);
 
 void macro_token_to_representation (struct macro_token *, struct string *);
 
+bool is_macro_keyword (struct substring);
+
 struct macro_tokens
   {
     struct macro_token *mts;
@@ -53,7 +55,8 @@ void macro_tokens_add (struct macro_tokens *, const struct macro_token *);
 void macro_tokens_from_string (struct macro_tokens *, const struct substring,
                                enum segmenter_mode);
 
-void macro_tokens_to_representation (struct macro_tokens *, struct string *);
+void macro_tokens_to_representation (struct macro_tokens *, struct string *,
+                                     size_t *ofs, size_t *len);
 
 void macro_tokens_print (const struct macro_tokens *, FILE *);