summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-09-21 08:33:31 -0600
committerKarl Williamson <khw@cpan.org>2018-10-20 00:09:54 -0600
commitea461dd624d982da3d7216fd18fd3caca818c2bb (patch)
treecd34449fcf022208b3e5ea9c432260d4fb358c64
parentd156f5cb3264950617984f631f4023cd2482df47 (diff)
downloadperl-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.h5
-rw-r--r--regcomp.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/perl.h b/perl.h
index 5e5a15746c..e6ab70f93f 100644
--- a/perl.h
+++ b/perl.h
@@ -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;
diff --git a/regcomp.h b/regcomp.h
index 6fcdc22079..8bffb5d777 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -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;