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

Diff of /code/trunk/pcre_jit_test.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 860 by zherczeg, Mon Jan 9 20:12:58 2012 UTC
# Line 680  static const unsigned char *tables(int m Line 680  static const unsigned char *tables(int m
680          char null_str[1] = { 0 };          char null_str[1] = { 0 };
681  #else  #else
682          pcre16 *regex;          pcre16 *regex;
683          PCRE_SCHAR16 null_str[1] = { 0 };          PCRE_UCHAR16 null_str[1] = { 0 };
684  #endif  #endif
685    
686          if (mode) {          if (mode) {
# Line 771  static void setstack16(pcre16_extra *ext Line 771  static void setstack16(pcre16_extra *ext
771    
772  #ifdef SUPPORT_PCRE16  #ifdef SUPPORT_PCRE16
773    
774  static int convert_utf8_to_utf16(const char *input, PCRE_SCHAR16 *output, int *offsetmap, int max_length)  static int convert_utf8_to_utf16(const char *input, PCRE_UCHAR16 *output, int *offsetmap, int max_length)
775  {  {
776          unsigned char *iptr = (unsigned char*)input;          unsigned char *iptr = (unsigned char*)input;
777          unsigned short *optr = (unsigned short *)output;          unsigned short *optr = (unsigned short *)output;
# Line 819  static int convert_utf8_to_utf16(const c Line 819  static int convert_utf8_to_utf16(const c
819          return (int)(optr - (unsigned short *)output);          return (int)(optr - (unsigned short *)output);
820  }  }
821    
822  static int copy_char8_to_char16(const char *input, PCRE_SCHAR16 *output, int max_length)  static int copy_char8_to_char16(const char *input, PCRE_UCHAR16 *output, int max_length)
823  {  {
824          unsigned char *iptr = (unsigned char*)input;          unsigned char *iptr = (unsigned char*)input;
825          unsigned short *optr = (unsigned short *)output;          unsigned short *optr = (unsigned short *)output;
# Line 836  static int copy_char8_to_char16(const ch Line 836  static int copy_char8_to_char16(const ch
836  }  }
837    
838  #define REGTEST_MAX_LENGTH 4096  #define REGTEST_MAX_LENGTH 4096
839  static PCRE_SCHAR16 regtest_buf[REGTEST_MAX_LENGTH];  static PCRE_UCHAR16 regtest_buf[REGTEST_MAX_LENGTH];
840  static int regtest_offsetmap[REGTEST_MAX_LENGTH];  static int regtest_offsetmap[REGTEST_MAX_LENGTH];
841    
842  #endif /* SUPPORT_PCRE16 */  #endif /* SUPPORT_PCRE16 */

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

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12