Changeset 877 for trunk/processor/head.m4
- Timestamp:
- 2012-04-01T05:39:31+02:00 (15 months ago)
- File:
-
- 1 edited
-
trunk/processor/head.m4 (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/head.m4
r873 r877 99 99 100 100 zend_bool readonly_protection; /* wheather it's present */ 101 IFA SSERT(xc_stack_t allocsizes;)101 IFAUTOCHECK(xc_stack_t allocsizes;) 102 102 }; 103 103 /* }}} */ 104 104 /* {{{ memsetptr */ 105 IFA SSERT(`dnl105 IFAUTOCHECK(`dnl 106 106 static void *memsetptr(void *mem, void *content, size_t n) 107 107 { … … 171 171 #undef C_RELAYLINE 172 172 #define C_RELAYLINE 173 IFA SSERT(`173 IFAUTOCHECK(` 174 174 #undef C_RELAYLINE 175 175 #define C_RELAYLINE , __LINE__ 176 176 ') 177 static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFA SSERT(`, int relayline')) {177 static inline void xc_calc_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFAUTOCHECK(`, int relayline')) { 178 178 pushdef(`__LINE__', `relayline') 179 179 int realsize = UNISW(size, (type == IS_UNICODE) ? UBYTES(size) : size); … … 187 187 ALLOC(, char, realsize) 188 188 } 189 IFA SSERT(`189 IFAUTOCHECK(` 190 190 else { 191 191 dnl fprintf(stderr, "dupstr %s\n", ZSTR_S(str)); … … 197 197 /* {{{ xc_store_string_n */ 198 198 REDEF(`KIND', `store') 199 static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFA SSERT(`, int relayline')) {199 static inline zstr xc_store_string_n(xc_processor_t *processor, zend_uchar type, const_zstr str, long size IFAUTOCHECK(`, int relayline')) { 200 200 pushdef(`__LINE__', `relayline') 201 201 int realsize = UNISW(size, (type == IS_UNICODE) ? UBYTES(size) : size); … … 341 341 /* }}} */ 342 342 /* {{{ field name checker */ 343 IFA SSERT(`dnl343 IFAUTOCHECK(`dnl 344 344 static int xc_check_names(const char *file, int line, const char *functionName, const char **assert_names, int assert_names_count, HashTable *done_names) 345 345 { … … 394 394 processor.cache = cache; 395 395 396 IFA SSERT(`xc_stack_init(&processor.allocsizes);')396 IFAUTOCHECK(`xc_stack_init(&processor.allocsizes);') 397 397 398 398 /* calc size */ { … … 420 420 ) 421 421 422 IFA SSERT(`xc_stack_reverse(&processor.allocsizes);')422 IFAUTOCHECK(`xc_stack_reverse(&processor.allocsizes);') 423 423 /* store {{{ */ 424 424 { 425 IFA SSERT(`char *oldp;')425 IFAUTOCHECK(`char *oldp;') 426 426 zend_hash_init(&processor.strings, 0, NULL, NULL, 0); 427 427 if (processor.reference) { … … 435 435 goto err_alloc; 436 436 } 437 IFA SSERT(`oldp = processor.p;')437 IFAUTOCHECK(`oldp = processor.p;') 438 438 assert(processor.p == (char *) ALIGN(processor.p)); 439 439 … … 443 443 444 444 xc_store_$1(&processor, dst, src TSRMLS_CC); 445 IFA SSERT(` {445 IFAUTOCHECK(` { 446 446 int real = processor.p - oldp; 447 447 int should = processor.size; … … 459 459 /* }}} */ 460 460 461 IFA SSERT(`xc_stack_destroy(&processor.allocsizes);')461 IFAUTOCHECK(`xc_stack_destroy(&processor.allocsizes);') 462 462 463 463 return dst;
Note: See TracChangeset
for help on using the changeset viewer.

