/[pcre]/code/branches/pcre16/pcretest.c
ViewVC logotype

Diff of /code/branches/pcre16/pcretest.c

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

revision 545 by ph10, Wed Jun 16 10:51:15 2010 UTC revision 558 by ph10, Tue Oct 26 15:26:45 2010 UTC
# Line 516  static const unsigned char tables1[] = { Line 516  static const unsigned char tables1[] = {
516    
517    
518    
519    
520    #ifndef HAVE_STRERROR
521    /*************************************************
522    *     Provide strerror() for non-ANSI libraries  *
523    *************************************************/
524    
525    /* Some old-fashioned systems still around (e.g. SunOS4) don't have strerror()
526    in their libraries, but can provide the same facility by this simple
527    alternative function. */
528    
529    extern int   sys_nerr;
530    extern char *sys_errlist[];
531    
532    char *
533    strerror(int n)
534    {
535    if (n < 0 || n >= sys_nerr) return "unknown error number";
536    return sys_errlist[n];
537    }
538    #endif /* HAVE_STRERROR */
539    
540    
541    
542    
543  /*************************************************  /*************************************************
544  *        Read or extend an input line            *  *        Read or extend an input line            *
545  *************************************************/  *************************************************/
# Line 2313  while (!done) Line 2337  while (!done)
2337  #endif  #endif
2338            use_dfa = 1;            use_dfa = 1;
2339          continue;          continue;
2340    #endif
2341    
2342    #if !defined NODFA
2343          case 'F':          case 'F':
2344          options |= PCRE_DFA_SHORTEST;          options |= PCRE_DFA_SHORTEST;
2345          continue;          continue;

Legend:
Removed from v.545  
changed lines
  Added in v.558

  ViewVC Help
Powered by ViewVC 1.1.5