]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.363 v7.2.363
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Feb 2010 15:40:58 +0000 (16:40 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Feb 2010 15:40:58 +0000 (16:40 +0100)
Problem:    Can't dynamically load Perl 5.10.
Solution:   Add the function Perl_croak_xs_usage. (Sergey Khorev)

src/if_perl.xs
src/version.c

index 1ef0eb4aa65d68e9398d05ed16d3c06b394f90a1..978470795c2a6555c60b12893d5d11f1d98fd476 100644 (file)
@@ -93,6 +93,9 @@ EXTERN_C void boot_DynaLoader __ARGS((pTHX_ CV*));
 # define perl_free dll_perl_free
 # define Perl_get_context dll_Perl_get_context
 # define Perl_croak dll_Perl_croak
+# if (PERL_REVISION == 5) && (PERL_VERSION >= 10)
+#  define Perl_croak_xs_usage dll_Perl_croak_xs_usage
+# endif
 # ifndef PROTO
 #  define Perl_croak_nocontext dll_Perl_croak_nocontext
 #  define Perl_call_argv dll_Perl_call_argv
@@ -202,6 +205,9 @@ static int (*perl_run)(PerlInterpreter*);
 static int (*perl_parse)(PerlInterpreter*, XSINIT_t, int, char**, char**);
 static void* (*Perl_get_context)(void);
 static void (*Perl_croak)(pTHX_ const char*, ...);
+#if (PERL_REVISION == 5) && (PERL_VERSION >= 10)
+static void (*Perl_croak_xs_usage)(pTHX_ const CV *const, const char *const params);
+#endif
 static void (*Perl_croak_nocontext)(const char*, ...);
 static I32 (*Perl_dowantarray)(pTHX);
 static void (*Perl_free_tmps)(pTHX);
@@ -306,6 +312,9 @@ static struct {
     {"perl_parse", (PERL_PROC*)&perl_parse},
     {"Perl_get_context", (PERL_PROC*)&Perl_get_context},
     {"Perl_croak", (PERL_PROC*)&Perl_croak},
+#if (PERL_REVISION == 5) && (PERL_VERSION >= 10)
+    {"Perl_croak_xs_usage", (PERL_PROC*)&Perl_croak_xs_usage},
+#endif
     {"Perl_croak_nocontext", (PERL_PROC*)&Perl_croak_nocontext},
     {"Perl_dowantarray", (PERL_PROC*)&Perl_dowantarray},
     {"Perl_free_tmps", (PERL_PROC*)&Perl_free_tmps},
index 47c1223631fa3e27b33951654bafdbd5a415a4a7..640a69bc8668ff43f409b06fa09be54a7c30131d 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    363,
 /**/
     362,
 /**/