Changeset 844
- Timestamp:
- 2012-03-25T09:18:30+02:00 (15 months ago)
- Location:
- trunk/processor
- Files:
-
- 6 edited
-
hashtable.m4 (modified) (1 diff)
-
head.m4 (modified) (3 diffs)
-
main.m4 (modified) (3 diffs)
-
process.m4 (modified) (1 diff)
-
processor.m4 (modified) (1 diff)
-
string.m4 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/hashtable.m4
r843 r844 109 109 #ifdef ZEND_ENGINE_2_4 110 110 memcpy(pnew, b, BUCKET_HEAD_SIZE(Bucket)); 111 memcpy((char *) (pnew + 1), b->arKey, BUCKET_KEY_SIZE(b)); 111 112 pnew->arKey = (const char *) (pnew + 1); 112 memcpy(pnew->arKey, b->arKey, BUCKET_KEY_SIZE(b));113 113 #else 114 114 memcpy(pnew, b, bucketsize); -
trunk/processor/head.m4
r843 r844 111 111 { 112 112 void **p = (void **) mem; 113 void **end = ( char *) mem + n;113 void **end = (void **) ((char *) mem + n); 114 114 while (p < end - sizeof(content)) { 115 115 *p = content; … … 148 148 #endif 149 149 /* {{{ xc_zstrlen_char */ 150 static inline int xc_zstrlen_char( zstr s)150 static inline int xc_zstrlen_char(const_zstr s) 151 151 { 152 152 return strlen(ZSTR_S(s)); … … 161 161 /* }}} */ 162 162 /* {{{ xc_zstrlen */ 163 static inline int xc_zstrlen(int type, zstr s)163 static inline int xc_zstrlen(int type, const_zstr s) 164 164 { 165 165 return type == IS_UNICODE ? xc_zstrlen_uchar(s) : xc_zstrlen_char(s); -
trunk/processor/main.m4
r843 r844 58 58 $1 = (FORCETYPE *) (processor->p = (char *) ALIGN(processor->p)); 59 59 ifelse(`$4', `', ` 60 IFASSERT(`memsetptr($1, (void *) __LINE__, SIZE);')60 IFASSERT(`memsetptr($1, (void *) (unsigned long) __LINE__, SIZE);') 61 61 ', ` 62 62 memset($1, 0, SIZE); … … 159 159 define(`SETNULL', `SETNULL_EX(`dst->$1')DONE(`$1')') 160 160 dnl }}} 161 dnl {{{ SETZERO_EX 162 define(`SETZERO_EX', `IFCOPY(`$1 = 0;')') 163 define(`SETZERO', `SETZERO_EX(`dst->$1')DONE(`$1')') 164 dnl }}} 161 165 dnl {{{ COPYNULL_EX(1:dst, 2:elm-name) 162 166 define(`COPYNULL_EX', ` … … 169 173 define(`COPYNULL', ` 170 174 COPYNULL_EX(`dst->$1', `$1')DONE(`$1') 175 ') 176 dnl }}} 177 dnl {{{ COPYZERO_EX(1:dst, 2:elm-name) 178 define(`COPYZERO_EX', ` 179 IFDASM(`add_assoc_long_ex(dst, ZEND_STRS("$2"), 0);') 180 IFNOTMEMCPY(`IFCOPY(`$1 = 0;')') 181 assert(patsubst($1, dst, src) == 0); 182 ') 183 dnl }}} 184 dnl {{{ COPYZERO(1:elm) 185 define(`COPYZERO', ` 186 COPYZERO_EX(`dst->$1', `$1')DONE(`$1') 171 187 ') 172 188 dnl }}} -
trunk/processor/process.m4
r843 r844 56 56 , `$1', `zend_ulong', `PROCESS_SCALAR(`$2', `lu', `$1')' 57 57 , `$1', `ulong', `PROCESS_SCALAR(`$2', `lu', `$1')' 58 , `$1', `size_t', `PROCESS_SCALAR(`$2', ` u', `$1')'58 , `$1', `size_t', `PROCESS_SCALAR(`$2', `lu', `$1')' 59 59 , `$1', `long', `PROCESS_SCALAR(`$2', `ld', `$1')' 60 60 , `$1', `time_t', `PROCESS_SCALAR(`$2', `ld', `$1')' -
trunk/processor/processor.m4
r843 r844 405 405 dnl runtime binding: ADD_INTERFACE will deal with it 406 406 COPYNULL(`interfaces') 407 COPY NULL(`num_interfaces')407 COPYZERO(`num_interfaces') 408 408 409 409 # ifdef ZEND_ENGINE_2_4 410 410 dnl runtime binding: ADD_TRAIT will deal with it 411 411 COPYNULL(traits) 412 COPY NULL(num_traits)412 COPYZERO(num_traits) 413 413 # endif 414 414 #else -
trunk/processor/string.m4
r843 r844 46 46 fprintf(stderr, "string:%s:\t\"", "$1"); 47 47 xc_dprint_str_len(Z_STRVAL(reszv), Z_STRLEN(reszv)); 48 fprintf(stderr, "\" len=% d\n",$3 - 1);48 fprintf(stderr, "\" len=%lu\n", (unsigned long) $3 - 1); 49 49 if (usecopy) { 50 50 zval_dtor(&reszv); … … 56 56 fprintf(stderr, "string:%s:\t\"", "$1"); 57 57 xc_dprint_str_len(SRCPTR, $3 - 1); 58 fprintf(stderr, "\" len=% d\n",$3 - 1);58 fprintf(stderr, "\" len=%lu\n", (unsigned long) $3 - 1); 59 59 ') 60 60 ')
Note: See TracChangeset
for help on using the changeset viewer.

