summaryrefslogtreecommitdiff
path: root/processor/type-helper.m4
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-11-08 19:18:37 +0000
committerXuefer <xuefer@gmail.com>2014-11-08 19:18:37 +0000
commiteefebd8773e8f29f5d00f6c03b0b10eb5661f34c (patch)
tree0e82daf35c03e5c58bc206645e79ed72fda07999 /processor/type-helper.m4
parenta8677af6b70df5a95d4a55c7085c2fc9415f60c0 (diff)
downloadxcache-eefebd8773e8f29f5d00f6c03b0b10eb5661f34c.tar.gz
xcache-eefebd8773e8f29f5d00f6c03b0b10eb5661f34c.zip
split head.m4 into multilpe helper file
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1554 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'processor/type-helper.m4')
-rw-r--r--processor/type-helper.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/processor/type-helper.m4 b/processor/type-helper.m4
new file mode 100644
index 0000000..98b1316
--- /dev/null
+++ b/processor/type-helper.m4
@@ -0,0 +1,42 @@
+define(`SIZEOF_zend_uint', `sizeof(zend_uint)')
+define(`COUNTOF_zend_uint', `1')
+define(`SIZEOF_int', `sizeof(int)')
+define(`COUNTOF_int', `1')
+define(`SIZEOF_zend_function', `sizeof(zend_function)')
+define(`COUNTOF_zend_function', `1')
+define(`SIZEOF_zval_ptr', `sizeof(zval_ptr)')
+define(`COUNTOF_zval_ptr', `1')
+define(`SIZEOF_zval_ptr_nullable', `sizeof(zval_ptr_nullable)')
+define(`COUNTOF_zval_ptr_nullable', `1')
+define(`SIZEOF_zend_trait_alias_ptr', `sizeof(zend_trait_alias)')
+define(`COUNTOF_zend_trait_alias_ptr', `1')
+define(`SIZEOF_zend_trait_precedence_ptr', `sizeof(zend_trait_precedence)')
+define(`COUNTOF_zend_trait_precedence_ptr', `1')
+define(`SIZEOF_xc_entry_name_t', `sizeof(xc_entry_name_t)')
+define(`COUNTOF_xc_entry_name_t', `1')
+define(`SIZEOF_xc_ztstring', `sizeof(xc_ztstring)')
+define(`COUNTOF_xc_ztstring', `1')
+
+typedef zval *zval_ptr;
+typedef zval *zval_ptr_nullable;
+typedef char *xc_ztstring;
+#ifdef ZEND_ENGINE_2_4
+typedef zend_trait_alias *zend_trait_alias_ptr;
+typedef zend_trait_precedence *zend_trait_precedence_ptr;
+#endif
+#ifdef ZEND_ENGINE_2_3
+typedef int last_brk_cont_t;
+#else
+typedef zend_uint last_brk_cont_t;
+#endif
+
+typedef zend_uchar xc_zval_type_t;
+typedef int xc_op_type;
+typedef zend_uchar xc_opcode;
+#ifdef IS_UNICODE
+typedef UChar zstr_uchar;
+#endif
+typedef char zstr_char;
+
+EXPORT(`typedef struct _xc_dasm_t { const zend_op_array *active_op_array_src; } xc_dasm_t;')
+