diff options
author | David Phillips <david@sighup.nz> | 2018-08-01 21:08:14 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-08-01 21:08:14 +1200 |
commit | eff2535b82ff36dda815ef57c385d7767692c3a5 (patch) | |
tree | e9b3b7e60db3149ea5665d8220eb5049924dfefe | |
parent | dd1d26f7332f60439142ef384a2bb217d42240a8 (diff) | |
download | hence-eff2535b82ff36dda815ef57c385d7767692c3a5.tar.xz |
Remove superfluous indirection
-rw-r--r-- | parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -111,7 +111,6 @@ parse_expr(void) { int parse(const char *fname, FILE *f, struct token *t) { - char *token_desc = "(internal error)"; fd = f; filename = fname; cursor = t; @@ -146,8 +145,7 @@ parse(const char *fname, FILE *f, struct token *t) { parse_expr(); break; default: - token_desc = get_token_description(cursor->type); - emit("Error: Unexpected %s\n", token_desc); + emit("Error: Unexpected %s\n", get_token_description(cursor->type)); return 1; } } |