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 |
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 |
|
|
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 |
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); |