Skip to content
This repository
tree: 91be0c1bdf
Fetching contributors…

Cannot retrieve contributors at this time

file 41 lines (27 sloc) 1.296 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

This directory contains PCRE source files generated from the official
PCRE distribution.

These files are included to simplify building Nu on all platforms,
especially iOS, which currently has limited support for libraries.

When compiling, please be sure to define the following macro:
-D HAVE_CONFIG_H

See pcre.h for the version number of our PCRE snapshot.

You can update these files from the latest PCRE distribution
by following these steps:

1. Generate the appropriate config.h using this command (in
the PCRE directory):

% ./configure --enable-utf8

2. Copy all source files from your local PCRE source directory.

% cd Nu/pcre
% cp /usr/local/src/pcre-8.10/*.[ch] .

3. Remove the sources for any PCRE test and demonstration programs.

% grep "main(" *
dftables.c:int main(int argc, char **argv)
pcredemo.c:int main(int argc, char **argv)
pcregrep.c:main(int argc, char **argv)
pcretest.c:int main(int argc, char **argv)

% rm dftables.c pcredemo.c pcregrep.c pcretest.c

4. Verify that your sources include pcre_chartables.c. This
file is generated automatically by the PCRE build, so if you don't
have it, you can easily get it by running 'make' in your PCRE
directory (after running the 'configure' step noted previously).

% cp /usr/local/src/pcre-8.10/pcre_chartables.c .
Something went wrong with that request. Please try again.