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

Diff of /code/trunk/pcre_maketables.c

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

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 1055 by chpe, Tue Oct 16 15:53:30 2012 UTC
# Line 66  Arguments:   none Line 66  Arguments:   none
66  Returns:     pointer to the contiguous block of data  Returns:     pointer to the contiguous block of data
67  */  */
68    
69  #ifdef COMPILE_PCRE8  #if defined COMPILE_PCRE8
70  const unsigned char *  const unsigned char *
71  pcre_maketables(void)  pcre_maketables(void)
72  #else  #elif defined COMPILE_PCRE16
73  const unsigned char *  const unsigned char *
74  pcre16_maketables(void)  pcre16_maketables(void)
75    #elif defined COMPILE_PCRE32
76    const unsigned char *
77    pcre32_maketables(void)
78  #endif  #endif
79  {  {
80  unsigned char *yield, *p;  unsigned char *yield, *p;
# Line 127  within regexes. */ Line 130  within regexes. */
130  for (i = 0; i < 256; i++)  for (i = 0; i < 256; i++)
131    {    {
132    int x = 0;    int x = 0;
133    if (i != 0x0b && isspace(i)) x += ctype_space;    if (i != CHAR_VT && isspace(i)) x += ctype_space;
134    if (isalpha(i)) x += ctype_letter;    if (isalpha(i)) x += ctype_letter;
135    if (isdigit(i)) x += ctype_digit;    if (isdigit(i)) x += ctype_digit;
136    if (isxdigit(i)) x += ctype_xdigit;    if (isxdigit(i)) x += ctype_xdigit;

Legend:
Removed from v.836  
changed lines
  Added in v.1055

  ViewVC Help
Powered by ViewVC 1.1.5