summaryrefslogtreecommitdiff
path: root/src/fclang.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-10-18 08:58:14 -0700
committerKeith Packard <keithp@koto.keithp.com>2007-10-18 08:58:14 -0700
commite85789a99770dbd1a4abe9da3eadb355c19f5216 (patch)
tree81eaed2fb45ec22624a639e677d9ffb5f2fcc4b0 /src/fclang.c
parent26437d4924b0f53f03915e5f3616992eb1fb72e7 (diff)
downloadfontconfig-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.c2
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;