projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lexer: Make lex_error_expecting() easier to use.
[pspp]
/
src
/
language
/
lexer
/
lexer.h
diff --git
a/src/language/lexer/lexer.h
b/src/language/lexer/lexer.h
index a0a410ed5a94b0f40d0c01270f1b47da53351fbb..91200ce6cd86488f7aa92e2fe4e5d22865e5c2bb 100644
(file)
--- a/
src/language/lexer/lexer.h
+++ b/
src/language/lexer/lexer.h
@@
-23,6
+23,7
@@
#include "data/identifier.h"
#include "data/variable.h"
#include "data/identifier.h"
#include "data/variable.h"
+#include "libpspp/cast.h"
#include "libpspp/compiler.h"
#include "libpspp/prompt.h"
#include "libpspp/compiler.h"
#include "libpspp/prompt.h"
@@
-161,6
+162,8
@@
void lex_next_error (struct lexer *, int n0, int n1, const char *, ...)
int lex_end_of_command (struct lexer *);
void lex_error_expecting (struct lexer *, const char *, ...) SENTINEL(0);
int lex_end_of_command (struct lexer *);
void lex_error_expecting (struct lexer *, const char *, ...) SENTINEL(0);
+#define lex_error_expecting(...) \
+ lex_error_expecting(__VA_ARGS__, NULL_SENTINEL)
void lex_sbc_only_once (const char *);
void lex_sbc_missing (const char *);
void lex_sbc_only_once (const char *);
void lex_sbc_missing (const char *);