summaryrefslogtreecommitdiffstats
path: root/stringbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'stringbuf.h')
-rwxr-xr-xstringbuf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/stringbuf.h b/stringbuf.h
index 59f6e2fc..4649758a 100755
--- a/stringbuf.h
+++ b/stringbuf.h
@@ -147,6 +147,14 @@ int rsCStrSzStrMatchRegex(rsCStrObj *pCS1, uchar *psz);
int rsCStrLen(rsCStrObj *pThis);
#endif
+#if STRINGBUF_TRIM_ALLOCSIZE != 1
+/* This is the normal case (see comment in rsCStrFinish!). In those cases, the function
+ * simply needs to do nothing, so that we can save us the function call.
+ * rgerhards, 2008-02-12
+ */
+#define rsCStrFinish(pThis) RS_RET_OK
+#endif
+
#define rsCStrGetBufBeg(x) ((x)->pBuf)
#endif /* single include */