Karsten Hopp 0b5d9f
To: vim_dev@googlegroups.com
Karsten Hopp 0b5d9f
Subject: Patch 7.3.668
Karsten Hopp 0b5d9f
Fcc: outbox
Karsten Hopp 0b5d9f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 0b5d9f
Mime-Version: 1.0
Karsten Hopp 0b5d9f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 0b5d9f
Content-Transfer-Encoding: 8bit
Karsten Hopp 0b5d9f
------------
Karsten Hopp 0b5d9f
Karsten Hopp 0b5d9f
Patch 7.3.668
Karsten Hopp 0b5d9f
Problem:    Building with Perl loaded dynamically  still uses static library.
Karsten Hopp 0b5d9f
Solution:   Adjust use of PL_thr_key. (Ken Takata)
Karsten Hopp 0b5d9f
Files:	    src/if_perl.xs
Karsten Hopp 0b5d9f
Karsten Hopp 0b5d9f
Karsten Hopp 0b5d9f
*** ../vim-7.3.667/src/if_perl.xs	2012-09-21 12:42:38.000000000 +0200
Karsten Hopp 0b5d9f
--- src/if_perl.xs	2012-09-21 12:47:55.000000000 +0200
Karsten Hopp 0b5d9f
***************
Karsten Hopp 0b5d9f
*** 155,161 ****
Karsten Hopp 0b5d9f
  # define Perl_set_context dll_Perl_set_context
Karsten Hopp 0b5d9f
  # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 0b5d9f
  # define Perl_sv_2bool_flags dll_Perl_sv_2bool_flags
Karsten Hopp 0b5d9f
! # define Perl_xs_apiversion_bootcheck dll_Perl_xs_apiversion_bootcheck 
Karsten Hopp 0b5d9f
  # else
Karsten Hopp 0b5d9f
  # define Perl_sv_2bool dll_Perl_sv_2bool
Karsten Hopp 0b5d9f
  # endif
Karsten Hopp 0b5d9f
--- 155,161 ----
Karsten Hopp 0b5d9f
  # define Perl_set_context dll_Perl_set_context
Karsten Hopp 0b5d9f
  # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 0b5d9f
  # define Perl_sv_2bool_flags dll_Perl_sv_2bool_flags
Karsten Hopp 0b5d9f
! # define Perl_xs_apiversion_bootcheck dll_Perl_xs_apiversion_bootcheck
Karsten Hopp 0b5d9f
  # else
Karsten Hopp 0b5d9f
  # define Perl_sv_2bool dll_Perl_sv_2bool
Karsten Hopp 0b5d9f
  # endif
Karsten Hopp 0b5d9f
***************
Karsten Hopp 0b5d9f
*** 225,230 ****
Karsten Hopp 0b5d9f
--- 225,233 ----
Karsten Hopp 0b5d9f
  # define Perl_call_list dll_Perl_call_list
Karsten Hopp 0b5d9f
  # define Perl_Iscopestack_ix_ptr dll_Perl_Iscopestack_ix_ptr
Karsten Hopp 0b5d9f
  # define Perl_Iunitcheckav_ptr dll_Perl_Iunitcheckav_ptr
Karsten Hopp 0b5d9f
+ # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 0b5d9f
+ #  define PL_thr_key *dll_PL_thr_key
Karsten Hopp 0b5d9f
+ # endif
Karsten Hopp 0b5d9f
  
Karsten Hopp 0b5d9f
  /*
Karsten Hopp 0b5d9f
   * Declare HANDLE for perl.dll and function pointers.
Karsten Hopp 0b5d9f
***************
Karsten Hopp 0b5d9f
*** 335,340 ****
Karsten Hopp 0b5d9f
--- 338,344 ----
Karsten Hopp 0b5d9f
  #endif
Karsten Hopp 0b5d9f
  
Karsten Hopp 0b5d9f
  #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 0b5d9f
+ static perl_key* dll_PL_thr_key;
Karsten Hopp 0b5d9f
  #else
Karsten Hopp 0b5d9f
  static GV** (*Perl_Idefgv_ptr)(register PerlInterpreter*);
Karsten Hopp 0b5d9f
  static GV** (*Perl_Ierrgv_ptr)(register PerlInterpreter*);
Karsten Hopp 0b5d9f
***************
Karsten Hopp 0b5d9f
*** 453,458 ****
Karsten Hopp 0b5d9f
--- 457,463 ----
Karsten Hopp 0b5d9f
  # endif
Karsten Hopp 0b5d9f
  #endif
Karsten Hopp 0b5d9f
  #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
Karsten Hopp 0b5d9f
+     {"PL_thr_key", (PERL_PROC*)&dll_PL_thr_key},
Karsten Hopp 0b5d9f
  #else
Karsten Hopp 0b5d9f
      {"Perl_Idefgv_ptr", (PERL_PROC*)&Perl_Idefgv_ptr},
Karsten Hopp 0b5d9f
      {"Perl_Ierrgv_ptr", (PERL_PROC*)&Perl_Ierrgv_ptr},
Karsten Hopp 0b5d9f
*** ../vim-7.3.667/src/version.c	2012-09-21 12:42:38.000000000 +0200
Karsten Hopp 0b5d9f
--- src/version.c	2012-09-21 12:49:06.000000000 +0200
Karsten Hopp 0b5d9f
***************
Karsten Hopp 0b5d9f
*** 721,722 ****
Karsten Hopp 0b5d9f
--- 721,724 ----
Karsten Hopp 0b5d9f
  {   /* Add new patch number below this line */
Karsten Hopp 0b5d9f
+ /**/
Karsten Hopp 0b5d9f
+     668,
Karsten Hopp 0b5d9f
  /**/
Karsten Hopp 0b5d9f
Karsten Hopp 0b5d9f
-- 
Karsten Hopp 0b5d9f
Michael: There is no such thing as a dump question.
Karsten Hopp 0b5d9f
Bernard: Sure there is.  For example "what is a core dump?"
Karsten Hopp 0b5d9f
Karsten Hopp 0b5d9f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 0b5d9f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 0b5d9f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 0b5d9f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///