/[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 810 by ph10, Mon Dec 19 13:34:10 2011 UTC revision 830 by ph10, Tue Dec 27 15:37:13 2011 UTC
# Line 6  Line 6 
6  and semantics are as close as possible to those of the Perl 5 language.  and semantics are as close as possible to those of the Perl 5 language.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2010 University of Cambridge             Copyright (c) 1997-2012 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 114  print_char(FILE *f, pcre_uchar *ptr, BOO Line 114  print_char(FILE *f, pcre_uchar *ptr, BOO
114  int c = *ptr;  int c = *ptr;
115    
116  #ifndef SUPPORT_UTF  #ifndef SUPPORT_UTF
117    
118  (void)utf;  /* Avoid compiler warning */  (void)utf;  /* Avoid compiler warning */
119  if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x%02x", c);  if (PRINTABLE(c)) fprintf(f, "%c", c);
120    else if (c <= 0xff) fprintf(f, "\\x%02x", c);
121    else fprintf(f, "\\x{%x}", c);
122  return 0;  return 0;
123    
124  #else  #else

Legend:
Removed from v.810  
changed lines
  Added in v.830

  ViewVC Help
Powered by ViewVC 1.1.5