develooper Front page | perl.perl5.porters | Postings from November 2022

Re: Breaking up regcomp.c and maybe regexec.c

Thread Previous | Thread Next
Dave Mitchell
November 12, 2022 09:32
Re: Breaking up regcomp.c and maybe regexec.c
Message ID:
On Thu, Nov 10, 2022 at 12:31:41PM +0000, Paul "LeoNerd" Evans wrote:
> As to naming, I wonder if we want to consider having things like
> regtrie.c, regpeep.c, etc... Or whether it might make more sense to
> move all the regexp engine stuff into a re/ subdirectory?

I'd prefer not. Currently I often do

    grep foo *.[ch]

when hunting for things in the core (as opposed to in everything) and I
can imagine constantly forgetting to search re/ (and any other additions).

As for the split, I'm particularly bothered either way. But if we do
reorganise, then there are a few runtime things in regcomp.c that really
aught to be in regexec.c, like Perl_reg_numbered_buff_fetch().

I thought I was wrong once, but I was mistaken.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About