refactor: remove extern/const where possible
This commit is contained in:
parent
59838de33a
commit
b4b2d9cecc
5 changed files with 26 additions and 13 deletions
|
|
@ -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[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue