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

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

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

revision 803 by zherczeg, Sat Dec 10 10:08:40 2011 UTC revision 804 by zherczeg, Wed Dec 14 11:18:01 2011 UTC
# Line 59  compilation of dftables.c, in which case Line 59  compilation of dftables.c, in which case
59  /* This function builds a set of character tables for use by PCRE and returns  /* This function builds a set of character tables for use by PCRE and returns
60  a pointer to them. They are build using the ctype functions, and consequently  a pointer to them. They are build using the ctype functions, and consequently
61  their contents will depend upon the current locale setting. When compiled as  their contents will depend upon the current locale setting. When compiled as
62  part of the library, the store is obtained via pcre_malloc(), but when compiled  part of the library, the store is obtained via PUBL(malloc)(), but when
63  inside dftables, use malloc().  compiled inside dftables, use malloc().
64    
65  Arguments:   none  Arguments:   none
66  Returns:     pointer to the contiguous block of data  Returns:     pointer to the contiguous block of data
# Line 78  unsigned char *yield, *p; Line 78  unsigned char *yield, *p;
78  int i;  int i;
79    
80  #ifndef DFTABLES  #ifndef DFTABLES
81  yield = (unsigned char*)(pcre_malloc)(tables_length);  yield = (unsigned char*)(PUBL(malloc))(tables_length);
82  #else  #else
83  yield = (unsigned char*)malloc(tables_length);  yield = (unsigned char*)malloc(tables_length);
84  #endif  #endif

Legend:
Removed from v.803  
changed lines
  Added in v.804

  ViewVC Help
Powered by ViewVC 1.1.5