Karsten Hopp d766ee
To: vim_dev@googlegroups.com
Karsten Hopp d766ee
Subject: Patch 7.3.731
Karsten Hopp d766ee
Fcc: outbox
Karsten Hopp d766ee
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d766ee
Mime-Version: 1.0
Karsten Hopp d766ee
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d766ee
Content-Transfer-Encoding: 8bit
Karsten Hopp d766ee
------------
Karsten Hopp d766ee
Karsten Hopp d766ee
Patch 7.3.731
Karsten Hopp d766ee
Problem:    Py3Init_vim() is exported uneccessarily.
Karsten Hopp d766ee
Solution:   Make it static. (Ken Takata)
Karsten Hopp d766ee
Files:	    src/if_python3.c
Karsten Hopp d766ee
Karsten Hopp d766ee
Karsten Hopp d766ee
*** ../vim-7.3.730/src/if_python3.c	2012-11-20 11:02:49.000000000 +0100
Karsten Hopp d766ee
--- src/if_python3.c	2012-11-28 15:32:00.000000000 +0100
Karsten Hopp d766ee
***************
Karsten Hopp d766ee
*** 657,663 ****
Karsten Hopp d766ee
  static PyObject *globals;
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  static int PythonIO_Init(void);
Karsten Hopp d766ee
! PyMODINIT_FUNC Py3Init_vim(void);
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  /******************************************************
Karsten Hopp d766ee
   * 1. Python interpreter main program.
Karsten Hopp d766ee
--- 657,663 ----
Karsten Hopp d766ee
  static PyObject *globals;
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  static int PythonIO_Init(void);
Karsten Hopp d766ee
! static PyObject *Py3Init_vim(void);
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  /******************************************************
Karsten Hopp d766ee
   * 1. Python interpreter main program.
Karsten Hopp d766ee
***************
Karsten Hopp d766ee
*** 1773,1780 ****
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  static struct PyModuleDef vimmodule;
Karsten Hopp d766ee
  
Karsten Hopp d766ee
! #ifndef PROTO
Karsten Hopp d766ee
! PyMODINIT_FUNC Py3Init_vim(void)
Karsten Hopp d766ee
  {
Karsten Hopp d766ee
      PyObject *mod;
Karsten Hopp d766ee
      PyObject *tmp;
Karsten Hopp d766ee
--- 1773,1780 ----
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  static struct PyModuleDef vimmodule;
Karsten Hopp d766ee
  
Karsten Hopp d766ee
!     static PyObject *
Karsten Hopp d766ee
! Py3Init_vim(void)
Karsten Hopp d766ee
  {
Karsten Hopp d766ee
      PyObject *mod;
Karsten Hopp d766ee
      PyObject *tmp;
Karsten Hopp d766ee
***************
Karsten Hopp d766ee
*** 1824,1830 ****
Karsten Hopp d766ee
  
Karsten Hopp d766ee
      return mod;
Karsten Hopp d766ee
  }
Karsten Hopp d766ee
- #endif
Karsten Hopp d766ee
  
Karsten Hopp d766ee
  /*************************************************************************
Karsten Hopp d766ee
   * 4. Utility functions for handling the interface between Vim and Python.
Karsten Hopp d766ee
--- 1824,1829 ----
Karsten Hopp d766ee
*** ../vim-7.3.730/src/version.c	2012-11-28 15:25:28.000000000 +0100
Karsten Hopp d766ee
--- src/version.c	2012-11-28 15:30:47.000000000 +0100
Karsten Hopp d766ee
***************
Karsten Hopp d766ee
*** 727,728 ****
Karsten Hopp d766ee
--- 727,730 ----
Karsten Hopp d766ee
  {   /* Add new patch number below this line */
Karsten Hopp d766ee
+ /**/
Karsten Hopp d766ee
+     731,
Karsten Hopp d766ee
  /**/
Karsten Hopp d766ee
Karsten Hopp d766ee
-- 
Karsten Hopp d766ee
hundred-and-one symptoms of being an internet addict:
Karsten Hopp d766ee
90. Instead of calling you to dinner, your spouse sends e-mail.
Karsten Hopp d766ee
Karsten Hopp d766ee
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d766ee
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d766ee
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d766ee
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///