home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.1299 < prev    next >
Encoding:
Internet Message Format  |  2013-07-02  |  14.6 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.1299
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.1299
  11. Problem:    Errors when doing "make proto".  Didn't do "make depend" for a
  12.         while.
  13. Solution:   Add #ifdefs.  Update dependencies.  Update proto files.
  14. Files:        src/if_python3.c, src/os_win32.c, src/Makefile,
  15.         src/proto/ex_docmd.pro, src/proto/if_python.pro,
  16.         src/proto/if_python3.pro, src/proto/gui_w16.pro,
  17.         src/proto/gui_w32.pro, src/proto/os_win32.pro
  18.  
  19.  
  20. *** ../vim-7.3.1298/src/if_python3.c    2013-07-01 22:02:58.000000000 +0200
  21. --- src/if_python3.c    2013-07-03 18:27:35.000000000 +0200
  22. ***************
  23. *** 83,92 ****
  24.   #define PY_USE_CAPSULE
  25.   
  26.   #define PyInt Py_ssize_t
  27. ! #define PyString_Check(obj) PyUnicode_Check(obj)
  28.   #define PyString_FromString(repr) PyUnicode_FromString(repr)
  29.   #define PyString_FromFormat PyUnicode_FromFormat
  30. ! #define PyInt_Check(obj) PyLong_Check(obj)
  31.   #define PyInt_FromLong(i) PyLong_FromLong(i)
  32.   #define PyInt_AsLong(obj) PyLong_AsLong(obj)
  33.   #define Py_ssize_t_fmt "n"
  34. --- 83,96 ----
  35.   #define PY_USE_CAPSULE
  36.   
  37.   #define PyInt Py_ssize_t
  38. ! #ifndef PyString_Check
  39. ! # define PyString_Check(obj) PyUnicode_Check(obj)
  40. ! #endif
  41.   #define PyString_FromString(repr) PyUnicode_FromString(repr)
  42.   #define PyString_FromFormat PyUnicode_FromFormat
  43. ! #ifndef PyInt_Check
  44. ! # define PyInt_Check(obj) PyLong_Check(obj)
  45. ! #endif
  46.   #define PyInt_FromLong(i) PyLong_FromLong(i)
  47.   #define PyInt_AsLong(obj) PyLong_AsLong(obj)
  48.   #define Py_ssize_t_fmt "n"
  49. ***************
  50. *** 156,162 ****
  51.   # define PyDict_GetItemString py3_PyDict_GetItemString
  52.   # define PyDict_Next py3_PyDict_Next
  53.   # define PyMapping_Check py3_PyMapping_Check
  54. ! # define PyMapping_Keys py3_PyMapping_Keys
  55.   # define PyIter_Next py3_PyIter_Next
  56.   # define PyObject_GetIter py3_PyObject_GetIter
  57.   # define PyObject_Repr py3_PyObject_Repr
  58. --- 160,168 ----
  59.   # define PyDict_GetItemString py3_PyDict_GetItemString
  60.   # define PyDict_Next py3_PyDict_Next
  61.   # define PyMapping_Check py3_PyMapping_Check
  62. ! # ifndef PyMapping_Keys
  63. ! #  define PyMapping_Keys py3_PyMapping_Keys
  64. ! # endif
  65.   # define PyIter_Next py3_PyIter_Next
  66.   # define PyObject_GetIter py3_PyObject_GetIter
  67.   # define PyObject_Repr py3_PyObject_Repr
  68. ***************
  69. *** 202,208 ****
  70.   # define PyUnicode_AsEncodedString py3_PyUnicode_AsEncodedString
  71.   # undef PyBytes_AsString
  72.   # define PyBytes_AsString py3_PyBytes_AsString
  73. ! # define PyBytes_AsStringAndSize py3_PyBytes_AsStringAndSize
  74.   # undef PyBytes_FromString
  75.   # define PyBytes_FromString py3_PyBytes_FromString
  76.   # define PyFloat_FromDouble py3_PyFloat_FromDouble
  77. --- 208,216 ----
  78.   # define PyUnicode_AsEncodedString py3_PyUnicode_AsEncodedString
  79.   # undef PyBytes_AsString
  80.   # define PyBytes_AsString py3_PyBytes_AsString
  81. ! # ifndef PyBytes_AsStringAndSize
  82. ! #  define PyBytes_AsStringAndSize py3_PyBytes_AsStringAndSize
  83. ! # endif
  84.   # undef PyBytes_FromString
  85.   # define PyBytes_FromString py3_PyBytes_FromString
  86.   # define PyFloat_FromDouble py3_PyFloat_FromDouble
  87. *** ../vim-7.3.1298/src/os_win32.c    2013-06-29 15:40:01.000000000 +0200
  88. --- src/os_win32.c    2013-07-03 18:29:08.000000000 +0200
  89. ***************
  90. *** 142,147 ****
  91. --- 142,150 ----
  92.   typedef int WCHAR;
  93.   typedef void VOID;
  94.   typedef int BY_HANDLE_FILE_INFORMATION;
  95. + typedef int SE_OBJECT_TYPE;
  96. + typedef int PSNSECINFO;
  97. + typedef int PSNSECINFOW;
  98.   #endif
  99.   
  100.   #ifndef FEAT_GUI_W32
  101. *** ../vim-7.3.1298/src/Makefile    2013-06-19 20:11:44.000000000 +0200
  102. --- src/Makefile    2013-07-03 18:38:50.000000000 +0200
  103. ***************
  104. *** 373,378 ****
  105. --- 373,383 ----
  106.   #CONF_OPT_DARWIN = --with-mac-arch=ppc
  107.   #CONF_OPT_DARWIN = --with-mac-arch=both
  108.   
  109. + # Uncomment the next line to fail if one of the requested language interfaces
  110. + # cannot be configured.  Without this Vim will be build anyway, without
  111. + # the failing interfaces.
  112. + #CONF_OPT_FAIL = --enable-fail-if-missing
  113.   # LUA
  114.   # Uncomment one of these when you want to include the Lua interface.
  115.   # First one is for static linking, second one for dynamic loading.
  116. ***************
  117. *** 389,399 ****
  118.   #CONF_OPT_PLTHOME  = --with-plthome=/usr/local/drscheme
  119.   #CONF_OPT_PLTHOME  = --with-plthome=/home/me/mz
  120.   
  121. - # Uncomment the next line to fail if one of the requested language interfaces
  122. - # cannot be configured.  Without this Vim will be build anyway, without
  123. - # the failing interfaces.
  124. - #CONF_OPT_FAIL = --enable-fail-if-missing
  125.   # PERL
  126.   # Uncomment one of these when you want to include the Perl interface.
  127.   # First one is for static linking, second one for dynamic loading.
  128. --- 394,399 ----
  129. ***************
  130. *** 410,415 ****
  131. --- 410,416 ----
  132.   
  133.   # PYTHON
  134.   # Uncomment this when you want to include the Python interface.
  135. + # Requires small features or better, fails with tiny features.
  136.   # NOTE: This may cause threading to be enabled, which has side effects (such
  137.   # as using different libraries and debugging becomes more difficult).
  138.   # NOTE: Using this together with Perl may cause a crash in initialization.
  139. ***************
  140. *** 2943,2949 ****
  141.   objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
  142.    ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  143.    gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  144. !  arabic.h os_unixx.h
  145.   objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
  146.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  147.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  148. --- 2944,2950 ----
  149.   objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
  150.    ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  151.    gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  152. !  arabic.h if_mzsch.h os_unixx.h
  153.   objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
  154.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  155.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  156. ***************
  157. *** 2956,2965 ****
  158.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  159.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  160.    globals.h farsi.h arabic.h
  161. ! objects/regexp.o: regexp.c regexp_nfa.c vim.h auto/config.h feature.h os_unix.h \
  162. !  auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  163. !  regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  164. !  globals.h farsi.h arabic.h
  165.   objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
  166.    ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  167.    gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  168. --- 2957,2966 ----
  169.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  170.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  171.    globals.h farsi.h arabic.h
  172. ! objects/regexp.o: regexp.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
  173. !  ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  174. !  gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  175. !  arabic.h regexp_nfa.c
  176.   objects/screen.o: screen.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
  177.    ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  178.    gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  179. ***************
  180. *** 2998,3007 ****
  181.    ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  182.    gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  183.    arabic.h version.h
  184. - objects/winclip.o: winclip.c vimio.h vim.h auto/config.h feature.h os_unix.h \
  185. -  auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  186. -  regexp.h gui.h ex_cmds.h proto.h globals.h farsi.h arabic.h \
  187. -  proto/winclip.pro
  188.   objects/window.o: window.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
  189.    ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
  190.    gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h globals.h farsi.h \
  191. --- 2999,3004 ----
  192. ***************
  193. *** 3101,3107 ****
  194.   objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
  195.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  196.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  197. !  globals.h farsi.h arabic.h if_mzsch.h
  198.   objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
  199.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  200.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  201. --- 3098,3104 ----
  202.   objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
  203.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  204.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  205. !  globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c
  206.   objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
  207.    auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
  208.    regexp.h gui.h gui_beval.h proto/gui_beval.pro ex_cmds.h proto.h \
  209. *** ../vim-7.3.1298/src/proto/ex_docmd.pro    2013-06-02 18:20:12.000000000 +0200
  210. --- src/proto/ex_docmd.pro    2013-07-03 18:30:13.000000000 +0200
  211. ***************
  212. *** 40,45 ****
  213. --- 40,46 ----
  214.   void tabpage_new __ARGS((void));
  215.   void do_exedit __ARGS((exarg_T *eap, win_T *old_curwin));
  216.   void free_cd_dir __ARGS((void));
  217. + void post_chdir __ARGS((int local));
  218.   void ex_cd __ARGS((exarg_T *eap));
  219.   void do_sleep __ARGS((long msec));
  220.   int vim_mkdir_emsg __ARGS((char_u *name, int prot));
  221. ***************
  222. *** 53,57 ****
  223.   int put_line __ARGS((FILE *fd, char *s));
  224.   void dialog_msg __ARGS((char_u *buff, char *format, char_u *fname));
  225.   char_u *get_behave_arg __ARGS((expand_T *xp, int idx));
  226. - void post_chdir __ARGS((int local));
  227.   /* vim: set ft=c : */
  228. --- 54,57 ----
  229. *** ../vim-7.3.1298/src/proto/if_python.pro    2013-05-17 16:39:59.000000000 +0200
  230. --- src/proto/if_python.pro    2013-07-03 18:30:18.000000000 +0200
  231. ***************
  232. *** 3,10 ****
  233.   void python_end __ARGS((void));
  234.   int python_loaded __ARGS((void));
  235.   void ex_python __ARGS((exarg_T *eap));
  236. - void ex_pydo __ARGS((exarg_T *eap));
  237.   void ex_pyfile __ARGS((exarg_T *eap));
  238.   void python_buffer_free __ARGS((buf_T *buf));
  239.   void python_window_free __ARGS((win_T *win));
  240.   void python_tabpage_free __ARGS((tabpage_T *tab));
  241. --- 3,10 ----
  242.   void python_end __ARGS((void));
  243.   int python_loaded __ARGS((void));
  244.   void ex_python __ARGS((exarg_T *eap));
  245.   void ex_pyfile __ARGS((exarg_T *eap));
  246. + void ex_pydo __ARGS((exarg_T *eap));
  247.   void python_buffer_free __ARGS((buf_T *buf));
  248.   void python_window_free __ARGS((win_T *win));
  249.   void python_tabpage_free __ARGS((tabpage_T *tab));
  250. *** ../vim-7.3.1298/src/proto/if_python3.pro    2013-05-15 18:28:08.000000000 +0200
  251. --- src/proto/if_python3.pro    2013-07-03 18:30:19.000000000 +0200
  252. ***************
  253. *** 3,10 ****
  254.   void python3_end __ARGS((void));
  255.   int python3_loaded __ARGS((void));
  256.   void ex_py3 __ARGS((exarg_T *eap));
  257. - void ex_py3do __ARGS((exarg_T *eap));
  258.   void ex_py3file __ARGS((exarg_T *eap));
  259.   void python3_buffer_free __ARGS((buf_T *buf));
  260.   void python3_window_free __ARGS((win_T *win));
  261.   void python3_tabpage_free __ARGS((tabpage_T *tab));
  262. --- 3,10 ----
  263.   void python3_end __ARGS((void));
  264.   int python3_loaded __ARGS((void));
  265.   void ex_py3 __ARGS((exarg_T *eap));
  266.   void ex_py3file __ARGS((exarg_T *eap));
  267. + void ex_py3do __ARGS((exarg_T *eap));
  268.   void python3_buffer_free __ARGS((buf_T *buf));
  269.   void python3_window_free __ARGS((win_T *win));
  270.   void python3_tabpage_free __ARGS((tabpage_T *tab));
  271. *** ../vim-7.3.1298/src/proto/gui_w16.pro    2013-01-23 18:37:31.000000000 +0100
  272. --- src/proto/gui_w16.pro    2013-07-03 18:30:37.000000000 +0200
  273. ***************
  274. *** 49,56 ****
  275.   void gui_mch_delete_lines __ARGS((int row, int num_lines));
  276.   void gui_mch_insert_lines __ARGS((int row, int num_lines));
  277.   void gui_mch_exit __ARGS((int rc));
  278. - int gui_mch_init_font __ARGS((char_u *font_name, int fontset));
  279.   void gui_mch_wide_font_changed __ARGS((void));
  280.   int gui_mch_maximized __ARGS((void));
  281.   void gui_mch_newfont __ARGS((void));
  282.   void gui_mch_settitle __ARGS((char_u *title, char_u *icon));
  283. --- 49,56 ----
  284.   void gui_mch_delete_lines __ARGS((int row, int num_lines));
  285.   void gui_mch_insert_lines __ARGS((int row, int num_lines));
  286.   void gui_mch_exit __ARGS((int rc));
  287.   void gui_mch_wide_font_changed __ARGS((void));
  288. + int gui_mch_init_font __ARGS((char_u *font_name, int fontset));
  289.   int gui_mch_maximized __ARGS((void));
  290.   void gui_mch_newfont __ARGS((void));
  291.   void gui_mch_settitle __ARGS((char_u *title, char_u *icon));
  292. *** ../vim-7.3.1298/src/proto/gui_w32.pro    2013-01-23 18:37:31.000000000 +0100
  293. --- src/proto/gui_w32.pro    2013-07-03 18:30:38.000000000 +0200
  294. ***************
  295. *** 49,56 ****
  296.   void gui_mch_delete_lines __ARGS((int row, int num_lines));
  297.   void gui_mch_insert_lines __ARGS((int row, int num_lines));
  298.   void gui_mch_exit __ARGS((int rc));
  299. - int gui_mch_init_font __ARGS((char_u *font_name, int fontset));
  300.   void gui_mch_wide_font_changed __ARGS((void));
  301.   int gui_mch_maximized __ARGS((void));
  302.   void gui_mch_newfont __ARGS((void));
  303.   void gui_mch_settitle __ARGS((char_u *title, char_u *icon));
  304. --- 49,56 ----
  305.   void gui_mch_delete_lines __ARGS((int row, int num_lines));
  306.   void gui_mch_insert_lines __ARGS((int row, int num_lines));
  307.   void gui_mch_exit __ARGS((int rc));
  308.   void gui_mch_wide_font_changed __ARGS((void));
  309. + int gui_mch_init_font __ARGS((char_u *font_name, int fontset));
  310.   int gui_mch_maximized __ARGS((void));
  311.   void gui_mch_newfont __ARGS((void));
  312.   void gui_mch_settitle __ARGS((char_u *title, char_u *icon));
  313. *** ../vim-7.3.1298/src/proto/os_win32.pro    2013-06-12 22:41:30.000000000 +0200
  314. --- src/proto/os_win32.pro    2013-07-03 18:30:40.000000000 +0200
  315. ***************
  316. *** 42,48 ****
  317.   void mch_delay __ARGS((long msec, int ignoreinput));
  318.   int mch_remove __ARGS((char_u *name));
  319.   void mch_breakcheck __ARGS((void));
  320. - long_u mch_avail_mem __ARGS((int special));
  321.   int mch_wrename __ARGS((WCHAR *wold, WCHAR *wnew));
  322.   int mch_rename __ARGS((const char *pszOldFile, const char *pszNewFile));
  323.   char *default_shell __ARGS((void));
  324. --- 42,47 ----
  325. *** ../vim-7.3.1298/src/version.c    2013-07-03 17:51:07.000000000 +0200
  326. --- src/version.c    2013-07-03 18:29:27.000000000 +0200
  327. ***************
  328. *** 730,731 ****
  329. --- 730,733 ----
  330.   {   /* Add new patch number below this line */
  331. + /**/
  332. +     1299,
  333.   /**/
  334.  
  335. -- 
  336. The war between Emacs and Vi is over.  Vi has won with 3 to 1.
  337. http://m.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/030/3044/3044s1.html
  338.  
  339.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  340. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  341. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  342.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  343.