Diff for /embedaddon/pcre/pcre_maketables.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:05:51 version 1.1.1.2, 2012/02/21 23:50:25
Line 6 Line 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.
   
                        Written by Philip Hazel                         Written by Philip Hazel
           Copyright (c) 1997-2008 University of Cambridge           Copyright (c) 1997-2012 University of Cambridge
   
 -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
 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 the macro DFT Line 59  compilation of dftables.c, in which case the macro DFT
 /* 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
 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
 their contents will depend upon the current locale setting. When compiled as  their contents will depend upon the current locale setting. When compiled as
part of the library, the store is obtained via pcre_malloc(), but when compiledpart of the library, the store is obtained via PUBL(malloc)(), but when
inside dftables, use malloc().compiled inside dftables, use malloc().
   
 Arguments:   none  Arguments:   none
 Returns:     pointer to the contiguous block of data  Returns:     pointer to the contiguous block of data
 */  */
   
   #ifdef COMPILE_PCRE8
 const unsigned char *  const unsigned char *
 pcre_maketables(void)  pcre_maketables(void)
   #else
   const unsigned char *
   pcre16_maketables(void)
   #endif
 {  {
 unsigned char *yield, *p;  unsigned char *yield, *p;
 int i;  int i;
   
 #ifndef DFTABLES  #ifndef DFTABLES
yield = (unsigned char*)(pcre_malloc)(tables_length);yield = (unsigned char*)(PUBL(malloc))(tables_length);
 #else  #else
 yield = (unsigned char*)malloc(tables_length);  yield = (unsigned char*)malloc(tables_length);
 #endif  #endif

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>