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

Diff of /code/trunk/pcre_printint.c

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

revision 852 by zherczeg, Thu Jan 5 19:18:12 2012 UTC revision 905 by zherczeg, Mon Jan 23 19:26:03 2012 UTC
# Line 55  asked to print out a compiled regex for Line 55  asked to print out a compiled regex for
55  #include "config.h"  #include "config.h"
56  #endif  #endif
57    
58    /* For pcretest program. */
59    #define PRIV(name) name
60    
61  /* We have to include pcre_internal.h because we need the internal info for  /* We have to include pcre_internal.h because we need the internal info for
62  displaying the results of pcre_study() and we also need to know about the  displaying the results of pcre_study() and we also need to know about the
63  internal macros, structures, and other internal data values; pcretest has  internal macros, structures, and other internal data values; pcretest has
# Line 100  static const char *OP_names[] = { OP_NAM Line 103  static const char *OP_names[] = { OP_NAM
103  but its size is needed for a check that ensures it is the correct size for the  but its size is needed for a check that ensures it is the correct size for the
104  number of opcodes (thus catching update omissions). */  number of opcodes (thus catching update omissions). */
105    
106  static const pcre_uint8 OP_lengths[] = { OP_LENGTHS };  static const pcre_uint8 OP_lengths_size[] = { OP_LENGTHS };
107    
108    
109    
# Line 298  for(;;) Line 301  for(;;)
301        case OP_TABLE_LENGTH:        case OP_TABLE_LENGTH:
302        case OP_TABLE_LENGTH +        case OP_TABLE_LENGTH +
303          ((sizeof(OP_names)/sizeof(const char *) == OP_TABLE_LENGTH) &&          ((sizeof(OP_names)/sizeof(const char *) == OP_TABLE_LENGTH) &&
304          (sizeof(OP_lengths) == OP_TABLE_LENGTH)):          (sizeof(OP_lengths_size) == OP_TABLE_LENGTH)):
305        break;        break;
306  /* ========================================================================== */  /* ========================================================================== */
307    

Legend:
Removed from v.852  
changed lines
  Added in v.905

  ViewVC Help
Powered by ViewVC 1.1.5