@@ -493,10 +493,10 @@ mod _sqlite {
493
493
unsafe extern "C" fn authorizer_callback (
494
494
data : * mut c_void ,
495
495
action : c_int ,
496
- arg1 : * const i8 ,
497
- arg2 : * const i8 ,
498
- db_name : * const i8 ,
499
- access : * const i8 ,
496
+ arg1 : * const libc :: c_char ,
497
+ arg2 : * const libc :: c_char ,
498
+ db_name : * const libc :: c_char ,
499
+ access : * const libc :: c_char ,
500
500
) -> c_int {
501
501
let ( callable, vm) = ( * data. cast :: < Self > ( ) ) . retrive ( ) ;
502
502
let f = || -> PyResult < c_int > {
@@ -2304,7 +2304,7 @@ mod _sqlite {
2304
2304
raise_exception ( typ. to_owned ( ) , extended_errcode, errmsg, vm)
2305
2305
}
2306
2306
2307
- fn open ( path : * const i8 , uri : bool , vm : & VirtualMachine ) -> PyResult < Self > {
2307
+ fn open ( path : * const libc :: c_char , uri : bool , vm : & VirtualMachine ) -> PyResult < Self > {
2308
2308
let mut db = null_mut ( ) ;
2309
2309
let ret = unsafe {
2310
2310
sqlite3_open_v2 (
@@ -2328,8 +2328,8 @@ mod _sqlite {
2328
2328
2329
2329
fn prepare (
2330
2330
self ,
2331
- sql : * const i8 ,
2332
- tail : * mut * const i8 ,
2331
+ sql : * const libc :: c_char ,
2332
+ tail : * mut * const libc :: c_char ,
2333
2333
vm : & VirtualMachine ,
2334
2334
) -> PyResult < Option < SqliteStatement > > {
2335
2335
let mut st = null_mut ( ) ;
@@ -2412,7 +2412,7 @@ mod _sqlite {
2412
2412
#[ allow( clippy:: too_many_arguments) ]
2413
2413
fn create_function (
2414
2414
self ,
2415
- name : * const i8 ,
2415
+ name : * const libc :: c_char ,
2416
2416
narg : c_int ,
2417
2417
flags : c_int ,
2418
2418
data : * mut c_void ,
@@ -2631,15 +2631,15 @@ mod _sqlite {
2631
2631
unsafe { sqlite3_column_text ( self . st , pos) }
2632
2632
}
2633
2633
2634
- fn column_decltype ( self , pos : c_int ) -> * const i8 {
2634
+ fn column_decltype ( self , pos : c_int ) -> * const libc :: c_char {
2635
2635
unsafe { sqlite3_column_decltype ( self . st , pos) }
2636
2636
}
2637
2637
2638
2638
fn column_bytes ( self , pos : c_int ) -> c_int {
2639
2639
unsafe { sqlite3_column_bytes ( self . st , pos) }
2640
2640
}
2641
2641
2642
- fn column_name ( self , pos : c_int ) -> * const i8 {
2642
+ fn column_name ( self , pos : c_int ) -> * const libc :: c_char {
2643
2643
unsafe { sqlite3_column_name ( self . st , pos) }
2644
2644
}
2645
2645
@@ -2803,7 +2803,7 @@ mod _sqlite {
2803
2803
Ok ( obj)
2804
2804
}
2805
2805
2806
- fn ptr_to_str < ' a > ( p : * const i8 , vm : & VirtualMachine ) -> PyResult < & ' a str > {
2806
+ fn ptr_to_str < ' a > ( p : * const libc :: c_char , vm : & VirtualMachine ) -> PyResult < & ' a str > {
2807
2807
if p. is_null ( ) {
2808
2808
return Err ( vm. new_memory_error ( "string pointer is null" . to_owned ( ) ) ) ;
2809
2809
}
@@ -2840,7 +2840,7 @@ mod _sqlite {
2840
2840
}
2841
2841
}
2842
2842
2843
- fn str_to_ptr_len ( s : & PyStr , vm : & VirtualMachine ) -> PyResult < ( * const i8 , i32 ) > {
2843
+ fn str_to_ptr_len ( s : & PyStr , vm : & VirtualMachine ) -> PyResult < ( * const libc :: c_char , i32 ) > {
2844
2844
let len = c_int:: try_from ( s. byte_len ( ) )
2845
2845
. map_err ( |_| vm. new_overflow_error ( "TEXT longer than INT_MAX bytes" . to_owned ( ) ) ) ?;
2846
2846
let ptr = s. as_str ( ) . as_ptr ( ) . cast ( ) ;
@@ -2909,7 +2909,7 @@ mod _sqlite {
2909
2909
fn begin_statement_ptr_from_isolation_level (
2910
2910
s : & PyStr ,
2911
2911
vm : & VirtualMachine ,
2912
- ) -> PyResult < * const i8 > {
2912
+ ) -> PyResult < * const libc :: c_char > {
2913
2913
BEGIN_STATEMENTS
2914
2914
. iter ( )
2915
2915
. find ( |& & x| x[ 6 ..] . eq_ignore_ascii_case ( s. as_str ( ) . as_bytes ( ) ) )
0 commit comments