|
74 | 74 | #include <Python.h> |
75 | 75 | #include "librt_vecs.h" |
76 | 76 |
|
77 | | -#ifdef MYPYC_EXPERIMENTAL |
78 | | - |
79 | 77 | PyTypeObject *LibRTVecs_I64TypeObj; |
80 | 78 | PyTypeObject *LibRTVecs_I32TypeObj; |
81 | 79 | PyTypeObject *LibRTVecs_I16TypeObj; |
@@ -982,22 +980,17 @@ static VecCapsule Capsule = { |
982 | 980 | get_vec_type, |
983 | 981 | }; |
984 | 982 |
|
985 | | -#endif // MYPYC_EXPERIMENTAL |
986 | | - |
987 | 983 | static PyMethodDef VecsMethods[] = { |
988 | | -#ifdef MYPYC_EXPERIMENTAL |
989 | 984 | {"append", vec_append, METH_VARARGS, "Append a value to the end of a vec"}, |
990 | 985 | {"remove", vec_remove, METH_VARARGS, "Remove first occurrence of value from a vec"}, |
991 | 986 | {"pop", vec_pop, METH_VARARGS, "Remove and return vec item at index (default last)"}, |
992 | 987 | {"extend", vec_extend, METH_VARARGS, "Extend a vec with items from an iterable"}, |
993 | | -#endif |
994 | 988 | {NULL, NULL, 0, NULL} /* Sentinel */ |
995 | 989 | }; |
996 | 990 |
|
997 | 991 | static int |
998 | 992 | librt_vecs_module_exec(PyObject *m) |
999 | 993 | { |
1000 | | -#ifdef MYPYC_EXPERIMENTAL |
1001 | 994 | PyObject *ext = PyImport_ImportModule("mypy_extensions"); |
1002 | 995 | if (ext == NULL) { |
1003 | 996 | return -1; |
@@ -1109,7 +1102,6 @@ librt_vecs_module_exec(PyObject *m) |
1109 | 1102 | } |
1110 | 1103 |
|
1111 | 1104 | Py_DECREF(ext); |
1112 | | -#endif |
1113 | 1105 | return 0; |
1114 | 1106 | } |
1115 | 1107 |
|
|
0 commit comments