summaryrefslogtreecommitdiff
path: root/regcomp_trie.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-21 22:02:48 +0100
committerYves Orton <demerphq@gmail.com>2023-03-29 20:54:49 +0800
commit44eb4cdc274114db740861e4a116ffce3371d70f (patch)
treece493442d641765399dacc07ac2e81830796f0fa /regcomp_trie.c
parentb292ecb4e4450921a8424ad87000f49bd9c858de (diff)
downloadperl-44eb4cdc274114db740861e4a116ffce3371d70f.tar.gz
regcomp.h - use a common union for head and args across all regnodes.
This helps with HPUX builds where we need to ensure everything is aligned the same (on 32 bit boundaries). It also strongly encourages everything to use the accessor macros and not access the members directly. By using a union for the variadic fields we make it more obvious that some regops use the field in different ways. This patch also converts all the arg unions into a standardized union with standardized member names.
Diffstat (limited to 'regcomp_trie.c')
-rw-r--r--regcomp_trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp_trie.c b/regcomp_trie.c
index 1096a25fcd..31b54ca936 100644
--- a/regcomp_trie.c
+++ b/regcomp_trie.c
@@ -1517,7 +1517,7 @@ Perl_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch,
OP( convert ) = TRIE;
/* store the type in the flags */
- convert->flags = nodetype;
+ FLAGS(convert) = nodetype;
DEBUG_r({
optimize = convert
+ NODE_STEP_REGNODE