diff options
author | Yves Orton <demerphq@gmail.com> | 2022-12-09 11:00:17 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2022-12-09 16:19:29 +0100 |
commit | 85900e28cc250e1c4603f11073b77d0c6b5cff46 (patch) | |
tree | acc41c05f436dd1063459753dda9b557f6261e6c /Makefile.micro | |
parent | 6a6e5d037dad0702bc219f8265505037e1772552 (diff) | |
download | perl-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 'Makefile.micro')
-rw-r--r-- | Makefile.micro | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile.micro b/Makefile.micro index 89b52faf8c..75f9333a2a 100644 --- a/Makefile.micro +++ b/Makefile.micro @@ -18,7 +18,8 @@ O = uav$(_O) udeb$(_O) udoio$(_O) udoop$(_O) udquote$(_O) udump$(_O) \ umg$(_O) uperlmain$(_O) uop$(_O) ureentr$(_O) \ upad$(_O) uperl$(_O) uperlio$(_O) uperly$(_O) upp$(_O) \ upp_ctl$(_O) upp_hot$(_O) upp_sys$(_O) upp_pack$(_O) upp_sort$(_O) \ - uregcomp$(_O) uregexec$(_O) urun$(_O) \ + uregcomp$(_O) uregcomp_debug$(_O) uregcomp_invlist$(_O) \ + uregcomp_study$(_O) uregcomp_trie$(_O) uregexec$(_O) urun$(_O) \ uscope$(_O) usv$(_O) utaint$(_O) utime64$(_O) utoke$(_O) \ unumeric$(_O) ulocale$(_O) umathoms$(_O) \ uuniversal$(_O) uutf8$(_O) uutil$(_O) ukeywords$(_O) @@ -138,7 +139,19 @@ upp_pack$(_O): $(HE) pp_pack.c upp_sort$(_O): $(HE) pp_sort.c $(CC) $(CCFLAGS) -o $@ $(CFLAGS) pp_sort.c -uregcomp$(_O): $(HE) regcomp.c regcomp.h regnodes.h INTERN.h +uregcomp$(_O): $(HE) regcomp.c regcomp_internal.h regcomp.h regnodes.h INTERN.h + $(CC) $(CCFLAGS) -o $@ $(CFLAGS) regcomp.c + +uregcomp_debug$(_O): $(HE) regcomp_debug.c regcomp_internal.h regcomp.h regnodes.h INTERN.h + $(CC) $(CCFLAGS) -o $@ $(CFLAGS) regcomp.c + +uregcomp_invlist$(_O): $(HE) regcomp_invlist.c regcomp_internal.h regcomp.h regnodes.h INTERN.h + $(CC) $(CCFLAGS) -o $@ $(CFLAGS) regcomp.c + +uregcomp_study$(_O): $(HE) regcomp_study.c regcomp_internal.h regcomp.h regnodes.h INTERN.h + $(CC) $(CCFLAGS) -o $@ $(CFLAGS) regcomp.c + +uregcomp_trie$(_O): $(HE) regcomp_trie.c regcomp_internal.h regcomp.h regnodes.h INTERN.h $(CC) $(CCFLAGS) -o $@ $(CFLAGS) regcomp.c uregexec$(_O): $(HE) regexec.c regcomp.h regnodes.h |