diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-08-14 11:19:18 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2013-09-24 11:36:13 -0600 |
commit | 557bd3fbbb79c932d6c63b4e37201c2ae13c700d (patch) | |
tree | 4f771d558da24c7f42c154e00f1f78241b7f94fa /embed.h | |
parent | d2b7f31e8368e71f4af425b35407d3c0db9c61cf (diff) | |
download | perl-557bd3fbbb79c932d6c63b4e37201c2ae13c700d.tar.gz |
regcomp.c: Change names of some static functions
The term 'class' is very overloaded in regex code and documentation.
perlrecharclass.pod calls the dot (matching any char) a class, and
calls the [] form "bracketed character classes". There are other
meanings as well. This is the first commit in a short series that
removes some of those overloadings.
One instance of class is the "synthetic start class", generated by the
regex optimizer to be a list of all the code points a sucessful match
could possibly start with. This is useful in more quickly finding where
to start looking in matching against a target string. Prior to this
commit, the routines that referred to this began with 'cl_', and the
formal parameters were 'cl', which could mean any class. This commit
changes those instances of 'cl' to 'ssc' to indicate this is the only
type of class that is being handled.
Diffstat (limited to 'embed.h')
-rw-r--r-- | embed.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -901,11 +901,6 @@ #define add_cp_to_invlist(a,b) S_add_cp_to_invlist(aTHX_ a,b) #define add_data S_add_data #define alloc_maybe_populate_EXACT(a,b,c,d,e) S_alloc_maybe_populate_EXACT(aTHX_ a,b,c,d,e) -#define cl_and S_cl_and -#define cl_anything S_cl_anything -#define cl_init S_cl_init -#define cl_is_anything S_cl_is_anything -#define cl_or S_cl_or #define compute_EXACTish(a) S_compute_EXACTish(aTHX_ a) #define could_it_be_a_POSIX_class(a) S_could_it_be_a_POSIX_class(aTHX_ a) #define get_invlist_iter_addr(a) S_get_invlist_iter_addr(aTHX_ a) @@ -949,6 +944,11 @@ #define regwhite S_regwhite #define scan_commit(a,b,c,d) S_scan_commit(aTHX_ a,b,c,d) #define set_ANYOF_arg(a,b,c,d,e,f) S_set_ANYOF_arg(aTHX_ a,b,c,d,e,f) +#define ssc_and S_ssc_and +#define ssc_anything S_ssc_anything +#define ssc_init S_ssc_init +#define ssc_is_anything S_ssc_is_anything +#define ssc_or S_ssc_or #define study_chunk(a,b,c,d,e,f,g,h,i,j,k) S_study_chunk(aTHX_ a,b,c,d,e,f,g,h,i,j,k) # endif # if defined(PERL_IN_REGCOMP_C) || defined (PERL_IN_DUMP_C) |