Changeset 1151 for trunk/xcache/xc_compatibility.h
- Timestamp:
- 10/10/2012 02:15:34 PM (7 months ago)
- Files:
-
- 1 modified
-
trunk/xcache/xc_compatibility.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/xcache/xc_compatibility.h
r1044 r1151 38 38 39 39 #ifdef do_alloca_with_limit 40 # define my_do_alloca(size, use_heap) do_alloca_with_limit(size, use_heap)41 # define my_free_alloca(size, use_heap) free_alloca_with_limit(size, use_heap)40 # define xc_do_alloca(size, use_heap) do_alloca_with_limit(size, use_heap) 41 # define xc_free_alloca(size, use_heap) free_alloca_with_limit(size, use_heap) 42 42 #elif defined(ALLOCA_FLAG) 43 # define my_do_alloca(size, use_heap) do_alloca(size, use_heap)44 # define my_free_alloca(size, use_heap) free_alloca(size, use_heap)45 #else 46 # define my_do_alloca(size, use_heap) do_alloca(size)47 # define my_free_alloca(size, use_heap) free_alloca(size)43 # define xc_do_alloca(size, use_heap) do_alloca(size, use_heap) 44 # define xc_free_alloca(size, use_heap) free_alloca(size, use_heap) 45 #else 46 # define xc_do_alloca(size, use_heap) do_alloca(size) 47 # define xc_free_alloca(size, use_heap) free_alloca(size) 48 48 # define ALLOCA_FLAG(x) 49 49 #endif … … 68 68 /* {{{ dirty fix for PHP 6 */ 69 69 #ifdef add_assoc_long_ex 70 static inline void my_add_assoc_long_ex(zval *arg, char *key, uint key_len, long value)70 static inline void xc_add_assoc_long_ex(zval *arg, char *key, uint key_len, long value) 71 71 { 72 72 add_assoc_long_ex(arg, key, key_len, value); 73 73 } 74 74 # undef add_assoc_long_ex 75 # define add_assoc_long_ex my_add_assoc_long_ex75 # define add_assoc_long_ex xc_add_assoc_long_ex 76 76 #endif 77 77 #ifdef add_assoc_bool_ex 78 static inline void my_add_assoc_bool_ex(zval *arg, char *key, uint key_len, zend_bool value)78 static inline void xc_add_assoc_bool_ex(zval *arg, char *key, uint key_len, zend_bool value) 79 79 { 80 80 add_assoc_bool_ex(arg, key, key_len, value); 81 81 } 82 82 # undef add_assoc_bool_ex 83 # define add_assoc_bool_ex my_add_assoc_bool_ex83 # define add_assoc_bool_ex xc_add_assoc_bool_ex 84 84 #endif 85 85 #ifdef add_assoc_null_ex 86 static inline void my_add_assoc_null_ex(zval *arg, char *key, uint key_len)86 static inline void xc_add_assoc_null_ex(zval *arg, char *key, uint key_len) 87 87 { 88 88 add_assoc_null_ex(arg, key, key_len); 89 89 } 90 90 # undef add_assoc_null_ex 91 # define add_assoc_null_ex my_add_assoc_null_ex91 # define add_assoc_null_ex xc_add_assoc_null_ex 92 92 #endif 93 93 /* }}} */

