- Timestamp:
- 2013-11-13T05:01:22Z (5 years ago)
- Location:
- trunk/processor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/hashtable.m4
r1472 r1474 48 48 dnl }}} 49 49 Bucket *srcBucket; 50 IF RELOCATE(`Bucket *next;')50 IFCOPY(`Bucket *first = NULL, *last = NULL;') 51 51 IFRELOCATE(`Bucket *dstBucket = NULL;') 52 IFCOPY(`Bucket *dstBucket = NULL, *first = NULL, *last = NULL;') 53 dnl only used for copy 54 IFCOPY(`uint n;') 52 IFRESTORE(`Bucket *dstBucket = NULL;') 55 53 IFRELOCATE(`uint n;') 54 IFRESTORE(`uint n;') 56 55 IFCALCCOPY(`size_t bucketSize;') 57 56 … … 148 147 for (n = 0; n < SRC(`nTableSize'); ++n) { 149 148 if (SRC(`arBuckets[n]')) { 150 next = PTR_FROM_VIRTUAL_EX(`Bucket', `DST(`arBuckets[n]')');149 Bucket *next = PTR_FROM_VIRTUAL_EX(`Bucket', `DST(`arBuckets[n]')'); 151 150 do { 152 151 dstBucket = next; -
trunk/processor/main.m4
r1473 r1474 242 242 define(`IFCOPY', `IFSTORE(`$1', `IFRESTORE(`$1', `$2')')') 243 243 define(`IFCALCCOPY', `IFCALC(`$1', `IFCOPY(`$1', `$2')')') 244 define(`IFRELOCATE ', `ifelse(PROCESSOR_TYPE, `relocate', `$1', `$2')')245 define(`IFRELOCATE', `IFSTORE(`$1', `IFRELOCATE (`$1', `$2')')')244 define(`IFRELOCATEONLY', `ifelse(PROCESSOR_TYPE, `relocate', `$1', `$2')') 245 define(`IFRELOCATE', `IFSTORE(`$1', `IFRELOCATEONLY(`$1', `$2')')') 246 246 define(`IFDPRINT', `ifelse(PROCESSOR_TYPE, `dprint', `$1', `$2')') 247 247 define(`IFDASM', `ifelse(PROCESSOR_TYPE, `dasm', `$1', `$2')') -
trunk/processor/struct.m4
r1472 r1474 15 15 IFSTORE( `xc_processor_t *processor, $1 *dst, const $1 * const src') 16 16 IFRESTORE(`xc_processor_t *processor, $1 *dst, const $1 * const src') 17 IFRELOCATE (`$1 *const dst, ptrdiff_t ptrdiff, ptrdiff_t relocatediff')17 IFRELOCATEONLY(`$1 *const dst, ptrdiff_t ptrdiff, ptrdiff_t relocatediff') 18 18 IFDASM(`xc_dasm_t *dasm, zval *dst, const $1 * const src') 19 19 TSRMLS_DC … … 148 148 IFSTORE( `processor, $6 $2, $6 $3') 149 149 IFRESTORE(`processor, $6 $2, $6 $3') 150 IFRELOCATE (`150 IFRELOCATEONLY(` 151 151 ifelse(`$6', `', `PTR_FROM_VIRTUAL_EX(`$1', `$3')', `$6 $3') 152 152 , ptrdiff
Note: See TracChangeset
for help on using the changeset viewer.