projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
identifier: Remove TOKEN_N_TYPES from enum token_type.
[pspp]
/
src
/
data
/
identifier.h
diff --git
a/src/data/identifier.h
b/src/data/identifier.h
index 1fc63b4808f44e7e07ba3a92696f340f338d6922..abb16d5645904b5b93e72097f05839dd9b00f09c 100644
(file)
--- a/
src/data/identifier.h
+++ b/
src/data/identifier.h
@@
-66,10
+66,13
@@
enum token_type
{
#define TOKEN_TYPE(TYPE) T_##TYPE,
TOKEN_TYPES
{
#define TOKEN_TYPE(TYPE) T_##TYPE,
TOKEN_TYPES
- TOKEN_N_TYPES
#undef TOKEN_TYPE
};
#undef TOKEN_TYPE
};
+#define TOKEN_TYPE(TYPE) + 1
+enum { TOKEN_N_TYPES = TOKEN_TYPES };
+#undef TOKEN_TYPE
+
const char *token_type_to_name (enum token_type);
const char *token_type_to_string (enum token_type);
const char *token_type_to_name (enum token_type);
const char *token_type_to_string (enum token_type);