regcomp.h: Convert _reg_ac_data to legal name

This commit is contained in:
Karl Williamson 2025-08-14 15:17:22 -06:00
parent 1176a99221
commit e830b1872d

View File

@ -1231,7 +1231,7 @@ typedef struct reg_trie_trans_ reg_trie_trans;
/* anything in here that needs to be freed later
should be dealt with in pregfree.
refcount is first in both this and _reg_ac_data to allow a space
refcount is first in both this and reg_ac_data_ to allow a space
optimisation in Perl_regdupe. */
struct reg_trie_data_ {
U32 refcount; /* number of times this trie is referenced */
@ -1278,13 +1278,13 @@ typedef struct reg_trie_data_ reg_trie_data;
/* refcount is first in both this and reg_trie_data_ to allow a space
optimisation in Perl_regdupe. */
struct _reg_ac_data {
struct reg_ac_data_ {
U32 refcount;
U32 trie;
U32 *fail;
reg_trie_state *states;
};
typedef struct _reg_ac_data reg_ac_data;
typedef struct reg_ac_data_ reg_ac_data;
/* ANY_BIT doesn't use the structure, so we can borrow it here.
This is simpler than refactoring all of it as wed end up with