diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-02-19 11:59:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 11:59:24 (GMT) |
commit | 2bb0bf4dd8c0bd4d23eb04afce1a5eeee8e07982 (patch) | |
tree | 5e494cc3cefa1799bac989e40bdd9cd6f1718ba4 /Modules | |
parent | 979b23cbe44071b056ff524c0aa20e5d9794b5b0 (diff) | |
download | cpython-2bb0bf4dd8c0bd4d23eb04afce1a5eeee8e07982.zip cpython-2bb0bf4dd8c0bd4d23eb04afce1a5eeee8e07982.tar.gz cpython-2bb0bf4dd8c0bd4d23eb04afce1a5eeee8e07982.tar.bz2 |
bpo-43258: Make sqlite3 callback functions static (GH-24574)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_sqlite/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c index 39b55fc..81f12e8 100644 --- a/Modules/_sqlite/connection.c +++ b/Modules/_sqlite/connection.c @@ -600,7 +600,8 @@ PyObject* _pysqlite_build_py_params(sqlite3_context *context, int argc, sqlite3_ 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* py_func; @@ -696,7 +697,8 @@ error: PyGILState_Release(threadstate); } -void _pysqlite_final_callback(sqlite3_context* context) +static void +_pysqlite_final_callback(sqlite3_context *context) { PyObject* function_result; PyObject** aggregate_instance; |