@@ -21,7 +21,7 @@ fn main() {
2121 . compile ( "libt2.a" ) ;
2222 println ! ( "cargo:rerun-if-changed=src/t2.c" ) ;
2323 println ! ( "cargo:rerun-if-changed=src/t2.h" ) ;
24- ctest2 :: TestGenerator :: new ( )
24+ ctest :: TestGenerator :: new ( )
2525 . header ( "t1.h" )
2626 . include ( "src" )
2727 . fn_cname ( |a, b| b. unwrap_or ( a) . to_string ( ) )
@@ -36,7 +36,7 @@ fn main() {
3636 . array_arg ( t1_arrays)
3737 . skip_roundtrip ( |n| n == "Arr" )
3838 . generate ( "src/t1.rs" , "t1gen.rs" ) ;
39- ctest2 :: TestGenerator :: new ( )
39+ ctest :: TestGenerator :: new ( )
4040 . header ( "t2.h" )
4141 . include ( "src" )
4242 . type_name ( move |ty, is_struct, is_union| match ty {
@@ -48,9 +48,9 @@ fn main() {
4848 . skip_roundtrip ( |_| true )
4949 . generate ( "src/t2.rs" , "t2gen.rs" ) ;
5050
51- ctest2 :: TestGenerator :: new ( )
51+ ctest :: TestGenerator :: new ( )
5252 . header ( "t1.h" )
53- . language ( ctest2 :: Lang :: CXX )
53+ . language ( ctest :: Lang :: CXX )
5454 . include ( "src" )
5555 . fn_cname ( |a, b| b. unwrap_or ( a) . to_string ( ) )
5656 . type_name ( move |ty, is_struct, is_union| match ty {
@@ -64,9 +64,9 @@ fn main() {
6464 . array_arg ( t1_arrays)
6565 . skip_roundtrip ( |n| n == "Arr" )
6666 . generate ( "src/t1.rs" , "t1gen_cxx.rs" ) ;
67- ctest2 :: TestGenerator :: new ( )
67+ ctest :: TestGenerator :: new ( )
6868 . header ( "t2.h" )
69- . language ( ctest2 :: Lang :: CXX )
69+ . language ( ctest :: Lang :: CXX )
7070 . include ( "src" )
7171 . type_name ( move |ty, is_struct, is_union| match ty {
7272 "T2Union" => ty. to_string ( ) ,
@@ -78,8 +78,8 @@ fn main() {
7878 . generate ( "src/t2.rs" , "t2gen_cxx.rs" ) ;
7979}
8080
81- fn t1_volatile ( i : ctest2 :: VolatileItemKind ) -> bool {
82- use ctest2 :: VolatileItemKind :: * ;
81+ fn t1_volatile ( i : ctest :: VolatileItemKind ) -> bool {
82+ use ctest :: VolatileItemKind :: * ;
8383 match i {
8484 StructField ( ref n, ref f) if n == "V" && f == "v" => true ,
8585 Static ( ref n) if n == "vol_ptr" => true ,
0 commit comments