/[pcre]/code/trunk/pcre_maketables.c
ViewVC logotype

Diff of /code/trunk/pcre_maketables.c

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

revision 835 by ph10, Sun Jan 20 20:07:32 2008 UTC revision 836 by ph10, Wed Dec 28 17:16:11 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-2008 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 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
67  */  */
68    
69    #ifdef COMPILE_PCRE8
70  const unsigned char *  const unsigned char *
71  pcre_maketables(void)  pcre_maketables(void)
72    #else
73    const unsigned char *
74    pcre16_maketables(void)
75    #endif
76  {  {
77  unsigned char *yield, *p;  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.835  
changed lines
  Added in v.836

  ViewVC Help
Powered by ViewVC 1.1.5