Karsten Hopp 374676
To: vim-dev@vim.org
Karsten Hopp 374676
Subject: Patch 7.2.363
Karsten Hopp 374676
Fcc: outbox
Karsten Hopp 374676
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 374676
Mime-Version: 1.0
Karsten Hopp 374676
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 374676
Content-Transfer-Encoding: 8bit
Karsten Hopp 374676
------------
Karsten Hopp 374676
Karsten Hopp 374676
Patch 7.2.363
Karsten Hopp 374676
Problem:    Can't dynamically load Perl 5.10.
Karsten Hopp 374676
Solution:   Add the function Perl_croak_xs_usage. (Sergey Khorev)
Karsten Hopp 374676
Files:	    src/if_perl.xs
Karsten Hopp 374676
Karsten Hopp 374676
Karsten Hopp 374676
*** ../vim-7.2.362/src/if_perl.xs	2009-11-11 14:45:36.000000000 +0100
Karsten Hopp 374676
--- src/if_perl.xs	2010-02-17 16:33:16.000000000 +0100
Karsten Hopp 374676
***************
Karsten Hopp 374676
*** 93,98 ****
Karsten Hopp 374676
--- 93,101 ----
Karsten Hopp 374676
  # define perl_free dll_perl_free
Karsten Hopp 374676
  # define Perl_get_context dll_Perl_get_context
Karsten Hopp 374676
  # define Perl_croak dll_Perl_croak
Karsten Hopp 374676
+ # if (PERL_REVISION == 5) && (PERL_VERSION >= 10)
Karsten Hopp 374676
+ #  define Perl_croak_xs_usage dll_Perl_croak_xs_usage
Karsten Hopp 374676
+ # endif
Karsten Hopp 374676
  # ifndef PROTO
Karsten Hopp 374676
  #  define Perl_croak_nocontext dll_Perl_croak_nocontext
Karsten Hopp 374676
  #  define Perl_call_argv dll_Perl_call_argv
Karsten Hopp 374676
***************
Karsten Hopp 374676
*** 202,207 ****
Karsten Hopp 374676
--- 205,213 ----
Karsten Hopp 374676
  static int (*perl_parse)(PerlInterpreter*, XSINIT_t, int, char**, char**);
Karsten Hopp 374676
  static void* (*Perl_get_context)(void);
Karsten Hopp 374676
  static void (*Perl_croak)(pTHX_ const char*, ...);
Karsten Hopp 374676
+ #if (PERL_REVISION == 5) && (PERL_VERSION >= 10)
Karsten Hopp 374676
+ static void (*Perl_croak_xs_usage)(pTHX_ const CV *const, const char *const params);
Karsten Hopp 374676
+ #endif
Karsten Hopp 374676
  static void (*Perl_croak_nocontext)(const char*, ...);
Karsten Hopp 374676
  static I32 (*Perl_dowantarray)(pTHX);
Karsten Hopp 374676
  static void (*Perl_free_tmps)(pTHX);
Karsten Hopp 374676
***************
Karsten Hopp 374676
*** 306,311 ****
Karsten Hopp 374676
--- 312,320 ----
Karsten Hopp 374676
      {"perl_parse", (PERL_PROC*)&perl_parse},
Karsten Hopp 374676
      {"Perl_get_context", (PERL_PROC*)&Perl_get_context},
Karsten Hopp 374676
      {"Perl_croak", (PERL_PROC*)&Perl_croak},
Karsten Hopp 374676
+ #if (PERL_REVISION == 5) && (PERL_VERSION >= 10)
Karsten Hopp 374676
+     {"Perl_croak_xs_usage", (PERL_PROC*)&Perl_croak_xs_usage},
Karsten Hopp 374676
+ #endif
Karsten Hopp 374676
      {"Perl_croak_nocontext", (PERL_PROC*)&Perl_croak_nocontext},
Karsten Hopp 374676
      {"Perl_dowantarray", (PERL_PROC*)&Perl_dowantarray},
Karsten Hopp 374676
      {"Perl_free_tmps", (PERL_PROC*)&Perl_free_tmps},
Karsten Hopp 374676
*** ../vim-7.2.362/src/version.c	2010-02-17 16:31:27.000000000 +0100
Karsten Hopp 374676
--- src/version.c	2010-02-17 16:35:39.000000000 +0100
Karsten Hopp 374676
***************
Karsten Hopp 374676
*** 683,684 ****
Karsten Hopp 374676
--- 683,686 ----
Karsten Hopp 374676
  {   /* Add new patch number below this line */
Karsten Hopp 374676
+ /**/
Karsten Hopp 374676
+     363,
Karsten Hopp 374676
  /**/
Karsten Hopp 374676
Karsten Hopp 374676
-- 
Karsten Hopp 374676
If you're sending someone Styrofoam, what do you pack it in?
Karsten Hopp 374676
Karsten Hopp 374676
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 374676
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 374676
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 374676
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///