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

Diff of /code/trunk/pcretest.c

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

revision 1211 by ph10, Wed Nov 7 17:02:03 2012 UTC revision 1221 by ph10, Sun Nov 11 20:27:03 2012 UTC
# Line 36  POSSIBILITY OF SUCH DAMAGE. Line 36  POSSIBILITY OF SUCH DAMAGE.
36  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
37  */  */
38    
39  /* This program now supports the testing of all of the 8-bit, 16-bit, and  /* This program now supports the testing of all of the 8-bit, 16-bit, and
40  32-bit PCRE libraries in a single program. This is different from the modules  32-bit PCRE libraries in a single program. This is different from the modules
41  such as pcre_compile.c in the library itself, which are compiled separately for  such as pcre_compile.c in the library itself, which are compiled separately for
42  each mode. If two modes are enabled, for example, pcre_compile.c is compiled  each mode. If two modes are enabled, for example, pcre_compile.c is compiled
# Line 288  argument, the casting might be incorrect Line 288  argument, the casting might be incorrect
288    
289  #define PCRE_JIT_STACK_FREE8(stack) \  #define PCRE_JIT_STACK_FREE8(stack) \
290    pcre_jit_stack_free(stack)    pcre_jit_stack_free(stack)
291    
292  #define pcre8_maketables pcre_maketables  #define pcre8_maketables pcre_maketables
293    
294  #endif /* SUPPORT_PCRE8 */  #endif /* SUPPORT_PCRE8 */
295    
# Line 1131  static const char *errtexts[] = { Line 1131  static const char *errtexts[] = {
1131    "pattern compiled with other endianness",    "pattern compiled with other endianness",
1132    "invalid data in workspace for DFA restart",    "invalid data in workspace for DFA restart",
1133    "bad JIT option",    "bad JIT option",
1134    "bad length"    "bad length"
1135  };  };
1136    
1137    
# Line 4721  while (!done) Line 4721  while (!done)
4721          continue;          continue;
4722          }          }
4723    
4724        /* We now have a character value in c that may be greater than 255.        /* We now have a character value in c that may be greater than 255.
4725        In 8-bit mode we convert to UTF-8 if we are in UTF mode. Values greater        In 8-bit mode we convert to UTF-8 if we are in UTF mode. Values greater
4726        than 127 in UTF mode must have come from \x{...} or octal constructs        than 127 in UTF mode must have come from \x{...} or octal constructs
4727        because values from \x.. get this far only in non-UTF mode. */        because values from \x.. get this far only in non-UTF mode. */
# Line 4736  while (!done) Line 4736  while (!done)
4736              {              {
4737              fprintf(outfile, "** Character \\x{%x} is greater than 0x7fffffff "              fprintf(outfile, "** Character \\x{%x} is greater than 0x7fffffff "
4738                "and so cannot be converted to UTF-8\n", c);                "and so cannot be converted to UTF-8\n", c);
4739              goto NEXT_DATA;              goto NEXT_DATA;
4740              }              }
4741            q8 += ord2utf8(c, q8);            q8 += ord2utf8(c, q8);
4742            }            }
4743          else          else

Legend:
Removed from v.1211  
changed lines
  Added in v.1221

  ViewVC Help
Powered by ViewVC 1.1.5