@@ -21,7 +21,7 @@ fn main() {
21
21
. compile ( "libt2.a" ) ;
22
22
println ! ( "cargo:rerun-if-changed=src/t2.c" ) ;
23
23
println ! ( "cargo:rerun-if-changed=src/t2.h" ) ;
24
- ctest2 :: TestGenerator :: new ( )
24
+ ctest :: TestGenerator :: new ( )
25
25
. header ( "t1.h" )
26
26
. include ( "src" )
27
27
. fn_cname ( |a, b| b. unwrap_or ( a) . to_string ( ) )
@@ -36,7 +36,7 @@ fn main() {
36
36
. array_arg ( t1_arrays)
37
37
. skip_roundtrip ( |n| n == "Arr" )
38
38
. generate ( "src/t1.rs" , "t1gen.rs" ) ;
39
- ctest2 :: TestGenerator :: new ( )
39
+ ctest :: TestGenerator :: new ( )
40
40
. header ( "t2.h" )
41
41
. include ( "src" )
42
42
. type_name ( move |ty, is_struct, is_union| match ty {
@@ -48,9 +48,9 @@ fn main() {
48
48
. skip_roundtrip ( |_| true )
49
49
. generate ( "src/t2.rs" , "t2gen.rs" ) ;
50
50
51
- ctest2 :: TestGenerator :: new ( )
51
+ ctest :: TestGenerator :: new ( )
52
52
. header ( "t1.h" )
53
- . language ( ctest2 :: Lang :: CXX )
53
+ . language ( ctest :: Lang :: CXX )
54
54
. include ( "src" )
55
55
. fn_cname ( |a, b| b. unwrap_or ( a) . to_string ( ) )
56
56
. type_name ( move |ty, is_struct, is_union| match ty {
@@ -64,9 +64,9 @@ fn main() {
64
64
. array_arg ( t1_arrays)
65
65
. skip_roundtrip ( |n| n == "Arr" )
66
66
. generate ( "src/t1.rs" , "t1gen_cxx.rs" ) ;
67
- ctest2 :: TestGenerator :: new ( )
67
+ ctest :: TestGenerator :: new ( )
68
68
. header ( "t2.h" )
69
- . language ( ctest2 :: Lang :: CXX )
69
+ . language ( ctest :: Lang :: CXX )
70
70
. include ( "src" )
71
71
. type_name ( move |ty, is_struct, is_union| match ty {
72
72
"T2Union" => ty. to_string ( ) ,
@@ -78,8 +78,8 @@ fn main() {
78
78
. generate ( "src/t2.rs" , "t2gen_cxx.rs" ) ;
79
79
}
80
80
81
- fn t1_volatile ( i : ctest2 :: VolatileItemKind ) -> bool {
82
- use ctest2 :: VolatileItemKind :: * ;
81
+ fn t1_volatile ( i : ctest :: VolatileItemKind ) -> bool {
82
+ use ctest :: VolatileItemKind :: * ;
83
83
match i {
84
84
StructField ( ref n, ref f) if n == "V" && f == "v" => true ,
85
85
Static ( ref n) if n == "vol_ptr" => true ,
0 commit comments