summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-16 14:15:32 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-16 14:24:59 -0700
commit76ed9a65b03b2477628c0bf72855cc4686642574 (patch)
treecf000bce51e173288e71775f78a1a1ba47b8d388 /tools
parent9f1bb45d9b1a43daa229714d4eb83e981a187f92 (diff)
Mark entity data structures as const.
Diffstat (limited to 'tools')
-rw-r--r--tools/make_entities_h.py4
1 files changed, 2 insertions, 2 deletions
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