Skip to content

Commit 2bb0bf4

Browse files
author
Erlend Egeberg Aasland
authored
bpo-43258: Make sqlite3 callback functions static (GH-24574)
1 parent 979b23c commit 2bb0bf4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Modules/_sqlite/connection.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ PyObject* _pysqlite_build_py_params(sqlite3_context *context, int argc, sqlite3_
600600
return args;
601601
}
602602

603-
void _pysqlite_func_callback(sqlite3_context* context, int argc, sqlite3_value** argv)
603+
static void
604+
_pysqlite_func_callback(sqlite3_context *context, int argc, sqlite3_value **argv)
604605
{
605606
PyObject* args;
606607
PyObject* py_func;
@@ -696,7 +697,8 @@ static void _pysqlite_step_callback(sqlite3_context *context, int argc, sqlite3_
696697
PyGILState_Release(threadstate);
697698
}
698699

699-
void _pysqlite_final_callback(sqlite3_context* context)
700+
static void
701+
_pysqlite_final_callback(sqlite3_context *context)
700702
{
701703
PyObject* function_result;
702704
PyObject** aggregate_instance;

0 commit comments

Comments
 (0)