/[pcre]/code/branches/pcre16/pcre_compile.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_compile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 708 by ph10, Fri Sep 23 11:03:03 2011 UTC revision 716 by ph10, Tue Oct 4 16:38:05 2011 UTC
# Line 1761  for (;;) Line 1761  for (;;)
1761        break;        break;
1762    
1763        case OP_THEN_ARG:        case OP_THEN_ARG:
1764        code += code[1+LINK_SIZE];        code += code[1];
1765        break;        break;
1766        }        }
1767    
# Line 1880  for (;;) Line 1880  for (;;)
1880        break;        break;
1881    
1882        case OP_THEN_ARG:        case OP_THEN_ARG:
1883        code += code[1+LINK_SIZE];        code += code[1];
1884        break;        break;
1885        }        }
1886    
# Line 2217  for (code = first_significant_code(code Line 2217  for (code = first_significant_code(code
2217      break;      break;
2218    
2219      case OP_THEN_ARG:      case OP_THEN_ARG:
2220      code += code[1+LINK_SIZE];      code += code[1];
2221      break;      break;
2222    
2223      /* None of the remaining opcodes are required to match a character. */      /* None of the remaining opcodes are required to match a character. */
# Line 5060  for (;; ptr++) Line 5060  for (;; ptr++)
5060                goto FAILED;                goto FAILED;
5061                }                }
5062              *code = verbs[i].op;              *code = verbs[i].op;
5063              if (*code++ == OP_THEN)              if (*code++ == OP_THEN) cd->external_flags |= PCRE_HASTHEN;
               {  
               PUT(code, 0, code - bcptr->current_branch - 1);  
               code += LINK_SIZE;  
               cd->external_flags |= PCRE_HASTHEN;  
               }  
5064              }              }
5065    
5066            else            else
# Line 5076  for (;; ptr++) Line 5071  for (;; ptr++)
5071                goto FAILED;                goto FAILED;
5072                }                }
5073              *code = verbs[i].op_arg;              *code = verbs[i].op_arg;
5074              if (*code++ == OP_THEN_ARG)              if (*code++ == OP_THEN_ARG) cd->external_flags |= PCRE_HASTHEN;
               {  
               PUT(code, 0, code - bcptr->current_branch - 1);  
               code += LINK_SIZE;  
               }  
5075              *code++ = arglen;              *code++ = arglen;
5076              memcpy(code, arg, arglen);              memcpy(code, arg, arglen);
5077              code += arglen;              code += arglen;

Legend:
Removed from v.708  
changed lines
  Added in v.716

  ViewVC Help
Powered by ViewVC 1.1.5