diff options
author | Bruce Dawson <brucedawson@chromium.org> | 2017-08-28 21:27:03 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2017-08-28 21:27:03 +0200 |
commit | 8f57103793e1e1b1be478f1feb607d19d725d048 (patch) | |
tree | d4b793e33e25ec58c236097a260b0117f3af224e /xmlunicode.c | |
parent | 3daee3f159a1f962278e6f92572b7749b2b2babb (diff) | |
download | libxml2-8f57103793e1e1b1be478f1feb607d19d725d048.tar.gz |
Add const in five places to move 1 KiB to .rdata
xmlUnicodeBlocks is logically const but was not marked as such. This
fixes that, thus moving it to the read-only data segment.
Diffstat (limited to 'xmlunicode.c')
-rw-r--r-- | xmlunicode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlunicode.c b/xmlunicode.c index ce6e9a4f..6d0a96a0 100644 --- a/xmlunicode.c +++ b/xmlunicode.c @@ -29,14 +29,14 @@ typedef struct { } xmlUnicodeRange; typedef struct { - xmlUnicodeRange *table; + const xmlUnicodeRange *table; int numentries; } xmlUnicodeNameTable; static xmlIntFunc *xmlUnicodeLookup(xmlUnicodeNameTable *tptr, const char *tname); -static xmlUnicodeRange xmlUnicodeBlocks[] = { +static const xmlUnicodeRange xmlUnicodeBlocks[] = { {"AegeanNumbers", xmlUCSIsAegeanNumbers}, {"AlphabeticPresentationForms", xmlUCSIsAlphabeticPresentationForms}, {"Arabic", xmlUCSIsArabic}, @@ -945,7 +945,7 @@ static xmlUnicodeNameTable xmlUnicodeCatTbl = {xmlUnicodeCats, 36}; static xmlIntFunc *xmlUnicodeLookup(xmlUnicodeNameTable *tptr, const char *tname) { int low, high, mid, cmp; - xmlUnicodeRange *sptr; + const xmlUnicodeRange *sptr; if ((tptr == NULL) || (tname == NULL)) return(NULL); |