/[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 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 838 by ph10, Thu Dec 29 18:27:07 2011 UTC
# Line 2331  while (argc > 1 && argv[op][0] == '-') Line 2331  while (argc > 1 && argv[op][0] == '-')
2331          yield = rc;          yield = rc;
2332          goto EXIT;          goto EXIT;
2333          }          }
2334        printf("Unknown option: %s\n", argv[op + 1]);        if (strcmp(argv[op + 1], "newline") == 0)
2335            {
2336            (void)PCRE_CONFIG(PCRE_CONFIG_NEWLINE, &rc);
2337            /* Note that these values are always the ASCII values, even
2338            in EBCDIC environments. CR is 13 and NL is 10. */
2339            printf("%s\n", (rc == 13)? "CR" :
2340              (rc == 10)? "LF" : (rc == (13<<8 | 10))? "CRLF" :
2341              (rc == -2)? "ANYCRLF" :
2342              (rc == -1)? "ANY" : "???");
2343            goto EXIT;
2344            }
2345          printf("Unknown -C option: %s\n", argv[op + 1]);
2346        goto EXIT;        goto EXIT;
2347        }        }
2348    

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

  ViewVC Help
Powered by ViewVC 1.1.5