Permalink
Browse files

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.
  • Loading branch information...
khwilliamson committed Sep 21, 2018
1 parent cd30a0b commit d6132ad79ed2de85e84312e28dc92ffde45d25db
Showing with 2 additions and 4 deletions.
  1. +1 −3 perl.h
  2. +1 −1 regcomp.h
View
4 perl.h
@@ -3682,11 +3682,9 @@ 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_ssc regnode_ssc;
typedef struct RExC_state_t RExC_state_t;
View
@@ -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;

0 comments on commit d6132ad

Please sign in to comment.