Changeset 252 for branches/1.1
- Timestamp:
- 10/16/2006 02:57:16 PM (2 years ago)
- Files:
-
- 1 modified
-
branches/1.1/processor/processor.m4 (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/processor/processor.m4
r122 r252 160 160 dst[0] = *ppzv; 161 161 /* *dst is updated */ 162 dnl fprintf(stderr, "*dst is set to %p \n", dst[0]);162 dnl fprintf(stderr, "*dst is set to %p, KIND is_shm %d\n", dst[0], xc_is_shm(dst[0])); 163 163 ') 164 164 IFSTORE(`assert(xc_is_shm(dst[0]));') … … 177 177 ', ` 178 178 zval_ptr pzv = dst[0]; 179 FIXPOINTER_EX(zval, pzv) 179 180 ') 180 181 if (zend_hash_add(&processor->zvalptrs, (char *)src[0], sizeof(src[0]), (void*)&pzv, sizeof(pzv), NULL) == SUCCESS) { … … 191 192 ') 192 193 STRUCT_P_EX(zval, dst[0], src[0], `[0]', `', ` ') 194 FIXPOINTER_EX(zval, dst[0]) 193 195 } while (0); 194 196 ') … … 216 218 DISPATCH(int, flags) 217 219 DISPATCH(uint, name_len) 220 pushdef(`emalloc', `malloc($1)') 221 pushdef(`ecalloc', `calloc($1, $2)') 218 222 PROC_ZSTRING_L(, name, name_len) 223 popdef(`ecalloc') 224 popdef(`emalloc') 219 225 DISPATCH(int, module_number) 220 226 ') … … 711 717 dnl }}} 712 718 DEF_STRUCT_P_FUNC(`xc_entry_data_var_t', , `dnl {{{ 713 IFSTORE(`714 if (processor->reference) {715 if (zend_hash_add(&processor->zvalptrs, (char *)&src->value, sizeof(&src->value), (void*)&src->value, sizeof(src->value), NULL) == SUCCESS) {716 dnl fprintf(stderr, "mark[%p] = %p\n", &src->value, &dst->value);717 }718 else {719 assert(0);720 }721 }722 ')723 719 STRUCT_P_EX(zval_ptr, dst->value, src->value, `value', `', `&') 724 720 DONE(value)

