@@ -667,7 +667,7 @@ set_sqlite_error(sqlite3_context *context, const char *msg)
667
667
}
668
668
669
669
static void
670
- _pysqlite_func_callback (sqlite3_context * context , int argc , sqlite3_value * * argv )
670
+ func_callback (sqlite3_context * context , int argc , sqlite3_value * * argv )
671
671
{
672
672
PyGILState_STATE threadstate = PyGILState_Ensure ();
673
673
@@ -908,7 +908,7 @@ pysqlite_connection_create_function_impl(pysqlite_Connection *self,
908
908
return NULL ;
909
909
}
910
910
rc = sqlite3_create_function_v2 (self -> db , name , narg , flags , ctx ,
911
- _pysqlite_func_callback ,
911
+ func_callback ,
912
912
NULL ,
913
913
NULL ,
914
914
& destructor_callback ); // will decref func
@@ -1501,10 +1501,8 @@ pysqlite_connection_executescript(pysqlite_Connection *self,
1501
1501
/* ------------------------- COLLATION CODE ------------------------ */
1502
1502
1503
1503
static int
1504
- pysqlite_collation_callback (
1505
- void * context ,
1506
- int text1_length , const void * text1_data ,
1507
- int text2_length , const void * text2_data )
1504
+ collation_callback (void * context , int text1_length , const void * text1_data ,
1505
+ int text2_length , const void * text2_data )
1508
1506
{
1509
1507
PyGILState_STATE gilstate = PyGILState_Ensure ();
1510
1508
@@ -1778,7 +1776,7 @@ pysqlite_connection_create_collation_impl(pysqlite_Connection *self,
1778
1776
return NULL ;
1779
1777
}
1780
1778
rc = sqlite3_create_collation_v2 (self -> db , name , flags , ctx ,
1781
- & pysqlite_collation_callback ,
1779
+ & collation_callback ,
1782
1780
& destructor_callback );
1783
1781
}
1784
1782
0 commit comments