This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
harmonize S_dump_exec_pos()'s last arg type
authorDavid Mitchell <davem@iabyn.com>
Mon, 14 Mar 2016 19:11:08 +0000 (19:11 +0000)
committerDavid Mitchell <davem@iabyn.com>
Tue, 15 Mar 2016 12:35:00 +0000 (12:35 +0000)
embed.fnc declared it as "U32 depth", while it was defined as "const U32
depth".

embed.fnc
proto.h

index a7f31a9..5e2b061 100644 (file)
--- a/embed.fnc
+++ b/embed.fnc
@@ -2377,7 +2377,7 @@ EsR       |WB_enum|backup_one_WB  |NN WB_enum * previous                  \
                                |const bool utf8_target
 #  ifdef DEBUGGING
 Es     |void   |dump_exec_pos  |NN const char *locinput|NN const regnode *scan|NN const char *loc_regeol\
-                               |NN const char *loc_bostr|NN const char *loc_reg_starttry|const bool do_utf8|U32 depth
+                               |NN const char *loc_bostr|NN const char *loc_reg_starttry|const bool do_utf8|const U32 depth
 Es     |void   |debug_start_match|NN const REGEXP *prog|const bool do_utf8\
                                |NN const char *start|NN const char *end\
                                |NN const char *blurb
diff --git a/proto.h b/proto.h
index baa358e..0de5c31 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -3867,7 +3867,7 @@ STATIC U8 S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode *p, const reg
 STATIC void    S_debug_start_match(pTHX_ const REGEXP *prog, const bool do_utf8, const char *start, const char *end, const char *blurb);
 #define PERL_ARGS_ASSERT_DEBUG_START_MATCH     \
        assert(prog); assert(start); assert(end); assert(blurb)
-STATIC void    S_dump_exec_pos(pTHX_ const char *locinput, const regnode *scan, const char *loc_regeol, const char *loc_bostr, const char *loc_reg_starttry, const bool do_utf8, U32 depth);
+STATIC void    S_dump_exec_pos(pTHX_ const char *locinput, const regnode *scan, const char *loc_regeol, const char *loc_bostr, const char *loc_reg_starttry, const bool do_utf8, const U32 depth);
 #define PERL_ARGS_ASSERT_DUMP_EXEC_POS \
        assert(locinput); assert(scan); assert(loc_regeol); assert(loc_bostr); assert(loc_reg_starttry)
 PERL_CALLCONV int      Perl_re_exec_indentf(pTHX_ const char *fmt, U32 depth, ...);