From 08f652346f578741819a73f0c788afa8a0a08704 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 13 May 2007 13:14:13 +0200 Subject: Put language table in read-only memory. --- fc-lang/fc-lang.c | 2 +- src/fclang.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fc-lang/fc-lang.c b/fc-lang/fc-lang.c index 92a62ce..989a823 100644 --- a/fc-lang/fc-lang.c +++ b/fc-lang/fc-lang.c @@ -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); diff --git a/src/fclang.c b/src/fclang.c index de08622..8cc7b47 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; -- 1.5.1.3