diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-07-24 14:24:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-07-24 14:24:48 +0000 |
commit | 01dd60cb9156c4a361558995323c018d2ead7ad1 (patch) | |
tree | 291fbef29826e7a1ae970a557cf2aae9ecdab7c6 /src/if_python.c | |
parent | 688e5f7ee7e9384494e9c16ae48c512980c54e4f (diff) | |
download | vim-git-7.2b.014.tar.gz |
updated for version 7.2b-014v7.2b.014
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/if_python.c b/src/if_python.c index 66e792bec..baf505c59 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 * |