/[pcre]/code/tags/pcre-3.8/maketables.c
ViewVC logotype

Diff of /code/tags/pcre-3.8/maketables.c

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

revision 25 by nigel, Sat Feb 24 21:38:45 2007 UTC revision 27 by nigel, Sat Feb 24 21:38:49 2007 UTC
# Line 8  and semantics are as close as possible t Line 8  and semantics are as close as possible t
8    
9  Written by: Philip Hazel <ph10@cam.ac.uk>  Written by: Philip Hazel <ph10@cam.ac.uk>
10    
11             Copyright (c) 1998 University of Cambridge             Copyright (c) 1997-1999 University of Cambridge
12    
13  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
14  Permission is granted to anyone to use this software for any purpose on any  Permission is granted to anyone to use this software for any purpose on any
# Line 31  See the file Tech.Notes for some informa Line 31  See the file Tech.Notes for some informa
31    
32    
33  /* This file is compiled on its own as part of the PCRE library. However,  /* This file is compiled on its own as part of the PCRE library. However,
34  it is also included in the compilation of deftables.c, in which case the macro  it is also included in the compilation of dftables.c, in which case the macro
35  DEFTABLES is defined. */  DFTABLES is defined. */
36    
37  #ifndef DEFTABLES  #ifndef DFTABLES
38  #include "internal.h"  #include "internal.h"
39  #endif  #endif
40    
# Line 48  DEFTABLES is defined. */ Line 48  DEFTABLES is defined. */
48  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
49  their contents will depend upon the current locale setting. When compiled as  their contents will depend upon the current locale setting. When compiled as
50  part of the library, the store is obtained via pcre_malloc(), but when compiled  part of the library, the store is obtained via pcre_malloc(), but when compiled
51  inside deftables, use malloc().  inside dftables, use malloc().
52    
53  Arguments:   none  Arguments:   none
54  Returns:     pointer to the contiguous block of data  Returns:     pointer to the contiguous block of data
# Line 60  pcre_maketables(void) Line 60  pcre_maketables(void)
60  unsigned char *yield, *p;  unsigned char *yield, *p;
61  int i;  int i;
62    
63  #ifndef DEFTABLES  #ifndef DFTABLES
64  yield = (pcre_malloc)(tables_length);  yield = (pcre_malloc)(tables_length);
65  #else  #else
66  yield = malloc(tables_length);  yield = malloc(tables_length);

Legend:
Removed from v.25  
changed lines
  Added in v.27

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12