refactor: remove extern/const where possible

This commit is contained in:
ObserverOfTime 2024-02-28 00:56:22 +02:00 committed by Amaan Qureshi
parent 59838de33a
commit b4b2d9cecc
5 changed files with 26 additions and 13 deletions

View file

@ -2,10 +2,10 @@
typedef struct TSLanguage TSLanguage;
extern const TSLanguage *tree_sitter_LOWER_PARSER_NAME(void);
TSLanguage *tree_sitter_LOWER_PARSER_NAME(void);
static PyObject* _binding_language(PyObject *self, PyObject *args) {
return PyLong_FromVoidPtr((void *)tree_sitter_LOWER_PARSER_NAME());
return PyLong_FromVoidPtr(tree_sitter_LOWER_PARSER_NAME());
}
static PyMethodDef methods[] = {