From 0916b5f9072f7bd1b7b045ceb07758f9dc097ac2 Mon Sep 17 00:00:00 2001 From: Vincent Peyruqueou Date: Mon, 27 Mar 2023 11:46:59 +0200 Subject: Add sources of PCRE and Microsoft Visual Studio solutions to compile the lib --- pcre/win32/config.h | 62 ++++++++++++++ pcre/win32/libpcre.rc | 40 +++++++++ pcre/win32/libpcre16.rc | 40 +++++++++ pcre/win32/libpcre32.rc | 40 +++++++++ pcre/win32/libpcrecpp.rc | 40 +++++++++ pcre/win32/libpcreposix.rc | 40 +++++++++ pcre/win32/pcre_chartables.c | 198 +++++++++++++++++++++++++++++++++++++++++++ pcre/win32/pcre_version.h | 4 + pcre/win32/pcregrep.rc | 40 +++++++++ 9 files changed, 504 insertions(+) create mode 100644 pcre/win32/config.h create mode 100644 pcre/win32/libpcre.rc create mode 100644 pcre/win32/libpcre16.rc create mode 100644 pcre/win32/libpcre32.rc create mode 100644 pcre/win32/libpcrecpp.rc create mode 100644 pcre/win32/libpcreposix.rc create mode 100644 pcre/win32/pcre_chartables.c create mode 100644 pcre/win32/pcre_version.h create mode 100644 pcre/win32/pcregrep.rc (limited to 'pcre/win32') diff --git a/pcre/win32/config.h b/pcre/win32/config.h new file mode 100644 index 0000000..68568c6 --- /dev/null +++ b/pcre/win32/config.h @@ -0,0 +1,62 @@ +/* Originally generated by CMake and then modified for pcre-win-build. */ +/* config.h for CMake builds */ + +/* #undef HAVE_DIRENT_H */ +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_TYPES_H 1 +/* #undef HAVE_UNISTD_H */ +#define HAVE_WINDOWS_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_INTTYPES_H 1 + +/* #undef HAVE_TYPE_TRAITS_H */ +/* #undef HAVE_BITS_TYPE_TRAITS_H */ + +/* #undef HAVE_BCOPY */ +#define HAVE_MEMMOVE 1 +#define HAVE_STRERROR 1 +#if !defined(_MSC_VER) || _MSC_VER >= 1800 +#define HAVE_STRTOLL 1 +#else +/* #undef HAVE_STRTOLL */ +#endif +/* #undef HAVE_STRTOQ */ +#define HAVE__STRTOI64 1 + +/* #undef PCRE_STATIC */ /* Defined through project settings. */ + +#define SUPPORT_PCRE8 1 +#define SUPPORT_PCRE16 1 +#define SUPPORT_PCRE32 1 +#define SUPPORT_JIT 1 +#define SUPPORT_PCREGREP_JIT 1 +#define SUPPORT_UTF 1 +#define SUPPORT_UCP 1 +/* #undef EBCDIC */ +/* #undef EBCDIC_NL25 */ +/* #undef BSR_ANYCRLF */ +/* #undef NO_RECURSE */ + +#define HAVE_LONG_LONG 1 +#define HAVE_UNSIGNED_LONG_LONG 1 + +/* #undef SUPPORT_LIBBZ2 */ +/* #undef SUPPORT_LIBZ */ +/* #undef SUPPORT_LIBEDIT */ +/* #undef SUPPORT_LIBREADLINE */ + +/* #undef SUPPORT_VALGRIND */ +/* #undef SUPPORT_GCOV */ + +#define NEWLINE 10 +#define POSIX_MALLOC_THRESHOLD 10 +#define LINK_SIZE 2 +#define PARENS_NEST_LIMIT 250 +#define MATCH_LIMIT 10000000 +#define MATCH_LIMIT_RECURSION MATCH_LIMIT +#define PCREGREP_BUFSIZE 20480 + +#define MAX_NAME_SIZE 32 +#define MAX_NAME_COUNT 10000 + +/* end config.h for CMake builds */ diff --git a/pcre/win32/libpcre.rc b/pcre/win32/libpcre.rc new file mode 100644 index 0000000..8767666 --- /dev/null +++ b/pcre/win32/libpcre.rc @@ -0,0 +1,40 @@ +#include +#include "pcre_version.h" + +#ifdef GCC_WINDRES +VS_VERSION_INFO VERSIONINFO +#else +VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE +#endif + FILEVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + PRODUCTVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS 1 +#else + FILEFLAGS 0 +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE 0 // not used +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + //language ID = U.S. English, char set = Windows, Multilingual + BEGIN + VALUE "FileDescription", "libpcre for Windows\0" + VALUE "FileVersion", PCRE_VERSION_STR "\0" + VALUE "InternalName", "libpcre.dll\0" + VALUE "LegalCopyright", "Copyright (c) 1997-2021 University of Cambridge.\0" + VALUE "OriginalFilename", "libpcre.dll\0" + VALUE "ProductName", "PCRE\0" + VALUE "ProductVersion", PCRE_VERSION_STR "\0" + VALUE "Comments", "For more information visit . Alternative build from .\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END diff --git a/pcre/win32/libpcre16.rc b/pcre/win32/libpcre16.rc new file mode 100644 index 0000000..fa61f77 --- /dev/null +++ b/pcre/win32/libpcre16.rc @@ -0,0 +1,40 @@ +#include +#include "pcre_version.h" + +#ifdef GCC_WINDRES +VS_VERSION_INFO VERSIONINFO +#else +VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE +#endif + FILEVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + PRODUCTVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS 1 +#else + FILEFLAGS 0 +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE 0 // not used +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + //language ID = U.S. English, char set = Windows, Multilingual + BEGIN + VALUE "FileDescription", "libpcre16 for Windows\0" + VALUE "FileVersion", PCRE_VERSION_STR "\0" + VALUE "InternalName", "libpcre16.dll\0" + VALUE "LegalCopyright", "Copyright (c) 1997-2021 University of Cambridge.\0" + VALUE "OriginalFilename", "libpcre16.dll\0" + VALUE "ProductName", "PCRE\0" + VALUE "ProductVersion", PCRE_VERSION_STR "\0" + VALUE "Comments", "For more information visit . Alternative build from .\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END diff --git a/pcre/win32/libpcre32.rc b/pcre/win32/libpcre32.rc new file mode 100644 index 0000000..66a4b39 --- /dev/null +++ b/pcre/win32/libpcre32.rc @@ -0,0 +1,40 @@ +#include +#include "pcre_version.h" + +#ifdef GCC_WINDRES +VS_VERSION_INFO VERSIONINFO +#else +VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE +#endif + FILEVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + PRODUCTVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS 1 +#else + FILEFLAGS 0 +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE 0 // not used +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + //language ID = U.S. English, char set = Windows, Multilingual + BEGIN + VALUE "FileDescription", "libpcre32 for Windows\0" + VALUE "FileVersion", PCRE_VERSION_STR "\0" + VALUE "InternalName", "libpcre32.dll\0" + VALUE "LegalCopyright", "Copyright (c) 1997-2021 University of Cambridge.\0" + VALUE "OriginalFilename", "libpcre32.dll\0" + VALUE "ProductName", "PCRE\0" + VALUE "ProductVersion", PCRE_VERSION_STR "\0" + VALUE "Comments", "For more information visit . Alternative build from .\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END diff --git a/pcre/win32/libpcrecpp.rc b/pcre/win32/libpcrecpp.rc new file mode 100644 index 0000000..4003b39 --- /dev/null +++ b/pcre/win32/libpcrecpp.rc @@ -0,0 +1,40 @@ +#include +#include "pcre_version.h" + +#ifdef GCC_WINDRES +VS_VERSION_INFO VERSIONINFO +#else +VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE +#endif + FILEVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + PRODUCTVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS 1 +#else + FILEFLAGS 0 +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE 0 // not used +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + //language ID = U.S. English, char set = Windows, Multilingual + BEGIN + VALUE "FileDescription", "libpcrecpp for Windows\0" + VALUE "FileVersion", PCRE_VERSION_STR "\0" + VALUE "InternalName", "libpcrecpp.dll\0" + VALUE "LegalCopyright", "Copyright (c) 1997-2021 University of Cambridge.\0" + VALUE "OriginalFilename", "libpcrecpp.dll\0" + VALUE "ProductName", "PCRE\0" + VALUE "ProductVersion", PCRE_VERSION_STR "\0" + VALUE "Comments", "For more information visit . Alternative build from .\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END diff --git a/pcre/win32/libpcreposix.rc b/pcre/win32/libpcreposix.rc new file mode 100644 index 0000000..57bf7b6 --- /dev/null +++ b/pcre/win32/libpcreposix.rc @@ -0,0 +1,40 @@ +#include +#include "pcre_version.h" + +#ifdef GCC_WINDRES +VS_VERSION_INFO VERSIONINFO +#else +VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE +#endif + FILEVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + PRODUCTVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS 1 +#else + FILEFLAGS 0 +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_DLL + FILESUBTYPE 0 // not used +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + //language ID = U.S. English, char set = Windows, Multilingual + BEGIN + VALUE "FileDescription", "libpcreposix for Windows\0" + VALUE "FileVersion", PCRE_VERSION_STR "\0" + VALUE "InternalName", "libpcreposix.dll\0" + VALUE "LegalCopyright", "Copyright (c) 1997-2021 University of Cambridge.\0" + VALUE "OriginalFilename", "libpcreposix.dll\0" + VALUE "ProductName", "PCRE\0" + VALUE "ProductVersion", PCRE_VERSION_STR "\0" + VALUE "Comments", "For more information visit . Alternative build from .\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END diff --git a/pcre/win32/pcre_chartables.c b/pcre/win32/pcre_chartables.c new file mode 100644 index 0000000..1e20ec2 --- /dev/null +++ b/pcre/win32/pcre_chartables.c @@ -0,0 +1,198 @@ +/************************************************* +* Perl-Compatible Regular Expressions * +*************************************************/ + +/* This file contains character tables that are used when no external tables +are passed to PCRE by the application that calls it. The tables are used only +for characters whose code values are less than 256. + +This is a default version of the tables that assumes ASCII encoding. A program +called dftables (which is distributed with PCRE) can be used to build +alternative versions of this file. This is necessary if you are running in an +EBCDIC environment, or if you want to default to a different encoding, for +example ISO-8859-1. When dftables is run, it creates these tables in the +current locale. If PCRE is configured with --enable-rebuild-chartables, this +happens automatically. + +The following #includes are present because without them gcc 4.x may remove the +array definition from the final binary if PCRE is built into a static library +and dead code stripping is activated. This leads to link errors. Pulling in the +header ensures that the array gets flagged as "someone outside this compilation +unit might reference this" and so it will always be supplied to the linker. */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "pcre_internal.h" + +const pcre_uint8 PRIV(default_tables)[] = { + +/* This table is a lower casing table. */ + + 0, 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, 42, 43, 44, 45, 46, 47, + 48, 49, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 61, 62, 63, + 64, 97, 98, 99,100,101,102,103, + 104,105,106,107,108,109,110,111, + 112,113,114,115,116,117,118,119, + 120,121,122, 91, 92, 93, 94, 95, + 96, 97, 98, 99,100,101,102,103, + 104,105,106,107,108,109,110,111, + 112,113,114,115,116,117,118,119, + 120,121,122,123,124,125,126,127, + 128,129,130,131,132,133,134,135, + 136,137,138,139,140,141,142,143, + 144,145,146,147,148,149,150,151, + 152,153,154,155,156,157,158,159, + 160,161,162,163,164,165,166,167, + 168,169,170,171,172,173,174,175, + 176,177,178,179,180,181,182,183, + 184,185,186,187,188,189,190,191, + 192,193,194,195,196,197,198,199, + 200,201,202,203,204,205,206,207, + 208,209,210,211,212,213,214,215, + 216,217,218,219,220,221,222,223, + 224,225,226,227,228,229,230,231, + 232,233,234,235,236,237,238,239, + 240,241,242,243,244,245,246,247, + 248,249,250,251,252,253,254,255, + +/* This table is a case flipping table. */ + + 0, 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, 42, 43, 44, 45, 46, 47, + 48, 49, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 61, 62, 63, + 64, 97, 98, 99,100,101,102,103, + 104,105,106,107,108,109,110,111, + 112,113,114,115,116,117,118,119, + 120,121,122, 91, 92, 93, 94, 95, + 96, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, + 80, 81, 82, 83, 84, 85, 86, 87, + 88, 89, 90,123,124,125,126,127, + 128,129,130,131,132,133,134,135, + 136,137,138,139,140,141,142,143, + 144,145,146,147,148,149,150,151, + 152,153,154,155,156,157,158,159, + 160,161,162,163,164,165,166,167, + 168,169,170,171,172,173,174,175, + 176,177,178,179,180,181,182,183, + 184,185,186,187,188,189,190,191, + 192,193,194,195,196,197,198,199, + 200,201,202,203,204,205,206,207, + 208,209,210,211,212,213,214,215, + 216,217,218,219,220,221,222,223, + 224,225,226,227,228,229,230,231, + 232,233,234,235,236,237,238,239, + 240,241,242,243,244,245,246,247, + 248,249,250,251,252,253,254,255, + +/* This table contains bit maps for various character classes. Each map is 32 +bytes long and the bits run from the least significant end of each byte. The +classes that have their own maps are: space, xdigit, digit, upper, lower, word, +graph, print, punct, and cntrl. Other classes are built from combinations. */ + + 0x00,0x3e,0x00,0x00,0x01,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, + 0x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0xfe,0xff,0xff,0x07,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0x07, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, + 0xfe,0xff,0xff,0x87,0xfe,0xff,0xff,0x07, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0xff, + 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff, + 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0x00,0x00,0x00,0x00,0xfe,0xff,0x00,0xfc, + 0x01,0x00,0x00,0xf8,0x01,0x00,0x00,0x78, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + + 0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + +/* This table identifies various classes of character by individual bits: + 0x01 white space character + 0x02 letter + 0x04 decimal digit + 0x08 hexadecimal digit + 0x10 alphanumeric or '_' + 0x80 regular expression metacharacter or binary zero +*/ + + 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 */ + 0x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00, /* 8- 15 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */ + 0x01,0x00,0x00,0x00,0x80,0x00,0x00,0x00, /* - ' */ + 0x80,0x80,0x80,0x80,0x00,0x00,0x80,0x00, /* ( - / */ + 0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c, /* 0 - 7 */ + 0x1c,0x1c,0x00,0x00,0x00,0x00,0x00,0x80, /* 8 - ? */ + 0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /* @ - G */ + 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* H - O */ + 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* P - W */ + 0x12,0x12,0x12,0x80,0x80,0x00,0x80,0x10, /* X - _ */ + 0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /* ` - g */ + 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* h - o */ + 0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* p - w */ + 0x12,0x12,0x12,0x80,0x80,0x00,0x00,0x00, /* x -127 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */ + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */ + +/* End of pcre_chartables.c */ diff --git a/pcre/win32/pcre_version.h b/pcre/win32/pcre_version.h new file mode 100644 index 0000000..46ee94a --- /dev/null +++ b/pcre/win32/pcre_version.h @@ -0,0 +1,4 @@ +#define PCRE_VERSION_STR "8.45" +#define PCRE_VER_MAJOR 8 +#define PCRE_VER_MINOR 45 +#define PCRE_VER_REVISION 0 diff --git a/pcre/win32/pcregrep.rc b/pcre/win32/pcregrep.rc new file mode 100644 index 0000000..215c395 --- /dev/null +++ b/pcre/win32/pcregrep.rc @@ -0,0 +1,40 @@ +#include +#include "pcre_version.h" + +#ifdef GCC_WINDRES +VS_VERSION_INFO VERSIONINFO +#else +VS_VERSION_INFO VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE +#endif + FILEVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + PRODUCTVERSION PCRE_VER_MAJOR,PCRE_VER_MINOR,PCRE_VER_REVISION,0 + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS 1 +#else + FILEFLAGS 0 +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0 // not used +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + //language ID = U.S. English, char set = Windows, Multilingual + BEGIN + VALUE "FileDescription", "pcregrep for Windows\0" + VALUE "FileVersion", PCRE_VERSION_STR "\0" + VALUE "InternalName", "pcregrep.exe\0" + VALUE "LegalCopyright", "Copyright (c) 1997-2021 University of Cambridge.\0" + VALUE "OriginalFilename", "pcregrep.exe\0" + VALUE "ProductName", "PCRE\0" + VALUE "ProductVersion", PCRE_VERSION_STR "\0" + VALUE "Comments", "For more information visit . Alternative build from .\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0409, 1252 + END +END -- cgit v1.1