diff options
author | Keith Packard <keithp@koto.keithp.com> | 2007-10-18 08:58:14 -0700 |
---|---|---|
committer | Keith Packard <keithp@koto.keithp.com> | 2007-10-18 08:58:14 -0700 |
commit | e85789a99770dbd1a4abe9da3eadb355c19f5216 (patch) | |
tree | 81eaed2fb45ec22624a639e677d9ffb5f2fcc4b0 /src/fclang.c | |
parent | 26437d4924b0f53f03915e5f3616992eb1fb72e7 (diff) | |
download | fontconfig-e85789a99770dbd1a4abe9da3eadb355c19f5216.tar.gz |
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.
Diffstat (limited to 'src/fclang.c')
-rw-r--r-- | src/fclang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fclang.c b/src/fclang.c index de08622..13f0ca2 100644 --- a/src/fclang.c +++ b/src/fclang.c @@ -25,7 +25,7 @@ #include "fcint.h" typedef struct { - const FcChar8 *lang; + const FcChar8 lang[8]; const FcCharSet charset; } FcLangCharSet; |