]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcint.h
[fcstr,fcxml] Don't copy FcStrBuf contents when we would free it soon
[fontconfig.git] / src / fcint.h
index b667e5476b4c9dc62c53eef570758c49ab974d9a..ec6a01cad4083e3eeaff889a1429dc996fbc2cf3 100644 (file)
@@ -313,6 +313,7 @@ typedef struct _FcStrBuf {
     FcBool  failed;
     int            len;
     int            size;
+    FcChar8 buf_static[16 * sizeof (void *)];
 } FcStrBuf;
 
 struct _FcCache {
@@ -1017,6 +1018,9 @@ FcStrBufDestroy (FcStrBuf *buf);
 FcPrivate FcChar8 *
 FcStrBufDone (FcStrBuf *buf);
 
+FcPrivate FcChar8 *
+FcStrBufDoneStatic (FcStrBuf *buf);
+
 FcPrivate FcBool
 FcStrBufChar (FcStrBuf *buf, FcChar8 c);