summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-12-09 11:00:17 +0100
committerYves Orton <demerphq@gmail.com>2022-12-09 16:19:29 +0100
commit85900e28cc250e1c4603f11073b77d0c6b5cff46 (patch)
treeacc41c05f436dd1063459753dda9b557f6261e6c /win32
parent6a6e5d037dad0702bc219f8265505037e1772552 (diff)
downloadperl-85900e28cc250e1c4603f11073b77d0c6b5cff46.tar.gz
regcomp.c - decompose into smaller files
This splits a bunch of the subcomponents of the regex engine into smaller files. regcomp_debug.c regcomp_internal.h regcomp_invlist.c regcomp_study.c regcomp_trie.c The only real change besides to the build machine to achieve the split is to also adds some new defines which can be used in embed.fnc to control exports without having to enumerate /every/ regex engine file. For instance all of regcomp*.c defines PERL_IN_REGCOMP_ANY, and this is used in embed.fnc to manage exports.
Diffstat (limited to 'win32')
-rw-r--r--win32/GNUmakefile16
-rw-r--r--win32/Makefile15
2 files changed, 28 insertions, 3 deletions
diff --git a/win32/GNUmakefile b/win32/GNUmakefile
index 6dd59e069e..7ba37332f3 100644
--- a/win32/GNUmakefile
+++ b/win32/GNUmakefile
@@ -941,6 +941,10 @@ NOOP = @rem
MICROCORE_SRC = \
..\toke.c \
..\regcomp.c \
+ ..\regcomp_trie.c \
+ ..\regcomp_debug.c \
+ ..\regcomp_invlist.c \
+ ..\regcomp_study.c \
..\regexec.c \
..\op.c \
..\sv.c \
@@ -1017,6 +1021,7 @@ CORE_NOCFG_H = \
..\pp.h \
..\proto.h \
..\regcomp.h \
+ ..\regcomp_internal.h \
..\regexp.h \
..\scope.h \
..\sv.h \
@@ -1154,7 +1159,15 @@ ifeq ($(CCTYPE),)
endif
-..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
+..\regcomp$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_debug$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_invlist$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_study$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_trie$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
..\regexec$(o) : ..\regnodes.h ..\regcharclass.h
@@ -1894,4 +1907,3 @@ nok: utils $(PERLEXE) $(PERLDLL) Extensions_nonxs Extensions
nokfile: utils $(PERLEXE) $(PERLDLL) Extensions_nonxs Extensions
$(PERLEXE) ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok
-
diff --git a/win32/Makefile b/win32/Makefile
index 4b347bde9f..b403767586 100644
--- a/win32/Makefile
+++ b/win32/Makefile
@@ -699,6 +699,10 @@ MICROCORE_SRC = \
..\pp_sys.c \
..\reentr.c \
..\regcomp.c \
+ ..\regcomp_trie.c \
+ ..\regcomp_debug.c \
+ ..\regcomp_invlist.c \
+ ..\regcomp_study.c \
..\regexec.c \
..\run.c \
..\scope.c \
@@ -747,6 +751,7 @@ CORE_NOCFG_H = \
..\pp.h \
..\proto.h \
..\regcomp.h \
+ ..\regcomp_internal.h \
..\regexp.h \
..\scope.h \
..\sv.h \
@@ -848,7 +853,15 @@ all : ..\git_version.h $(GLOBEXE) $(CONFIGPM) \
regnodes : ..\regnodes.h
-..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h
+..\regcomp$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_debug$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_invlist$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_study$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
+
+..\regcomp_trie$(o) : ..\regcomp.h ..\regcomp_internal.h ..\regnodes.h ..\regcharclass.h
..\regexec$(o) : ..\regnodes.h ..\regcharclass.h