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 committed 2013-05-05 22:59:53 +01:00
1 parent ab1a97472c
commit 47e015e946
5 files changed
+13 -16

No files matched your search

+2 -2
View File
@@ -283,7 +283,7 @@ static chclass classify(char c) {
}
static presult OK = "output produced";
static const presult OK = "output produced";
static int check_done(struct jv_parser* p, jv* out) {
if (p->stackpos == 0 && jv_is_valid(p->next)) {
@@ -341,7 +341,7 @@ static pfunc scan(struct jv_parser* p, char ch, jv* out) {
return answer;
}
static unsigned char UTF8_BOM[] = {0xEF,0xBB,0xBF};
static const unsigned char UTF8_BOM[] = {0xEF,0xBB,0xBF};
void jv_parser_set_buf(struct jv_parser* p, const char* buf, int length, int is_partial) {
assert((p->curr_buf == 0 || p->curr_buf_pos == p->curr_buf_length)