/[pcre]/code/trunk/maint/ucptest.c
ViewVC logotype

Diff of /code/trunk/maint/ucptest.c

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

revision 942 by ph10, Tue Feb 28 14:50:31 2012 UTC revision 943 by ph10, Tue Feb 28 15:02:51 2012 UTC
# Line 18  one. */ Line 18  one. */
18  #include "../config.h"  #include "../config.h"
19  #endif  #endif
20    
21    #ifndef SUPPORT_UCP
22    #define SUPPORT_UCP
23    #endif
24    
25  #include <ctype.h>  #include <ctype.h>
26  #include <stdio.h>  #include <stdio.h>
27  #include <stdlib.h>  #include <stdlib.h>
# Line 52  int fulltype = UCD_CHARTYPE(c); Line 56  int fulltype = UCD_CHARTYPE(c);
56  int script = UCD_SCRIPT(c);  int script = UCD_SCRIPT(c);
57  int othercase = UCD_OTHERCASE(c);  int othercase = UCD_OTHERCASE(c);
58    
59  uschar *fulltypename = US"??";  unsigned char *fulltypename = US"??";
60  uschar *typename = US"??";  unsigned char *typename = US"??";
61  uschar *scriptname = US"??";  unsigned char *scriptname = US"??";
62    
63  switch (type)  switch (type)
64    {    {
# Line 227  printf("\n"); Line 231  printf("\n");
231  int  int
232  main(void)  main(void)
233  {  {
234  uschar buffer[1024];  unsigned char buffer[1024];
235  while (fgets(CS buffer, sizeof(buffer), stdin) != NULL)  while (fgets(CS buffer, sizeof(buffer), stdin) != NULL)
236    {    {
237    uschar name[24];    unsigned char name[24];
238    uschar *s, *t;    unsigned char *s, *t;
239    
240    printf("%s", buffer);    printf("%s", buffer);
241    s = buffer;    s = buffer;
# Line 246  while (fgets(CS buffer, sizeof(buffer), Line 250  while (fgets(CS buffer, sizeof(buffer),
250      {      {
251      while (*s != 0)      while (*s != 0)
252        {        {
253        uschar *endptr;        unsigned char *endptr;
254        int c = strtoul(CS s, CSS(&endptr), 16);        int c = strtoul(CS s, CSS(&endptr), 16);
255        print_prop(c);        print_prop(c);
256        s = endptr;        s = endptr;

Legend:
Removed from v.942  
changed lines
  Added in v.943

  ViewVC Help
Powered by ViewVC 1.1.5