+2005-10-14 Ross Burton <ross@burtonini.com>
+ reviewed by: plam
+
+ * fc-glyphname/fc-glyphname.c:
+ * src/fclang.c:
+
+ Add consts to variables so as to move arrays into .rodata.
+
2005-10-14 Mike Fabian <mfabian@suse.de>
reviewed by: plam
{
int i;
- printf ("static FcGlyphName *%s[%d] = {\n", name, hash);
+ printf ("static const FcGlyphName *%s[%d] = {\n", name, hash);
for (i = 0; i < hash; i++)
if (table[i])
*/
for (i = 0; i < nraw; i++)
- printf ("static struct { FcChar32 ucs; FcChar8 name[%d]; }"
+ printf ("static const struct { const FcChar32 ucs; const FcChar8 name[%d]; }"
" glyph%d = { 0x%lx, \"%s\" };\n",
(int) strlen ((char *) raw[i]->name) + 1,
i, (unsigned long) raw[i]->ucs, raw[i]->name);