Changeset 837 for trunk/processor/processor.m4
- Timestamp:
- 03/25/2012 04:14:44 AM (14 months ago)
- Files:
-
- 1 modified
-
trunk/processor/processor.m4 (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/processor.m4
r833 r837 16 16 /* }}} */ 17 17 dnl ==================================================== 18 dnl {{{ zend_compiled_variable19 18 #ifdef IS_CV 20 DEF_STRUCT_P_FUNC(`zend_compiled_variable', , ` 19 DEF_STRUCT_P_FUNC(`zend_compiled_variable', , `dnl {{{ 21 20 DISPATCH(int, name_len) 22 21 PROC_ZSTRING_L(, name, name_len) 23 22 DISPATCH(ulong, hash_value) 24 23 ') 25 #endif 26 dnl }}} 27 dnl {{{ zend_uint 28 DEF_STRUCT_P_FUNC(`zend_uint', , ` 24 dnl }}} 25 #endif 26 DEF_STRUCT_P_FUNC(`zend_uint', , `dnl {{{ 29 27 IFCOPY(`dst[0] = src[0];') 30 28 IFDPRINT(` … … 35 33 ') 36 34 dnl }}} 37 dnl {{{ int38 35 #ifndef ZEND_ENGINE_2 39 DEF_STRUCT_P_FUNC(`int', , ` 36 DEF_STRUCT_P_FUNC(`int', , `dnl {{{ 40 37 IFCOPY(`*dst = *src;') 41 38 IFDPRINT(` … … 45 42 DONE_SIZE(sizeof(src[0])) 46 43 ') 47 #endif 48 dnl }}} 49 dnl {{{ zend_try_catch_element 50 #ifdef ZEND_ENGINE_2 51 DEF_STRUCT_P_FUNC(`zend_try_catch_element', , ` 44 dnl }}} 45 #endif 46 #ifdef ZEND_ENGINE_2 47 DEF_STRUCT_P_FUNC(`zend_try_catch_element', , `dnl {{{ 52 48 DISPATCH(zend_uint, try_op) 53 49 DISPATCH(zend_uint, catch_op) 54 50 ') 55 #endif /* ifdef ZEND_ENGINE_2 */ 56 dnl }}} 57 dnl {{{ zend_brk_cont_element 58 DEF_STRUCT_P_FUNC(`zend_brk_cont_element', , ` 51 dnl }}} 52 #endif 53 DEF_STRUCT_P_FUNC(`zend_brk_cont_element', , `dnl {{{ 59 54 #ifdef ZEND_ENGINE_2_2 60 55 DISPATCH(int, start) … … 227 222 ') 228 223 dnl }}} 229 dnl {{{ zend_arg_info 230 #ifdef ZEND_ENGINE_2 231 DEF_STRUCT_P_FUNC(`zend_arg_info', , ` 224 #ifdef ZEND_ENGINE_2 225 DEF_STRUCT_P_FUNC(`zend_arg_info', , `dnl {{{ 232 226 DISPATCH(zend_uint, name_len) 233 227 PROC_ZSTRING_L(, name, name_len) … … 246 240 #endif 247 241 ') 248 #endif 249 dnl }}} 242 dnl }}} 243 #endif 250 244 #ifdef HAVE_XCACHE_CONSTANT 251 245 DEF_STRUCT_P_FUNC(`zend_constant', , `dnl {{{ … … 281 275 ') 282 276 dnl }}} 283 dnl {{{ zend_property_info 284 #ifdef ZEND_ENGINE_2 285 DEF_STRUCT_P_FUNC(`zend_property_info', , ` 277 #ifdef ZEND_ENGINE_2 278 DEF_STRUCT_P_FUNC(`zend_property_info', , `dnl {{{ 286 279 DISPATCH(zend_uint, flags) 287 280 DISPATCH(int, name_length) … … 300 293 #endif 301 294 ') 302 #endif 303 dnl }}} 295 dnl }}} 296 #endif 297 #ifdef ZEND_ENGINE_2_4 298 DEF_STRUCT_P_FUNC(`zend_trait_method_reference', , `dnl {{{ 299 DISPATCH(unsigned int, mname_len) 300 PROC_STRING_L(method_name, mname_len) 301 COPYNULL(ce) 302 DISPATCH(unsigned int, cname_len) 303 PROC_STRING_L(class_name, cname_len) 304 ') 305 dnl }}} 306 DEF_STRUCT_P_FUNC(`zend_trait_alias', , `dnl {{{ 307 STRUCT_P(zend_trait_method_reference, trait_method) 308 DISPATCH(unsigned int, alias_len) 309 PROC_STRING_L(alias, alias_len) 310 DISPATCH(zend_uint, modifiers) 311 COPYNULL(function) 312 ') 313 dnl }}} 314 DEF_STRUCT_P_FUNC(`zend_trait_precedence', , `dnl {{{ 315 STRUCT_P(zend_trait_method_reference, trait_method) 316 COPYNULL(exclude_from_classes) 317 COPYNULL(function) 318 ') 319 dnl }}} 320 DEF_STRUCT_P_FUNC(`zend_trait_alias_ptr', , `dnl {{{ 321 IFDASM(` 322 pushdefFUNC_NAME(`zend_trait_alias') 323 FUNC_NAME (dst, src[0] TSRMLS_CC); 324 popdef(`FUNC_NAME') 325 ', ` 326 ALLOC(dst[0], zend_trait_alias) 327 STRUCT_P_EX(zend_trait_alias, dst[0], src[0], `[0]', `', ` ') 328 FIXPOINTER_EX(zend_trait_alias, dst[0]) 329 ') 330 DONE_SIZE(sizeof(zend_trait_alias)) 331 ') 332 dnl }}} 333 DEF_STRUCT_P_FUNC(`zend_trait_precedence_ptr', , `dnl {{{ 334 IFDASM(` 335 pushdefFUNC_NAME(`zend_trait_precedence') 336 FUNC_NAME (dst, src[0] TSRMLS_CC); 337 popdef(`FUNC_NAME') 338 ', ` 339 ALLOC(dst[0], zend_trait_precedence) 340 STRUCT_P_EX(zend_trait_precedence, dst[0], src[0], `[0]', `', ` ') 341 FIXPOINTER_EX(zend_trait_precedence, dst[0]) 342 ') 343 DONE_SIZE(sizeof(zend_trait_precedence)) 344 ') 345 dnl }}} 346 #endif 304 347 DEF_STRUCT_P_FUNC(`zend_class_entry', , `dnl {{{ 305 348 IFCALCCOPY(` … … 359 402 STRUCT(HashTable, constants_table, HashTable_zval_ptr) 360 403 404 #ifdef ZEND_ENGINE_2_2 361 405 dnl runtime binding: ADD_INTERFACE will deal with it 406 COPYNULL(`interfaces') 407 COPYNULL(`num_interfaces') 408 409 # ifdef ZEND_ENGINE_2_4 362 410 dnl runtime binding: ADD_TRAIT will deal with it 411 COPYNULL(traits) 412 COPYNULL(num_traits) 413 # endif 414 #else 363 415 IFRESTORE(` 364 416 if (src->num_interfaces) { … … 369 421 COPYNULL(`interfaces') 370 422 } 371 # ifdef ZEND_ENGINE_2_4 372 if (src->num_traits) { 373 CALLOC(dst->traits, zend_class_entry*, src->num_traits) 374 DONE(`traits') 375 DONE(`trait_aliases') 376 DONE(`trait_precedences') 377 } 378 else { 379 COPYNULL(`traits') 380 COPYNULL(`trait_aliases') 381 COPYNULL(`trait_precedences') 382 } 383 # endif 384 ') 385 IFDASM(` 386 if (src->num_interfaces) { 387 /* 388 int i; 389 zval *arr; 390 ALLOC_INIT_ZVAL(arr); 391 array_init(arr); 392 for (i = 0; i < src->num_interfaces; i ++) { 393 zval *zv; 394 ALLOC_INIT_ZVAL(zv); 395 ZVAL_STRING(src->num_interfaces); 396 } 397 add_assoc_zval_ex(dst, ZEND_STRS("interfaces"), arr); 398 */ 399 DONE(`interfaces') 400 } 401 else { 402 COPYNULL(`interfaces') 403 } 404 # ifdef ZEND_ENGINE_2_4 405 if (src->num_traits) { 406 DONE(`traits') 407 DONE(`trait_aliases') 408 DONE(`trait_precedences') 409 } 410 else { 411 COPYNULL(`traits') 412 COPYNULL(`trait_aliases') 413 COPYNULL(`trait_precedences') 414 } 415 # endif 416 ') 417 IFRESTORE(`', ` 418 IFDASM(`', ` 419 DONE(`interfaces') 420 # ifdef ZEND_ENGINE_2_4 421 DONE(`traits') 422 DONE(`trait_aliases') 423 DONE(`trait_precedences') 424 # endif 425 ') 423 ', ` 424 DONE(`interfaces') 426 425 ') 427 426 DISPATCH(zend_uint, num_interfaces) 428 # ifdef ZEND_ENGINE_2_4429 DISPATCH(zend_uint, num_traits)430 # endif 427 #endif 428 STRUCT_ARRAY(, zend_trait_alias_ptr, trait_aliases) 429 STRUCT_ARRAY(, zend_trait_precedence_ptr, trait_precedences) 431 430 432 431 # ifdef ZEND_ENGINE_2_4 … … 1139 1138 ') 1140 1139 dnl }}} 1141 dnl {{{ xc_entry_t 1142 DEF_STRUCT_P_FUNC(`xc_entry_t', , ` 1140 DEF_STRUCT_P_FUNC(`xc_entry_t', , `dnl {{{ 1143 1141 DISPATCH(xc_entry_type_t, type) 1144 1142 DISPATCH(size_t, size)

