updated for version 7.3.819
Problem: Compiling without +eval and with Python isn't working.
Solution: Add the eval feature when building with Python.
diff --git a/src/if_py_both.h b/src/if_py_both.h
index 339250e..1d99909 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -310,7 +310,6 @@
return result;
}
-#ifdef FEAT_EVAL
/*
* Function to translate a typval_T into a PyObject; this will recursively
* translate lists/dictionaries into their Python equivalents.
@@ -425,12 +424,10 @@
return result;
}
-#endif
static PyObject *
VimEval(PyObject *self UNUSED, PyObject *args UNUSED)
{
-#ifdef FEAT_EVAL
char *expr;
typval_T *our_tv;
PyObject *result;
@@ -466,10 +463,6 @@
Py_END_ALLOW_THREADS
return result;
-#else
- PyErr_SetVim(_("expressions disabled at compile time"));
- return NULL;
-#endif
}
static PyObject *ConvertToPyObject(typval_T *);
@@ -477,7 +470,6 @@
static PyObject *
VimEvalPy(PyObject *self UNUSED, PyObject *args UNUSED)
{
-#ifdef FEAT_EVAL
char *expr;
typval_T *our_tv;
PyObject *result;
@@ -506,10 +498,6 @@
Py_END_ALLOW_THREADS
return result;
-#else
- PyErr_SetVim(_("expressions disabled at compile time"));
- return NULL;
-#endif
}
static PyObject *
@@ -946,7 +934,7 @@
}
static PyObject *
-DictionaryListKeys(PyObject *self)
+DictionaryListKeys(PyObject *self UNUSED)
{
dict_T *dict = ((DictionaryObject *)(self))->dict;
long_u todo = dict->dv_hashtab.ht_used;
@@ -2549,7 +2537,6 @@
return 0;
}
-#ifdef FEAT_EVAL
typedef int (*pytotvfunc)(PyObject *, typval_T *, PyObject *);
static int
@@ -2781,4 +2768,3 @@
return NULL;
}
}
-#endif