summaryrefslogtreecommitdiff
path: root/processor/string-helper.m4
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-09 06:49:44 +0000
committerXuefer <xuefer@gmail.com>2014-11-09 06:49:44 +0000
commit977ff39373429681d4bf43a1d7b61b64cd30993a (patch)
tree5125063fbbc6a51eeb29683c78b99daec4470595 /processor/string-helper.m4
parenteefebd8773e8f29f5d00f6c03b0b10eb5661f34c (diff)
downloadxcache-977ff39373429681d4bf43a1d7b61b64cd30993a.tar.gz
xcache-977ff39373429681d4bf43a1d7b61b64cd30993a.zip
separate plain c code to .h files
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1555 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor/string-helper.m4')
-rw-r--r--processor/string-helper.m429
1 files changed, 0 insertions, 29 deletions
diff --git a/processor/string-helper.m4 b/processor/string-helper.m4
index d559ffb..9c19cbb 100644
--- a/processor/string-helper.m4
+++ b/processor/string-helper.m4
@@ -1,31 +1,3 @@
-#define MAX_DUP_STR_LEN 256
-
-define(`STRING_HELPER_T', `
-HashTable strings;
-')
-
-define(`STRING_HELPERS', `
-static inline size_t xc_zstrlen_char(const_zstr s) /* {{{ */
-{
- return strlen(ZSTR_S(s));
-}
-/* }}} */
-#ifdef IS_UNICODE
-static inline size_t xc_zstrlen_uchar(zstr s) /* {{{ */
-{
- return u_strlen(ZSTR_U(s));
-}
-/* }}} */
-static inline size_t xc_zstrlen(int type, const_zstr s) /* {{{ */
-{
- return type == IS_UNICODE ? xc_zstrlen_uchar(s) : xc_zstrlen_char(s);
-}
-/* }}} */
-#else
-/* {{{ xc_zstrlen */
-#define xc_zstrlen(dummy, s) xc_zstrlen_char(s)
-/* }}} */
-#endif
static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size RELAYLINE_DC TSRMLS_DC) { /* {{{ */
pushdef(`PROCESSOR_TYPE', `calc')
pushdef(`__LINE__', `relayline')
@@ -76,4 +48,3 @@ static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type,
popdef(`PROCESSOR_TYPE')
}
/* }}} */
-')