From 5eced9066331a1e52a36fe265577601069cbeac3 Mon Sep 17 00:00:00 2001 From: edyfox Date: Thu, 24 Jul 2008 13:39:29 +0000 Subject: [PATCH] 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 git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.2@1124 2a77ed30-b011-0410-a7ad-c7884a0aa172 --- src/if_perl.xs | 6 ++++++ src/if_python.c | 6 ++++-- src/version.c | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/if_perl.xs b/src/if_perl.xs index a6994f69..5b0449a1 100644 --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -843,6 +843,12 @@ err: } } +#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); diff --git a/src/if_python.c b/src/if_python.c index 66e792be..baf505c5 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -1120,6 +1120,7 @@ VimCommand(PyObject *self, PyObject *args) 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,7 +1163,7 @@ VimToPython(typval_T *our_tv, int depth, PyObject *lookupDict) result = Py_BuildValue("s", buf); PyDict_SetItemString(lookupDict, ptrBuf, result); } -#ifdef FEAT_FLOAT +# ifdef FEAT_FLOAT else if (our_tv->v_type == VAR_FLOAT) { char buf[NUMBUFLEN]; @@ -1171,7 +1172,7 @@ VimToPython(typval_T *our_tv, int depth, PyObject *lookupDict) result = Py_BuildValue("s", buf); PyDict_SetItemString(lookupDict, ptrBuf, result); } -#endif +# endif else if (our_tv->v_type == VAR_LIST) { list_T *list = our_tv->vval.v_list; @@ -1224,6 +1225,7 @@ VimToPython(typval_T *our_tv, int depth, PyObject *lookupDict) return result; } +#endif /*ARGSUSED*/ static PyObject * diff --git a/src/version.c b/src/version.c index f46ebda2..49f41f50 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 13, +/**/ 12, /**/ 11, -- 2.11.4.GIT