projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format: Make fmt_check() easier to translate.
[pspp]
/
src
/
data
/
identifier.c
diff --git
a/src/data/identifier.c
b/src/data/identifier.c
index db20010464cab1e3f3a1f42cc1e7a4c012bf8c1b..07c7675bd5a3000cf3742c85505bf68b2174ebd3 100644
(file)
--- a/
src/data/identifier.c
+++ b/
src/data/identifier.c
@@
-46,7
+46,6
@@
token_type_to_name (enum token_type type)
#define TOKEN_TYPE(TYPE) case T_##TYPE: return #TYPE;
TOKEN_TYPES
#undef TOKEN_TYPE
#define TOKEN_TYPE(TYPE) case T_##TYPE: return #TYPE;
TOKEN_TYPES
#undef TOKEN_TYPE
- case TOKEN_N_TYPES:
default:
return "unknown token type";
}
default:
return "unknown token type";
}
@@
-65,6
+64,8
@@
token_type_to_string (enum token_type token)
case T_POS_NUM:
case T_NEG_NUM:
case T_STRING:
case T_POS_NUM:
case T_NEG_NUM:
case T_STRING:
+ case T_MACRO_ID:
+ case T_MACRO_PUNCT:
case T_STOP:
return NULL;
case T_STOP:
return NULL;
@@
-142,9
+143,6
@@
token_type_to_string (enum token_type token)
case T_EXP:
return "**";
case T_EXP:
return "**";
-
- case TOKEN_N_TYPES:
- NOT_REACHED ();
}
NOT_REACHED ();
}
NOT_REACHED ();