To: vim-dev@vim.org Subject: Patch 7.2b.013 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 7.2b.013 Problem: Build fails with tiny features and Perl. (Dominique Pelle) Solution: Define missing functions. Also when compiling Python. Files: src/if_perl.xs, src/if_python.c *** ../vim-7.2b.012/src/if_perl.xs Sun Jul 13 19:15:11 2008 --- src/if_perl.xs Thu Jul 17 22:55:09 2008 *************** *** 843,848 **** --- 843,854 ---- } } + #ifndef FEAT_WINDOWS + int win_valid(win_T *w) { return TRUE; } + int win_count() { return 1; } + win_T *win_find_nr(int n) { return curwin; } + #endif + XS(XS_VIM_Msg); XS(XS_VIM_SetOption); XS(XS_VIM_DoCommand); *** ../vim-7.2b.012/src/if_python.c Sun Jul 13 19:15:11 2008 --- src/if_python.c Thu Jul 17 23:09:32 2008 *************** *** 1120,1125 **** --- 1120,1126 ---- return result; } + #ifdef FEAT_EVAL /* * Function to translate a typval_T into a PyObject; this will recursively * translate lists/dictionaries into their Python equivalents. *************** *** 1162,1168 **** result = Py_BuildValue("s", buf); PyDict_SetItemString(lookupDict, ptrBuf, result); } ! #ifdef FEAT_FLOAT else if (our_tv->v_type == VAR_FLOAT) { char buf[NUMBUFLEN]; --- 1163,1169 ---- result = Py_BuildValue("s", buf); PyDict_SetItemString(lookupDict, ptrBuf, result); } ! # ifdef FEAT_FLOAT else if (our_tv->v_type == VAR_FLOAT) { char buf[NUMBUFLEN]; *************** *** 1171,1177 **** result = Py_BuildValue("s", buf); PyDict_SetItemString(lookupDict, ptrBuf, result); } ! #endif else if (our_tv->v_type == VAR_LIST) { list_T *list = our_tv->vval.v_list; --- 1172,1178 ---- result = Py_BuildValue("s", buf); PyDict_SetItemString(lookupDict, ptrBuf, result); } ! # endif else if (our_tv->v_type == VAR_LIST) { list_T *list = our_tv->vval.v_list; *************** *** 1224,1229 **** --- 1225,1231 ---- return result; } + #endif /*ARGSUSED*/ static PyObject * *** ../vim-7.2b.012/src/version.c Thu Jul 24 13:50:44 2008 --- src/version.c Thu Jul 24 14:45:04 2008 *************** *** 678,679 **** --- 678,681 ---- { /* Add new patch number below this line */ + /**/ + 13, /**/ -- [clop clop] GUARD #1: Halt! Who goes there? ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of Camelot. King of the Britons, defeator of the Saxons, sovereign of all England! GUARD #1: Pull the other one! The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///