summaryrefslogtreecommitdiffstats
path: root/jv_print.c
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-05 22:37:46 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-05 22:59:53 +0100
commit47e015e9468ce109c0fb28562d2b768ba29d2de3 (patch)
treef83083835a0a12cf23731507f0b38a011271bb3d /jv_print.c
parentab1a97472c91a755c2138417db2fe977c263f536 (diff)
Make a few constant globals actually const.
This means the .data and .bss sections are empty, a good thing in a shared library (see #98).
Diffstat (limited to 'jv_print.c')
-rw-r--r--jv_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jv_print.c b/jv_print.c
index 388bf663..6396d7c8 100644
--- a/jv_print.c
+++ b/jv_print.c
@@ -12,10 +12,10 @@
// Colour table. See http://en.wikipedia.org/wiki/ANSI_escape_code#Colors
// for how to choose these.
-static jv_kind colour_kinds[] =
+static const jv_kind colour_kinds[] =
{JV_KIND_NULL, JV_KIND_FALSE, JV_KIND_TRUE, JV_KIND_NUMBER,
JV_KIND_STRING, JV_KIND_ARRAY, JV_KIND_OBJECT};
-static const char* colours[] =
+static const char* const colours[] =
{COL("30;1"), COL("0"), COL("0"), COL("0"),
COL("32"), COL("37"), COL("37")};
#define FIELD_COLOUR COL("34;1")