This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix breakages caused by #31130:
authorSteve Hay <SteveHay@planit.com>
Thu, 3 May 2007 17:17:01 +0000 (17:17 +0000)
committerSteve Hay <SteveHay@planit.com>
Thu, 3 May 2007 17:17:01 +0000 (17:17 +0000)
report_uninit was not exported on Win32 and
my_reg_numbered_buff_length had wrong prototype

p4raw-id: //depot/perl@31132

embed.fnc
embed.h
ext/re/re.xs
global.sym
proto.h

index 3257dd7..addde2c 100644 (file)
--- a/embed.fnc
+++ b/embed.fnc
@@ -963,7 +963,7 @@ p   |U32    |parse_unicode_opts|NN const char **popt
 Ap     |U32    |seed
 pR     |UV     |get_hash_seed
 p      |void   |report_evil_fh |NULLOK const GV *gv|NULLOK const IO *io|I32 op
-pd     |void   |report_uninit  |NULLOK SV* uninit_sv
+XEpd   |void   |report_uninit  |NULLOK SV* uninit_sv
 Afpd   |void   |warn           |NN const char* pat|...
 Ap     |void   |vwarn          |NN const char* pat|NULLOK va_list* args
 Afp    |void   |warner         |U32 err|NN const char* pat|...
diff --git a/embed.h b/embed.h
index bdf361a..b3e2338 100644 (file)
--- a/embed.h
+++ b/embed.h
 #ifdef PERL_CORE
 #define get_hash_seed          Perl_get_hash_seed
 #define report_evil_fh         Perl_report_evil_fh
+#endif
+#if defined(PERL_CORE) || defined(PERL_EXT)
 #define report_uninit          Perl_report_uninit
 #endif
 #define warn                   Perl_warn
 #ifdef PERL_CORE
 #define get_hash_seed()                Perl_get_hash_seed(aTHX)
 #define report_evil_fh(a,b,c)  Perl_report_evil_fh(aTHX_ a,b,c)
+#endif
+#if defined(PERL_CORE) || defined(PERL_EXT)
 #define report_uninit(a)       Perl_report_uninit(aTHX_ a)
 #endif
 #define vwarn(a,b)             Perl_vwarn(aTHX_ a,b)
index c569ad1..1344065 100644 (file)
@@ -23,14 +23,15 @@ extern SV*  my_re_intuit_string (pTHX_ REGEXP * const prog);
 
 extern void    my_regfree (pTHX_ REGEXP * const r);
 
-extern void my_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren,
-                                     SV * const usesv);
-extern void my_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren,
-                                       SV const * const value);
-extern I32 my_reg_numbered_buff_length(pTHX_ REGEXP * const rx, const I32 paren);
-
-extern SV* my_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const key,
-                                      const U32 flags);
+extern void    my_reg_numbered_buff_fetch(pTHX_ REGEXP * const rx, const I32 paren,
+                                          SV * const usesv);
+extern void    my_reg_numbered_buff_store(pTHX_ REGEXP * const rx, const I32 paren,
+                                          SV const * const value);
+extern I32     my_reg_numbered_buff_length(pTHX_ REGEXP * const rx,
+                                           const SV * const sv, const I32 paren);
+
+extern SV*     my_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const key,
+                                       const U32 flags);
 
 extern SV*      my_reg_qr_package(pTHX_ REGEXP * const rx);
 #if defined(USE_ITHREADS)
index 59f2452..c5181b4 100644 (file)
@@ -593,6 +593,7 @@ Perl_pv_uni_display
 Perl_sv_uni_display
 Perl_vivify_defelem
 Perl_seed
+Perl_report_uninit
 Perl_warn
 Perl_vwarn
 Perl_warner
diff --git a/proto.h b/proto.h
index fbdf6c8..e731d5f 100644 (file)
--- a/proto.h
+++ b/proto.h
@@ -1893,7 +1893,7 @@ PERL_CALLCONV regnode*    Perl_regnext(pTHX_ regnode* p)
                        __attribute__nonnull__(pTHX_1);
 
 
-PERL_CALLCONV SV*      Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const namesv, const U32 flags)
+PERL_CALLCONV SV*      Perl_reg_named_buff_fetch(pTHX_ REGEXP * const rx, SV * const key, const U32 flags)
                        __attribute__nonnull__(pTHX_1)
                        __attribute__nonnull__(pTHX_2);