From 76ed9a65b03b2477628c0bf72855cc4686642574 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 16 Jun 2015 14:15:32 -0700 Subject: Mark entity data structures as const. --- tools/make_entities_h.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/make_entities_h.py') diff --git a/tools/make_entities_h.py b/tools/make_entities_h.py index 90831a9..a993246 100644 --- a/tools/make_entities_h.py +++ b/tools/make_entities_h.py @@ -89,14 +89,14 @@ struct cmark_entity_node { #define CMARK_ENTITY_MAX_LENGTH 31 """) -print("static struct cmark_entity_node cmark_entities[] = {"); +print("static const struct cmark_entity_node cmark_entities[] = {"); for line in lines: print(line); print("};\n"); -print("static int cmark_entities_root = " + str(mid) + ";"); +print("static const int cmark_entities_root = " + str(mid) + ";"); print(""" #ifdef __cplusplus -- cgit v1.2.3