aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parse_constants.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-04-10 01:11:09 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-04-10 01:11:09 -0700
commit7ad6a90ea2e75388d42b5b223d9273119994037e (patch)
tree4fa090150986ec0998c585ca842a04efa7e756ea /src/parse_constants.h
parent574851f092358f5834afb0b529676924fcbd59c6 (diff)
Change parser_token_types from wcstring to const wchar_t *
Reduces allocations and startup time
Diffstat (limited to 'src/parse_constants.h')
-rw-r--r--src/parse_constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse_constants.h b/src/parse_constants.h
index afc88c6c..03dffd28 100644
--- a/src/parse_constants.h
+++ b/src/parse_constants.h
@@ -83,7 +83,7 @@ enum parse_token_type_t
LAST_PARSE_TOKEN_TYPE = parse_token_type_end
} __packed;
// Array of strings corresponding to the enums above instantiated in parse_tree.cpp.
-extern wcstring parser_token_types[];
+extern const wchar_t * const parser_token_types[];
/* These must be maintained in sorted order (except for none, which isn't a keyword). This enables us to do binary search. */
enum parse_keyword_t