1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

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).
This commit is contained in:
Stephen Dolan
2013-05-05 22:37:46 +01:00
parent ab1a97472c
commit 47e015e946
5 changed files with 13 additions and 16 deletions

View File

@@ -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")