mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-05 04:39:39 +08:00

This commit updates PCRE2 to 10.34, and we no longer include what's in their tarball as-is. I've yanked out a lot of uneccessary stuff for the sake of the size of our codebase. original pcre2-10.34 dir: 11.5MB pcre2 dir in this commit: 1.6MB * Remove documentation, makefiles, test suites, etc. LICENSE remains. * Disable building tests when configuring PCRE2 * Yard out JIT support: delete src/jit, src/pcre2_jit_*.c, and code doing stuff to code->executable_jit that needs a jit header (it was already NULL because we've always built with JIT disabled). * Remove most .c and .h files not needed to compile: pcre2grep code, pcre2test code, dftables.c, pcre2_printint.c, pcre2_fuzzsupport.c ... * Remove FindBZip2, FindZLIB, FindReadline, FindEditline. These were used only by pcre2grep and made CMake's report misleading with regard to optional packages being used. * Remove configure.ac except for version number and date which CMake checks Next time we update PCRE2, refer to this commit message as well as a diff between pcre2-10.34.tar.gz and ./pcre2-10.34/. Or better yet, cease including pcre2.
55 lines
1.6 KiB
C
55 lines
1.6 KiB
C
/* config.h for CMake builds */
|
|
|
|
#cmakedefine HAVE_DIRENT_H 1
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
|
#cmakedefine HAVE_STDINT_H 1
|
|
#cmakedefine HAVE_STRERROR 1
|
|
#cmakedefine HAVE_SYS_STAT_H 1
|
|
#cmakedefine HAVE_SYS_TYPES_H 1
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
#cmakedefine HAVE_WINDOWS_H 1
|
|
|
|
#cmakedefine HAVE_BCOPY 1
|
|
#cmakedefine HAVE_MEMMOVE 1
|
|
|
|
#cmakedefine PCRE2_STATIC 1
|
|
|
|
#cmakedefine SUPPORT_PCRE2_8 1
|
|
#cmakedefine SUPPORT_PCRE2_16 1
|
|
#cmakedefine SUPPORT_PCRE2_32 1
|
|
#cmakedefine PCRE2_DEBUG 1
|
|
#cmakedefine DISABLE_PERCENT_ZT 1
|
|
|
|
#cmakedefine SUPPORT_LIBBZ2 1
|
|
#cmakedefine SUPPORT_LIBEDIT 1
|
|
#cmakedefine SUPPORT_LIBREADLINE 1
|
|
#cmakedefine SUPPORT_LIBZ 1
|
|
|
|
#cmakedefine SUPPORT_JIT 1
|
|
#cmakedefine SLJIT_PROT_EXECUTABLE_ALLOCATOR 1
|
|
#cmakedefine SUPPORT_PCRE2GREP_JIT 1
|
|
#cmakedefine SUPPORT_PCRE2GREP_CALLOUT 1
|
|
#cmakedefine SUPPORT_PCRE2GREP_CALLOUT_FORK 1
|
|
#cmakedefine SUPPORT_UNICODE 1
|
|
#cmakedefine SUPPORT_VALGRIND 1
|
|
|
|
#cmakedefine BSR_ANYCRLF 1
|
|
#cmakedefine EBCDIC 1
|
|
#cmakedefine EBCDIC_NL25 1
|
|
#cmakedefine HEAP_MATCH_RECURSE 1
|
|
#cmakedefine NEVER_BACKSLASH_C 1
|
|
|
|
#define LINK_SIZE @PCRE2_LINK_SIZE@
|
|
#define HEAP_LIMIT @PCRE2_HEAP_LIMIT@
|
|
#define MATCH_LIMIT @PCRE2_MATCH_LIMIT@
|
|
#define MATCH_LIMIT_DEPTH @PCRE2_MATCH_LIMIT_DEPTH@
|
|
#define NEWLINE_DEFAULT @NEWLINE_DEFAULT@
|
|
#define PARENS_NEST_LIMIT @PCRE2_PARENS_NEST_LIMIT@
|
|
#define PCRE2GREP_BUFSIZE @PCRE2GREP_BUFSIZE@
|
|
#define PCRE2GREP_MAX_BUFSIZE @PCRE2GREP_MAX_BUFSIZE@
|
|
|
|
#define MAX_NAME_SIZE 32
|
|
#define MAX_NAME_COUNT 10000
|
|
|
|
/* end config.h for CMake builds */
|