Changeset 504 for trunk/processor
- Timestamp:
- 01/05/2008 03:42:14 AM (12 months ago)
- Location:
- trunk/processor
- Files:
-
- 4 modified
-
hashtable.m4 (modified) (1 diff)
-
main.m4 (modified) (1 diff)
-
processor.m4 (modified) (2 diffs)
-
string.m4 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/hashtable.m4
r393 r504 60 60 } 61 61 } 62 add_u_assoc_zval_ex(dst, BUCKET_KEY_TYPE(b), buf, keysize, zv);62 add_u_assoc_zval_ex(dst, BUCKET_KEY_TYPE(b), ZSTR(buf), keysize, zv); 63 63 } 64 64 ') -
trunk/processor/main.m4
r393 r504 111 111 IFSTORE(`$1 = (zend_class_entry *) xc_get_class_num(processor, $2);') 112 112 IFRESTORE(`$1 = xc_get_class(processor, (zend_ulong) $2);') 113 IFDASM(`add_assoc_ stringl_ex(dst, ZEND_STRS("$3"), $2->name, strlen($2->name), 1);')113 IFDASM(`add_assoc_unicodel_ex(dst, ZEND_STRS("$3"), ZSTR_U($2->name), $2->name_length, 1);') 114 114 } 115 115 else { -
trunk/processor/processor.m4
r503 r504 57 57 DEF_STRUCT_P_FUNC(`zend_brk_cont_element', , ` 58 58 #ifdef ZEND_ENGINE_2_2 59 #ifndef IS_UNICODE60 59 DISPATCH(int, start) 61 #endif62 60 #endif 63 61 DISPATCH(int, cont) … … 283 281 #endif 284 282 dnl isnt in php6 yet 285 #if defined(ZEND_ENGINE_2_2) && !defined(IS_UNICODE)283 #if defined(ZEND_ENGINE_2_2) 286 284 PROC_CLASS_ENTRY_P(ce) 287 285 #endif -
trunk/processor/string.m4
r393 r504 39 39 40 40 INIT_ZVAL(zv); 41 ZVAL_UNICODEL(&zv, (UChar *)($2), $3 - 1, 1);41 ZVAL_UNICODEL(&zv, ZSTR_U($2), $3 - 1, 1); 42 42 zend_make_printable_zval(&zv, &reszv, &usecopy); 43 43 fprintf(stderr, "string:%s:\t\"", "$1"); … … 64 64 FIXPOINTER_EX(`PTRTYPE', DSTPTR) 65 65 IFDASM(` 66 ifelse(STRTYPE,zstr_uchar, ` 67 add_assoc_unicodel_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1); 68 ', ` dnl else 69 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1);') 66 ifelse(STRTYPE,zstr_uchar, ` 67 add_assoc_unicodel_ex(dst, ZEND_STRS("$4"), ZSTR_U($2), $3-1, 1); 68 ', ` dnl else 69 ifelse(STRTYPE,zstr_char, ` 70 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), ZSTR_S($2), $3-1, 1); 71 ', ` 72 add_assoc_stringl_ex(dst, ZEND_STRS("$4"), $2, $3-1, 1); 70 73 ') 74 ') 75 ') 71 76 } 72 77 popdef(`DSTPTR')

