Changeset 450 for branches/thune/thread_safe/parse.c
- Timestamp:
- 08/11/07 04:53:46 (16 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/parse.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/parse.c
r398 r450 308 308 ++rit; 309 309 310 ur_initType( cell, UT_SLICE ); 311 ur_sliceDT(cell) = UT_STRING; 312 ur_setSeries( cell, pe->input.n, pos ); 313 cell->slice.end = pe->input.end; 310 ur_initType( cell, UT_STRING ); 311 ur_setSlice( cell, pe->input.n, pos, pe->input.end ); 314 312 } 315 313 break; … … 321 319 ++rit; 322 320 323 if( ur_is(cell, UT_S LICE) && (cell->series.n == pe->input.n) )324 cell->s lice.end = pos;321 if( ur_is(cell, UT_STRING) && (cell->series.n == pe->input.n) ) 322 cell->series.end = pos; 325 323 } 326 324 break; … … 812 810 ++rit; 813 811 814 ur_initType( cell, UT_SLICE ); 815 ur_sliceDT(cell) = UT_BLOCK; 816 ur_setSeries( cell, pe->input.n, pos ); 817 cell->slice.end = pe->input.end; 812 ur_initType( cell, UT_BLOCK ); 813 ur_setSlice( cell, pe->input.n, pos, pe->input.end ); 818 814 } 819 815 break; … … 826 822 ++rit; 827 823 828 if( ur_is(cell, UT_ SLICE) && (cell->series.n == pe->input.n) )829 cell->s lice.end = pos;824 if( ur_is(cell, UT_BLOCK) && (cell->series.n == pe->input.n) ) 825 cell->series.end = pos; 830 826 } 831 827 break; … … 1065 1061 if( ur_is(rules, UT_BLOCK) ) 1066 1062 { 1067 if( ur_is(ser, UT_STRING) || 1068 (ur_is(ser, UT_SLICE) && (ur_sliceDT(ser) == UT_STRING)) ) 1063 if( ur_is(ser, UT_STRING) ) 1069 1064 { 1070 1065 StringParser pe; … … 1112 1107 return; 1113 1108 } 1114 else if( ur_is(ser, UT_BLOCK) || 1115 (ur_is(ser, UT_SLICE) && (ur_sliceDT(ser) == UT_BLOCK)) ) 1109 else if( ur_is(ser, UT_BLOCK) ) 1116 1110 { 1117 1111 BlockParser pe;
