bpo-43258: Make sqlite3 callback functions static (GH-24574)

This commit is contained in:
Erlend Egeberg Aasland 2021-02-19 12:59:24 +01:00 committed by GitHub
parent 979b23cbe4
commit 2bb0bf4dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -600,7 +600,8 @@ PyObject* _pysqlite_build_py_params(sqlite3_context *context, int argc, sqlite3_
return args; return args;
} }
void _pysqlite_func_callback(sqlite3_context* context, int argc, sqlite3_value** argv) static void
_pysqlite_func_callback(sqlite3_context *context, int argc, sqlite3_value **argv)
{ {
PyObject* args; PyObject* args;
PyObject* py_func; PyObject* py_func;
@ -696,7 +697,8 @@ error:
PyGILState_Release(threadstate); PyGILState_Release(threadstate);
} }
void _pysqlite_final_callback(sqlite3_context* context) static void
_pysqlite_final_callback(sqlite3_context *context)
{ {
PyObject* function_result; PyObject* function_result;
PyObject** aggregate_instance; PyObject** aggregate_instance;