diff options
author | Karl Williamson <khw@cpan.org> | 2018-09-21 08:33:31 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-10-20 00:09:54 -0600 |
commit | ea461dd624d982da3d7216fd18fd3caca818c2bb (patch) | |
tree | cd34449fcf022208b3e5ea9c432260d4fb358c64 | |
parent | d156f5cb3264950617984f631f4023cd2482df47 (diff) | |
download | perl-ea461dd624d982da3d7216fd18fd3caca818c2bb.tar.gz |
regcomp.h: Swap struct vs typedef
This struct has two names. I previously left the less descriptive one
as the primary because of back compat issues. But I now realize that
regcomp.h is only used in the core, so it's ok to swap for the better
name to be primary.
-rw-r--r-- | perl.h | 5 | ||||
-rw-r--r-- | regcomp.h | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -3682,11 +3682,10 @@ typedef struct magic_state MGS; /* struct magic_state defined in mg.c */ struct scan_data_t; typedef struct regnode_charclass regnode_charclass; -struct regnode_charclass_class; - /* A hopefully less confusing name. The sub-classes are all Posix classes only * used under /l matching */ -typedef struct regnode_charclass_class regnode_charclass_posixl; +typedef struct regnode_charclass_posixl regnode_charclass_class; +typedef struct regnode_charclass_posixl regnode_charclass_posixl; typedef struct regnode_ssc regnode_ssc; typedef struct RExC_state_t RExC_state_t; @@ -217,7 +217,7 @@ struct regnode_charclass { }; /* has runtime (locale) \d, \w, ..., [:posix:] classes */ -struct regnode_charclass_class { +struct regnode_charclass_posixl { U8 flags; /* ANYOF_MATCHES_POSIXL bit must go here */ U8 type; U16 next_off; |