diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-03-23 19:46:16 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-03-23 19:46:16 -0400 |
commit | 6ff7459d154210a50f2e98ca6654396b12089981 (patch) | |
tree | e553e598595d0fad96636ddadb13d89b4df3af55 /dimension/grammar.epilogue | |
parent | 6ae6b2739dde7097effe42417e07f532c4bfda84 (diff) | |
download | dimension-6ff7459d154210a50f2e98ca6654396b12089981.tar.xz |
Standardise diagnostics a bit.
Diffstat (limited to 'dimension/grammar.epilogue')
-rw-r--r-- | dimension/grammar.epilogue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dimension/grammar.epilogue b/dimension/grammar.epilogue index a61aff5..fddf088 100644 --- a/dimension/grammar.epilogue +++ b/dimension/grammar.epilogue @@ -87,14 +87,14 @@ dmnsn_token_string(dmnsn_token_type token_type) unsigned int i = YYTRANSLATE(token_type); if (i > YYNTOKENS) { - fprintf(stderr, "Warning: unrecognised token %d.\n", (int)token_type); + fprintf(stderr, "WARNING: unrecognised token %d.\n", (int)token_type); return "unrecognized-token"; } /* Trim the quotation marks */ if (strlen(yytname[i]) - 1 >= TOKEN_SIZE) { - fprintf(stderr, "Warning: name of token %d too long.\n", (int)token_type); + fprintf(stderr, "WARNING: name of token %d too long.\n", (int)token_type); return "unrepresentable-token"; } @@ -243,7 +243,7 @@ dmnsn_astnode_string(dmnsn_astnode_type astnode_type) dmnsn_astnode_map(DMNSN_AST_MACRO, "macro"); default: - fprintf(stderr, "Warning: unrecognised astnode type %d.\n", + fprintf(stderr, "WARNING: unrecognised astnode type %d.\n", (int)astnode_type); return "unrecognized-astnode"; } |