The R Project SVN R

Rev

Rev 57571 | Rev 66731 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57571 Rev 58359
Line 1904... Line 1904...
1904
  parse_ctx.stack = stack;
1904
  parse_ctx.stack = stack;
1905
  parse_ctx.re = regex;
1905
  parse_ctx.re = regex;
1906
  parse_ctx.len = n;
1906
  parse_ctx.len = n;
1907
  parse_ctx.cflags = cflags;
1907
  parse_ctx.cflags = cflags;
1908
  parse_ctx.max_backref = -1;
1908
  parse_ctx.max_backref = -1;
-
 
1909
  /* workaround for PR#14408: use 8-bit optimizations in 8-bit mode */
-
 
1910
  parse_ctx.cur_max = (cflags & REG_USEBYTES) ? 1 : TRE_MB_CUR_MAX;
1909
  DPRINT(("tre_compile: parsing '%.*" STRF "'\n", (int)n, regex));
1911
  DPRINT(("tre_compile: parsing '%.*" STRF "'\n", (int)n, regex));
1910
  errcode = tre_parse(&parse_ctx);
1912
  errcode = tre_parse(&parse_ctx);
1911
  if (errcode != REG_OK)
1913
  if (errcode != REG_OK)
1912
    ERROR_EXIT(errcode);
1914
    ERROR_EXIT(errcode);
1913
  preg->re_nsub = parse_ctx.submatch_id - 1;
1915
  preg->re_nsub = parse_ctx.submatch_id - 1;