| 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-2008 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 |
| 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 |
|
#ifdef HAVE_CONFIG_H |
| 50 |
|
#include "config.h" |
| 51 |
|
#endif |
| 52 |
|
|
| 53 |
#include "pcre_internal.h" |
#include "pcre_internal.h" |
| 54 |
|
|
|
|
|
| 55 |
#ifndef VPCOMPAT |
#ifndef VPCOMPAT |
| 56 |
#ifdef __cplusplus |
PCRE_EXP_DATA_DEFN void *(*pcre_malloc)(size_t) = malloc; |
| 57 |
extern "C" void *(*pcre_malloc)(size_t) = malloc; |
PCRE_EXP_DATA_DEFN void (*pcre_free)(void *) = free; |
| 58 |
extern "C" void (*pcre_free)(void *) = free; |
PCRE_EXP_DATA_DEFN void *(*pcre_stack_malloc)(size_t) = malloc; |
| 59 |
extern "C" void *(*pcre_stack_malloc)(size_t) = malloc; |
PCRE_EXP_DATA_DEFN void (*pcre_stack_free)(void *) = free; |
| 60 |
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 |
|
| 61 |
#endif |
#endif |
| 62 |
|
|
| 63 |
/* End of pcre_globals.c */ |
/* End of pcre_globals.c */ |