summaryrefslogtreecommitdiff
path: root/reentr.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-04-03 15:48:20 +0200
committerYves Orton <demerphq@gmail.com>2022-08-03 11:07:09 +0200
commitec5e6b1346dbbfc24682d87768357653663ef1eb (patch)
tree6ea9ac665d7f5552ff1908a9ef74ba6125cd80a6 /reentr.h
parentf946e55ad047822276d1420651e4dc2d9caf3fce (diff)
downloadperl-ec5e6b1346dbbfc24682d87768357653663ef1eb.tar.gz
regen/regcomp.pl - create typedefs for all regnode types
Currently we hard code the struct used by the different regop types. This makes it awkward to change the structure used by a specific regop as the struct it uses might be used in many contexts, and each cases of a regop using that structure must be reviewed to see if it needs to be changed. This patch adds a typedef for each regnode. The typedefs are named 'tregnode_OP', for instance 'tregnode_TRIE' is typedefed to 'struct charclass' (at the time of this commit). This allows the code to do things like 'sizeof(tregnode_TRIE)' and should the exact struct used for TRIE regops change in the future then no code need be reviewed or changed.
Diffstat (limited to 'reentr.h')
0 files changed, 0 insertions, 0 deletions