Changeset 569


Ignore:
Timestamp:
Aug 11, 2010, 10:27:43 AM (9 years ago)
Author:
lindanl
Message:

fixed empty tag matching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/src/tag_matcher.cpp

    r568 r569  
    1818  int inTagpos;
    1919  int rem_lgth;
    20   int new_depth;
     20 
    2121  tag_matcher(char * src);
    2222  ~tag_matcher(); 
     
    5151        int i;
    5252        int to_match;
     53        int new_depth;
    5354//      printf("%c\n",srcbuf[pos]);
    5455        if(srcbuf[pos]=='/' ){
     
    7576        else if(srcbuf[pos]=='>'){       
    7677          depth--;
     78          lgth = tag_lgth_stack[depth];
     79          depth -= ((lgth-1)/16);
    7780        }
    7881        else {
     
    139142      int remain_lgth = bitstream_scan(tagNameFollows,0);
    140143      int lgth = inTagpos + remain_lgth;
    141       new_depth = depth + (lgth+15)/16;
     144//       new_depth = depth + (lgth+15)/16;
    142145      char * tag_stack_ptr = (char *) &tag_stack[depth];
    143146      memcpy((void*)&tag_stack_ptr[inTagpos],(void*)srcbuf,remain_lgth);
    144       depth = new_depth;
     147      depth = depth + (lgth+15)/16;
    145148      tag_lgth_stack[depth-1] = lgth;
    146149    }
Note: See TracChangeset for help on using the changeset viewer.