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
@PURPOSE@ return original file name
@DESC@
Returns the file referenced by <parameter>atomic</parameter>.
Returns the file refernced by <parameter>atomic</parameter>.
@@
@RET@ FcBool

View File

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