Mark constant strings as constant

Fixes a few compiler warnings in fcxml.c and makes it clear that they
should not be freed.
This commit is contained in:
Behdad Esfahbod 2011-03-14 18:21:32 -03:00
parent c76ed777dd
commit 6c7915c105
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ by <parameter>atomic</parameter>.
@TYPE1@ FcAtomic * @ARG1@ atomic @TYPE1@ FcAtomic * @ARG1@ atomic
@PURPOSE@ return original file name @PURPOSE@ return original file name
@DESC@ @DESC@
Returns the file referenced by <parameter>atomic</parameter>. Returns the file refernced by <parameter>atomic</parameter>.
@@ @@
@RET@ FcBool @RET@ FcBool

View File

@ -239,13 +239,13 @@ typedef struct _FcExpr {
union { union {
int ival; int ival;
double dval; double dval;
FcChar8 *sval; const FcChar8 *sval;
FcMatrix *mval; FcMatrix *mval;
FcBool bval; FcBool bval;
FcCharSet *cval; FcCharSet *cval;
FcLangSet *lval; FcLangSet *lval;
FcObject object; FcObject object;
FcChar8 *constant; const FcChar8 *constant;
struct { struct {
struct _FcExpr *left, *right; struct _FcExpr *left, *right;
} tree; } tree;