Mercurial > vim
changeset 1681:fe4ebbec775a v7.2b.014
updated for version 7.2b-014
author | vimboss |
---|---|
date | Thu, 24 Jul 2008 14:24:48 +0000 |
parents | 0a908b65de1d |
children | 81059e8b657d |
files | src/auto/configure src/configure.in src/if_perl.xs src/if_python.c src/version.c |
diffstat | 5 files changed, 24 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auto/configure +++ b/src/auto/configure @@ -5114,16 +5114,17 @@ fi $as_echo_n "(cached) " >&6 else - tmp_mkf="/tmp/Makefile-conf$$" - cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} + pwd=`pwd` + tmp_mkf="$pwd/config-PyMake$$" + cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" __: @echo "python_MODLIBS='$(MODLIBS)'" @echo "python_LIBS='$(LIBS)'" @echo "python_SYSLIBS='$(SYSLIBS)'" @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" eof - eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" - rm -f ${tmp_mkf} + eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" + rm -f -- "${tmp_mkf}" if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then vi_cv_path_python_plibs="-framework Python"
--- a/src/configure.in +++ b/src/configure.in @@ -678,8 +678,9 @@ if test "$enable_pythoninterp" = "yes"; dnl see what the interpreter is built from AC_CACHE_VAL(vi_cv_path_python_plibs, [ - tmp_mkf="/tmp/Makefile-conf$$" - cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} + pwd=`pwd` + tmp_mkf="$pwd/config-PyMake$$" + cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" __: @echo "python_MODLIBS='$(MODLIBS)'" @echo "python_LIBS='$(LIBS)'" @@ -687,8 +688,8 @@ if test "$enable_pythoninterp" = "yes"; @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" eof dnl -- delete the lines from make about Entering/Leaving directory - eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" - rm -f ${tmp_mkf} + eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" + rm -f -- "${tmp_mkf}" if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then vi_cv_path_python_plibs="-framework Python"
--- 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);
--- a/src/if_python.c +++ b/src/if_python.c @@ -1120,6 +1120,7 @@ VimCommand(PyObject *self, PyObject *arg 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, 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, 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, return result; } +#endif /*ARGSUSED*/ static PyObject *