/[pcre]/code/trunk/pcre_exec.c
ViewVC logotype

Diff of /code/trunk/pcre_exec.c

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

revision 1248 by ph10, Wed Feb 13 17:36:38 2013 UTC revision 1251 by ph10, Wed Feb 20 17:42:03 2013 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2012 University of Cambridge             Copyright (c) 1997-2013 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 6286  const pcre_uint8 *start_bits = NULL; Line 6286  const pcre_uint8 *start_bits = NULL;
6286  PCRE_PUCHAR start_match = (PCRE_PUCHAR)subject + start_offset;  PCRE_PUCHAR start_match = (PCRE_PUCHAR)subject + start_offset;
6287  PCRE_PUCHAR end_subject;  PCRE_PUCHAR end_subject;
6288  PCRE_PUCHAR start_partial = NULL;  PCRE_PUCHAR start_partial = NULL;
6289    PCRE_PUCHAR match_partial;
6290  PCRE_PUCHAR req_char_ptr = start_match - 1;  PCRE_PUCHAR req_char_ptr = start_match - 1;
6291    
6292  const pcre_study_data *study;  const pcre_study_data *study;
# Line 6837  for(;;) Line 6838  for(;;)
6838    md->match_function_type = 0;    md->match_function_type = 0;
6839    md->end_offset_top = 0;    md->end_offset_top = 0;
6840    rc = match(start_match, md->start_code, start_match, 2, md, NULL, 0);    rc = match(start_match, md->start_code, start_match, 2, md, NULL, 0);
6841    if (md->hitend && start_partial == NULL) start_partial = md->start_used_ptr;    if (md->hitend && start_partial == NULL)
6842        {
6843        start_partial = md->start_used_ptr;
6844        match_partial = start_match;
6845        }
6846    
6847    switch(rc)    switch(rc)
6848      {      {
# Line 7045  if (start_partial != NULL) Line 7050  if (start_partial != NULL)
7050      {      {
7051      offsets[0] = (int)(start_partial - (PCRE_PUCHAR)subject);      offsets[0] = (int)(start_partial - (PCRE_PUCHAR)subject);
7052      offsets[1] = (int)(end_subject - (PCRE_PUCHAR)subject);      offsets[1] = (int)(end_subject - (PCRE_PUCHAR)subject);
7053        if (offsetcount > 2)
7054          offsets[2] = (int)(match_partial - (PCRE_PUCHAR)subject);
7055      }      }
7056    rc = PCRE_ERROR_PARTIAL;    rc = PCRE_ERROR_PARTIAL;
7057    }    }

Legend:
Removed from v.1248  
changed lines
  Added in v.1251

  ViewVC Help
Powered by ViewVC 1.1.5