diff options
author | Nuno Lopes <nlopess@php.net> | 2007-02-09 19:48:47 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2007-02-09 19:48:47 +0000 |
commit | b3e66c616dcc1f5d9988d3e485dcd00bbba6fabe (patch) | |
tree | 7d627e2f5988d55ae5dd3b76171b94fc9ab0bc7d /ext/pcre/pcrelib/dftables.c | |
parent | e6d69595afed237cdfe561c9f052efb41f41c622 (diff) | |
download | php-git-b3e66c616dcc1f5d9988d3e485dcd00bbba6fabe.tar.gz |
upgrade pcre to version 7.0
Diffstat (limited to 'ext/pcre/pcrelib/dftables.c')
-rw-r--r-- | ext/pcre/pcrelib/dftables.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/pcre/pcrelib/dftables.c b/ext/pcre/pcrelib/dftables.c index 8c76b65df6..a94b7a61d5 100644 --- a/ext/pcre/pcrelib/dftables.c +++ b/ext/pcre/pcrelib/dftables.c @@ -6,7 +6,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel - Copyright (c) 1997-2007 University of Cambridge + Copyright (c) 1997-2006 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -86,7 +86,16 @@ fprintf(f, fprintf(f, "This file contains the default tables for characters with codes less than\n" "128 (ASCII characters). These tables are used when no external tables are\n" - "passed to PCRE. */\n\n" + "passed to PCRE.\n\n"); +fprintf(f, + "The following #include is present because without it gcc 4.x may remove\n" + "the array definition from the final binary if PCRE is built into a static\n" + "library and dead code stripping is activated. This leads to link errors.\n" + "Pulling in the header ensures that the array gets flagged as \"someone\n" + "outside this compilation unit might reference this\" and so it will always\n" + "be supplied to the linker. */\n\n" + "#include \"pcre_internal.h\"\n\n"); +fprintf(f, "const unsigned char _pcre_default_tables[] = {\n\n" "/* This table is a lower casing table. */\n\n"); |