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

Diff of /code/trunk/pcre_globals.c

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

revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC revision 145 by ph10, Wed Apr 4 14:06:52 2007 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-2006 University of Cambridge             Copyright (c) 1997-2007 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 46  indirection. These values can be changed Line 46  indirection. These values can be changed
46  all threads. However, when compiling for Virtual Pascal, things are done  all threads. However, when compiling for Virtual Pascal, things are done
47  differently, and global variables are not used (see pcre.in). */  differently, and global variables are not used (see pcre.in). */
48    
   
49  #include "pcre_internal.h"  #include "pcre_internal.h"
50    
   
51  #ifndef VPCOMPAT  #ifndef VPCOMPAT
52  #ifdef __cplusplus  PCRE_EXP_DATA_DEFN void *(*pcre_malloc)(size_t) = malloc;
53  extern "C" void *(*pcre_malloc)(size_t) = malloc;  PCRE_EXP_DATA_DEFN void  (*pcre_free)(void *) = free;
54  extern "C" void  (*pcre_free)(void *) = free;  PCRE_EXP_DATA_DEFN void *(*pcre_stack_malloc)(size_t) = malloc;
55  extern "C" void *(*pcre_stack_malloc)(size_t) = malloc;  PCRE_EXP_DATA_DEFN void  (*pcre_stack_free)(void *) = free;
56  extern "C" void  (*pcre_stack_free)(void *) = free;  PCRE_EXP_DATA_DEFN int   (*pcre_callout)(pcre_callout_block *) = NULL;
 extern "C" int   (*pcre_callout)(pcre_callout_block *) = NULL;  
 #else  
 void *(*pcre_malloc)(size_t) = malloc;  
 void  (*pcre_free)(void *) = free;  
 void *(*pcre_stack_malloc)(size_t) = malloc;  
 void  (*pcre_stack_free)(void *) = free;  
 int   (*pcre_callout)(pcre_callout_block *) = NULL;  
 #endif  
57  #endif  #endif
58    
59  /* End of pcre_globals.c */  /* End of pcre_globals.c */

Legend:
Removed from v.87  
changed lines
  Added in v.145

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12