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:
parent
c76ed777dd
commit
6c7915c105
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue