From 07dabc8b613d4d6b375690f22c615eded4f46522 Mon Sep 17 00:00:00 2001 From: edyfox Date: Thu, 24 Jul 2008 13:39:53 +0000 Subject: [PATCH] Merged from the latest developing branch. git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/trunk@1125 2a77ed30-b011-0410-a7ad-c7884a0aa172 --- src/auto/configure | 2 +- src/configure.in | 2 +- src/if_perl.xs | 6 ++++++ src/if_python.c | 6 ++++-- src/main.c | 7 ++++++- src/version.c | 6 ++++++ 6 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/auto/configure b/src/auto/configure index ba65612b..1843a9e3 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -5598,7 +5598,7 @@ $as_echo_n "checking for location of tclConfig.sh script... " >&6; } $as_echo "$try/tclConfig.sh" >&6; } . $try/tclConfig.sh TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` - TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` + TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` break fi done diff --git a/src/configure.in b/src/configure.in index 7c65fab6..49acc196 100644 --- a/src/configure.in +++ b/src/configure.in @@ -866,7 +866,7 @@ if test "$enable_tclinterp" = "yes"; then TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` dnl Use $TCL_DEFS for -D_THREAD_SAFE et al. But only use the dnl "-D_ABC" items. Watch out for -DFOO=long\ long. - TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[[^D]]/d' -e '/-D[[^_]]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` + TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[[^-]]/d' -e '/^-[[^D]]/d' -e '/-D[[^_]]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` break fi done 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/main.c b/src/main.c index 587081bd..7718e97c 100644 --- a/src/main.c +++ b/src/main.c @@ -2245,7 +2245,12 @@ scripterror: /* Remember this argument has been added to the argument list. * Needed when 'encoding' is changed. */ used_file_arg(argv[0], parmp->literal, parmp->full_path, - parmp->diff_mode); +# ifdef FEAT_DIFF + parmp->diff_mode +# else + FALSE +# endif + ); } #endif } diff --git a/src/version.c b/src/version.c index d44cd658..49f41f50 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,12 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 13, +/**/ + 12, +/**/ + 11, +/**/ 10, /**/ 9, -- 2.11.4.GIT