jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.198
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.198
3ef2ca
Problem:    Can't build Vim with Perl when -Dusethreads is not specified for
3ef2ca
	    building Perl, and building Vim with --enable-perlinterp=dynamic.
3ef2ca
Solution:   Adjust #ifdefs. (Yasuhiro Matsumoto)
3ef2ca
Files:	    src/if_perl.xs
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.197/src/if_perl.xs	2013-12-14 11:50:28.000000000 +0100
3ef2ca
--- src/if_perl.xs	2014-03-12 17:05:07.832804995 +0100
3ef2ca
***************
3ef2ca
*** 138,143 ****
3ef2ca
--- 138,145 ----
3ef2ca
  #endif
3ef2ca
  typedef int XSINIT_t;
3ef2ca
  typedef int XSUBADDR_t;
3ef2ca
+ #endif
3ef2ca
+ #ifndef USE_ITHREADS
3ef2ca
  typedef int perl_key;
3ef2ca
  #endif
3ef2ca
  
3ef2ca
***************
3ef2ca
*** 264,270 ****
3ef2ca
  # define Perl_Iscopestack_ix_ptr dll_Perl_Iscopestack_ix_ptr
3ef2ca
  # define Perl_Iunitcheckav_ptr dll_Perl_Iunitcheckav_ptr
3ef2ca
  # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
3ef2ca
! #  define PL_thr_key *dll_PL_thr_key
3ef2ca
  # endif
3ef2ca
  
3ef2ca
  /*
3ef2ca
--- 266,274 ----
3ef2ca
  # define Perl_Iscopestack_ix_ptr dll_Perl_Iscopestack_ix_ptr
3ef2ca
  # define Perl_Iunitcheckav_ptr dll_Perl_Iunitcheckav_ptr
3ef2ca
  # if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
3ef2ca
! #  ifdef USE_ITHREADS
3ef2ca
! #   define PL_thr_key *dll_PL_thr_key
3ef2ca
! #  endif
3ef2ca
  # endif
3ef2ca
  
3ef2ca
  /*
3ef2ca
***************
3ef2ca
*** 386,392 ****
3ef2ca
--- 390,398 ----
3ef2ca
  #endif
3ef2ca
  
3ef2ca
  #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
3ef2ca
+ # ifdef USE_ITHREADS
3ef2ca
  static perl_key* dll_PL_thr_key;
3ef2ca
+ # endif
3ef2ca
  #else
3ef2ca
  static GV** (*Perl_Idefgv_ptr)(register PerlInterpreter*);
3ef2ca
  static GV** (*Perl_Ierrgv_ptr)(register PerlInterpreter*);
3ef2ca
***************
3ef2ca
*** 413,419 ****
3ef2ca
--- 419,427 ----
3ef2ca
  #ifdef PERL5101_OR_LATER
3ef2ca
      {"Perl_croak_xs_usage", (PERL_PROC*)&Perl_croak_xs_usage},
3ef2ca
  #endif
3ef2ca
+ #ifdef PERL_IMPLICIT_CONTEXT
3ef2ca
      {"Perl_croak_nocontext", (PERL_PROC*)&Perl_croak_nocontext},
3ef2ca
+ #endif
3ef2ca
      {"Perl_dowantarray", (PERL_PROC*)&Perl_dowantarray},
3ef2ca
      {"Perl_free_tmps", (PERL_PROC*)&Perl_free_tmps},
3ef2ca
      {"Perl_gv_stashpv", (PERL_PROC*)&Perl_gv_stashpv},
3ef2ca
***************
3ef2ca
*** 505,511 ****
3ef2ca
--- 513,521 ----
3ef2ca
  # endif
3ef2ca
  #endif
3ef2ca
  #if (PERL_REVISION == 5) && (PERL_VERSION >= 14)
3ef2ca
+ #  ifdef USE_ITHREADS
3ef2ca
      {"PL_thr_key", (PERL_PROC*)&dll_PL_thr_key},
3ef2ca
+ #  endif
3ef2ca
  #else
3ef2ca
      {"Perl_Idefgv_ptr", (PERL_PROC*)&Perl_Idefgv_ptr},
3ef2ca
      {"Perl_Ierrgv_ptr", (PERL_PROC*)&Perl_Ierrgv_ptr},
3ef2ca
*** ../vim-7.4.197/src/version.c	2014-03-12 16:51:35.060792541 +0100
3ef2ca
--- src/version.c	2014-03-12 17:06:27.660806218 +0100
3ef2ca
***************
3ef2ca
*** 740,741 ****
3ef2ca
--- 740,743 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     198,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Dogs must have a permit signed by the mayor in order to congregate in groups
3ef2ca
of three or more on private property.
3ef2ca
		[real standing law in Oklahoma, United States of America]
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///