@@ -13,44 +13,37 @@ object AnonymousTypes {
1313 type struct_anonymous_2 = native.CStruct1 [native.CInt ]
1414 def foo (s : native.Ptr [struct_anonymous_0]): Unit = native.extern
1515 def bar (): native.Ptr [struct_anonymous_2] = native.extern
16- }
17-
18- import AnonymousTypes ._
19-
20- object AnonymousTypesHelpers {
21-
22- implicit class struct_anonymous_0_ops (val p : native.Ptr [struct_anonymous_0]) extends AnyVal {
23- def a : native.CChar = ! p._1
24- def a_= (value : native.CChar ): Unit = ! p._1 = value
25- }
26-
27- def struct_anonymous_0 ()(implicit z : native.Zone ): native.Ptr [struct_anonymous_0] = native.alloc[struct_anonymous_0]
28-
29- implicit class struct_anonymous_1_ops (val p : native.Ptr [struct_anonymous_1]) extends AnyVal {
30- def innerUnion : native.Ptr [union_anonymous_0] = ! p._1
31- def innerUnion_= (value : native.Ptr [union_anonymous_0]): Unit = ! p._1 = value
32- }
33-
34- def struct_anonymous_1 ()(implicit z : native.Zone ): native.Ptr [struct_anonymous_1] = native.alloc[struct_anonymous_1]
35-
36- implicit class struct_StructWithAnonymousStruct_ops (val p : native.Ptr [struct_StructWithAnonymousStruct]) extends AnyVal {
37- def innerStruct : native.Ptr [struct_anonymous_1] = ! p._1
38- def innerStruct_= (value : native.Ptr [struct_anonymous_1]): Unit = ! p._1 = value
39- def innerEnum : native.CUnsignedInt = ! p._2
40- def innerEnum_= (value : native.CUnsignedInt ): Unit = ! p._2 = value
41- }
42-
43- def struct_StructWithAnonymousStruct ()(implicit z : native.Zone ): native.Ptr [struct_StructWithAnonymousStruct] = native.alloc[struct_StructWithAnonymousStruct]
44-
45- implicit class struct_anonymous_2_ops (val p : native.Ptr [struct_anonymous_2]) extends AnyVal {
46- def result : native.CInt = ! p._1
47- def result_= (value : native.CInt ): Unit = ! p._1 = value
48- }
49-
50- def struct_anonymous_2 ()(implicit z : native.Zone ): native.Ptr [struct_anonymous_2] = native.alloc[struct_anonymous_2]
5116
52- implicit class union_anonymous_0_pos (val p : native.Ptr [union_anonymous_0]) extends AnyVal {
53- def a : native.Ptr [native.CLong ] = p.cast[native.Ptr [native.CLong ]]
54- def a_= (value : native.CLong ): Unit = ! p.cast[native.Ptr [native.CLong ]] = value
17+ object implicits {
18+ implicit class struct_anonymous_0_ops (val p : native.Ptr [struct_anonymous_0]) extends AnyVal {
19+ def a : native.CChar = ! p._1
20+ def a_= (value : native.CChar ): Unit = ! p._1 = value
21+ }
22+ def struct_anonymous_0 ()(implicit z : native.Zone ): native.Ptr [struct_anonymous_0] = native.alloc[struct_anonymous_0]
23+
24+ implicit class struct_anonymous_1_ops (val p : native.Ptr [struct_anonymous_1]) extends AnyVal {
25+ def innerUnion : native.Ptr [union_anonymous_0] = ! p._1
26+ def innerUnion_= (value : native.Ptr [union_anonymous_0]): Unit = ! p._1 = value
27+ }
28+ def struct_anonymous_1 ()(implicit z : native.Zone ): native.Ptr [struct_anonymous_1] = native.alloc[struct_anonymous_1]
29+
30+ implicit class struct_StructWithAnonymousStruct_ops (val p : native.Ptr [struct_StructWithAnonymousStruct]) extends AnyVal {
31+ def innerStruct : native.Ptr [struct_anonymous_1] = ! p._1
32+ def innerStruct_= (value : native.Ptr [struct_anonymous_1]): Unit = ! p._1 = value
33+ def innerEnum : native.CUnsignedInt = ! p._2
34+ def innerEnum_= (value : native.CUnsignedInt ): Unit = ! p._2 = value
35+ }
36+ def struct_StructWithAnonymousStruct ()(implicit z : native.Zone ): native.Ptr [struct_StructWithAnonymousStruct] = native.alloc[struct_StructWithAnonymousStruct]
37+
38+ implicit class struct_anonymous_2_ops (val p : native.Ptr [struct_anonymous_2]) extends AnyVal {
39+ def result : native.CInt = ! p._1
40+ def result_= (value : native.CInt ): Unit = ! p._1 = value
41+ }
42+ def struct_anonymous_2 ()(implicit z : native.Zone ): native.Ptr [struct_anonymous_2] = native.alloc[struct_anonymous_2]
43+
44+ implicit class union_anonymous_0_pos (val p : native.Ptr [union_anonymous_0]) extends AnyVal {
45+ def a : native.Ptr [native.CLong ] = p.cast[native.Ptr [native.CLong ]]
46+ def a_= (value : native.CLong ): Unit = ! p.cast[native.Ptr [native.CLong ]] = value
47+ }
5548 }
5649}
0 commit comments