Commit e85789a9 authored by Keith Packard's avatar Keith Packard

Place language name in constant array instead of pointer.

Constant char array of 8 bytes is the same size as a pointer plus a short
string, so this actually saves memory and eliminates a pile of relocations.
parent 26437d49
......@@ -377,7 +377,7 @@ main (int argc, char **argv)
if (j < 0)
j = i;
printf (" { (FcChar8 *) \"%s\", "
printf (" { \"%s\", "
" { FC_REF_CONSTANT, %d, OFF(%d,%d), NUM(%d,%d) } }, /* %d */\n",
langs[i],
sets[j]->num, i, off[j], i, off[j], i);
......
......@@ -25,7 +25,7 @@
#include "fcint.h"
typedef struct {
const FcChar8 *lang;
const FcChar8 lang[8];
const FcCharSet charset;
} FcLangCharSet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment