Karsten Hopp 440ee9
To: vim_dev@googlegroups.com
Karsten Hopp 440ee9
Subject: Patch 7.3.297
Karsten Hopp 440ee9
Fcc: outbox
Karsten Hopp 440ee9
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 440ee9
Mime-Version: 1.0
Karsten Hopp 440ee9
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 440ee9
Content-Transfer-Encoding: 8bit
Karsten Hopp 440ee9
------------
Karsten Hopp 440ee9
Karsten Hopp 440ee9
Patch 7.3.297
Karsten Hopp 440ee9
Problem:    Can't load Perl 5.14 dynamically.
Karsten Hopp 440ee9
Solution:   Add code in #ifdefs. (Charles Cooper)
Karsten Hopp 440ee9
Files:	    if_perl.xs
Karsten Hopp 440ee9
Karsten Hopp 440ee9
Karsten Hopp 440ee9
*** ../vim-7.3.296/src/if_perl.xs	2011-07-27 14:15:41.000000000 +0200
Karsten Hopp 440ee9
--- src/if_perl.xs	2011-09-07 18:47:07.000000000 +0200
Karsten Hopp 440ee9
***************
Karsten Hopp 440ee9
*** 147,153 ****
Karsten Hopp 440ee9
--- 147,158 ----
Karsten Hopp 440ee9
  # define Perl_save_int dll_Perl_save_int
Karsten Hopp 440ee9
  # define Perl_stack_grow dll_Perl_stack_grow
Karsten Hopp 440ee9
  # define Perl_set_context dll_Perl_set_context
Karsten Hopp 440ee9
+ # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 440ee9
+ # define Perl_sv_2bool_flags dll_Perl_sv_2bool_flags
Karsten Hopp 440ee9
+ # define Perl_xs_apiversion_bootcheck dll_Perl_xs_apiversion_bootcheck 
Karsten Hopp 440ee9
+ # else
Karsten Hopp 440ee9
  # define Perl_sv_2bool dll_Perl_sv_2bool
Karsten Hopp 440ee9
+ # endif
Karsten Hopp 440ee9
  # define Perl_sv_2iv dll_Perl_sv_2iv
Karsten Hopp 440ee9
  # define Perl_sv_2mortal dll_Perl_sv_2mortal
Karsten Hopp 440ee9
  # if (PERL_REVISION == 5) && (PERL_VERSION >= 8)
Karsten Hopp 440ee9
***************
Karsten Hopp 440ee9
*** 252,258 ****
Karsten Hopp 440ee9
--- 257,268 ----
Karsten Hopp 440ee9
  static void (*Perl_save_int)(pTHX_ int*);
Karsten Hopp 440ee9
  static SV** (*Perl_stack_grow)(pTHX_ SV**, SV**p, int);
Karsten Hopp 440ee9
  static SV** (*Perl_set_context)(void*);
Karsten Hopp 440ee9
+ #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 440ee9
+ static bool (*Perl_sv_2bool_flags)(pTHX_ SV*, I32);
Karsten Hopp 440ee9
+ static void (*Perl_xs_apiversion_bootcheck)(pTHX_ SV *module, const char *api_p, STRLEN api_len);
Karsten Hopp 440ee9
+ #else
Karsten Hopp 440ee9
  static bool (*Perl_sv_2bool)(pTHX_ SV*);
Karsten Hopp 440ee9
+ #endif
Karsten Hopp 440ee9
  static IV (*Perl_sv_2iv)(pTHX_ SV*);
Karsten Hopp 440ee9
  static SV* (*Perl_sv_2mortal)(pTHX_ SV*);
Karsten Hopp 440ee9
  #if (PERL_REVISION == 5) && (PERL_VERSION >= 8)
Karsten Hopp 440ee9
***************
Karsten Hopp 440ee9
*** 360,366 ****
Karsten Hopp 440ee9
--- 370,381 ----
Karsten Hopp 440ee9
      {"Perl_save_int", (PERL_PROC*)&Perl_save_int},
Karsten Hopp 440ee9
      {"Perl_stack_grow", (PERL_PROC*)&Perl_stack_grow},
Karsten Hopp 440ee9
      {"Perl_set_context", (PERL_PROC*)&Perl_set_context},
Karsten Hopp 440ee9
+ #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 440ee9
+     {"Perl_sv_2bool_flags", (PERL_PROC*)&Perl_sv_2bool_flags},
Karsten Hopp 440ee9
+     {"Perl_xs_apiversion_bootcheck",(PERL_PROC*)&Perl_xs_apiversion_bootcheck},
Karsten Hopp 440ee9
+ #else
Karsten Hopp 440ee9
      {"Perl_sv_2bool", (PERL_PROC*)&Perl_sv_2bool},
Karsten Hopp 440ee9
+ #endif
Karsten Hopp 440ee9
      {"Perl_sv_2iv", (PERL_PROC*)&Perl_sv_2iv},
Karsten Hopp 440ee9
      {"Perl_sv_2mortal", (PERL_PROC*)&Perl_sv_2mortal},
Karsten Hopp 440ee9
  #if (PERL_REVISION == 5) && (PERL_VERSION >= 8)
Karsten Hopp 440ee9
***************
Karsten Hopp 440ee9
*** 407,412 ****
Karsten Hopp 440ee9
--- 422,430 ----
Karsten Hopp 440ee9
      {"Perl_sv_free2", (PERL_PROC*)&Perl_sv_free2},
Karsten Hopp 440ee9
      {"Perl_sys_init", (PERL_PROC*)&Perl_sys_init},
Karsten Hopp 440ee9
      {"Perl_sys_term", (PERL_PROC*)&Perl_sys_term},
Karsten Hopp 440ee9
+     {"Perl_call_list", (PERL_PROC*)&Perl_call_list},
Karsten Hopp 440ee9
+ # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 440ee9
+ # else
Karsten Hopp 440ee9
      {"Perl_ISv_ptr", (PERL_PROC*)&Perl_ISv_ptr},
Karsten Hopp 440ee9
      {"Perl_Istack_max_ptr", (PERL_PROC*)&Perl_Istack_max_ptr},
Karsten Hopp 440ee9
      {"Perl_Istack_base_ptr", (PERL_PROC*)&Perl_Istack_base_ptr},
Karsten Hopp 440ee9
***************
Karsten Hopp 440ee9
*** 418,432 ****
Karsten Hopp 440ee9
      {"Perl_Imarkstack_max_ptr", (PERL_PROC*)&Perl_Imarkstack_max_ptr},
Karsten Hopp 440ee9
      {"Perl_Istack_sp_ptr", (PERL_PROC*)&Perl_Istack_sp_ptr},
Karsten Hopp 440ee9
      {"Perl_Iop_ptr", (PERL_PROC*)&Perl_Iop_ptr},
Karsten Hopp 440ee9
-     {"Perl_call_list", (PERL_PROC*)&Perl_call_list},
Karsten Hopp 440ee9
      {"Perl_Iscopestack_ix_ptr", (PERL_PROC*)&Perl_Iscopestack_ix_ptr},
Karsten Hopp 440ee9
      {"Perl_Iunitcheckav_ptr", (PERL_PROC*)&Perl_Iunitcheckav_ptr},
Karsten Hopp 440ee9
  #endif
Karsten Hopp 440ee9
      {"Perl_Idefgv_ptr", (PERL_PROC*)&Perl_Idefgv_ptr},
Karsten Hopp 440ee9
      {"Perl_Ierrgv_ptr", (PERL_PROC*)&Perl_Ierrgv_ptr},
Karsten Hopp 440ee9
      {"Perl_Isv_yes_ptr", (PERL_PROC*)&Perl_Isv_yes_ptr},
Karsten Hopp 440ee9
-     {"boot_DynaLoader", (PERL_PROC*)&boot_DynaLoader},
Karsten Hopp 440ee9
      {"Perl_Gthr_key_ptr", (PERL_PROC*)&Perl_Gthr_key_ptr},
Karsten Hopp 440ee9
      {"", NULL},
Karsten Hopp 440ee9
  };
Karsten Hopp 440ee9
  
Karsten Hopp 440ee9
--- 436,453 ----
Karsten Hopp 440ee9
      {"Perl_Imarkstack_max_ptr", (PERL_PROC*)&Perl_Imarkstack_max_ptr},
Karsten Hopp 440ee9
      {"Perl_Istack_sp_ptr", (PERL_PROC*)&Perl_Istack_sp_ptr},
Karsten Hopp 440ee9
      {"Perl_Iop_ptr", (PERL_PROC*)&Perl_Iop_ptr},
Karsten Hopp 440ee9
      {"Perl_Iscopestack_ix_ptr", (PERL_PROC*)&Perl_Iscopestack_ix_ptr},
Karsten Hopp 440ee9
      {"Perl_Iunitcheckav_ptr", (PERL_PROC*)&Perl_Iunitcheckav_ptr},
Karsten Hopp 440ee9
+ # endif
Karsten Hopp 440ee9
  #endif
Karsten Hopp 440ee9
+ #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 440ee9
+ #else
Karsten Hopp 440ee9
      {"Perl_Idefgv_ptr", (PERL_PROC*)&Perl_Idefgv_ptr},
Karsten Hopp 440ee9
      {"Perl_Ierrgv_ptr", (PERL_PROC*)&Perl_Ierrgv_ptr},
Karsten Hopp 440ee9
      {"Perl_Isv_yes_ptr", (PERL_PROC*)&Perl_Isv_yes_ptr},
Karsten Hopp 440ee9
      {"Perl_Gthr_key_ptr", (PERL_PROC*)&Perl_Gthr_key_ptr},
Karsten Hopp 440ee9
+ #endif
Karsten Hopp 440ee9
+     {"boot_DynaLoader", (PERL_PROC*)&boot_DynaLoader},
Karsten Hopp 440ee9
      {"", NULL},
Karsten Hopp 440ee9
  };
Karsten Hopp 440ee9
  
Karsten Hopp 440ee9
*** ../vim-7.3.296/src/version.c	2011-09-07 15:04:26.000000000 +0200
Karsten Hopp 440ee9
--- src/version.c	2011-09-07 18:45:28.000000000 +0200
Karsten Hopp 440ee9
***************
Karsten Hopp 440ee9
*** 711,712 ****
Karsten Hopp 440ee9
--- 711,714 ----
Karsten Hopp 440ee9
  {   /* Add new patch number below this line */
Karsten Hopp 440ee9
+ /**/
Karsten Hopp 440ee9
+     297,
Karsten Hopp 440ee9
  /**/
Karsten Hopp 440ee9
Karsten Hopp 440ee9
-- 
Karsten Hopp 440ee9
At some point in the project somebody will start whining about the need to
Karsten Hopp 440ee9
determine the project "requirements".  This involves interviewing people who
Karsten Hopp 440ee9
don't know what they want but, curiously, know exactly when they need it.
Karsten Hopp 440ee9
				(Scott Adams - The Dilbert principle)
Karsten Hopp 440ee9
Karsten Hopp 440ee9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 440ee9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 440ee9
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 440ee9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///