File tree 6 files changed +11
-12
lines changed
6 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ bool TreeVisitor::VisitFunctionDecl(clang::FunctionDecl *func) {
18
18
std::string pname = parm->getNameAsString ();
19
19
20
20
if (pname.empty ()) {
21
- pname = " anonymous " + std::to_string (anonCounter++);
21
+ pname = " p " + std::to_string (anonCounter++);
22
22
}
23
23
24
24
std::shared_ptr<Type> ptype = typeTranslator.translate (parm->getType ());
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ object Function {
13
13
def void_arg (): native.CFloat = native.extern
14
14
def one_arg (a : native.CInt ): native.CChar = native.extern
15
15
def two_args (a : native.CFloat , b : native.CInt ): native.Ptr [Byte ] = native.extern
16
- def anonymous_args (anonymous0 : native.CFloat , anonymous1 : native.CInt ): native.CDouble = native.extern
16
+ def anonymous_args (p0 : native.CFloat , p1 : native.CInt ): native.CDouble = native.extern
17
17
def variadic_args (a : native.CDouble , varArgs : native.CString , varArgs0 : native.CVararg * ): native.CDouble = native.extern
18
- def acceptsArray (anonymous0 : native.Ptr [native.CInt ]): Unit = native.extern
18
+ def acceptsArray (p0 : native.Ptr [native.CInt ]): Unit = native.extern
19
19
}
20
20
21
21
import Function ._
@@ -34,4 +34,3 @@ object FunctionHelpers {
34
34
def a_= (value : native.CInt ): Unit = ! p.cast[native.Ptr [native.CInt ]] = value
35
35
}
36
36
}
37
-
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ object OpaqueTypes {
23
23
type functionPointerWithPointerToOpaqueType = native.CFunctionPtr1 [native.Ptr [native.Ptr [struct_undefinedStruct]], native.Ptr [undefinedUnion]]
24
24
def move (point : native.Ptr [struct_point], x : native.CInt , y : native.CInt ): native.Ptr [struct_point] = native.extern
25
25
def processPoints (p : native.Ptr [points]): native.Ptr [union_u] = native.extern
26
- def usePointerToUndefinedStruct (anonymous0 : native.Ptr [struct_undefinedStruct]): Unit = native.extern
26
+ def usePointerToUndefinedStruct (p0 : native.Ptr [struct_undefinedStruct]): Unit = native.extern
27
27
def fun (): native.Ptr [native.Ptr [undefinedUnion]] = native.extern
28
28
def returnPointerToAliasOfUndefinedStruct (): native.Ptr [aliasForUndefinedStruct] = native.extern
29
- def usePointerToUndefinedIncludedStruct (anonymous0 : native.Ptr [undefinedIncludedStruct]): Unit = native.extern
29
+ def usePointerToUndefinedIncludedStruct (p0 : native.Ptr [undefinedIncludedStruct]): Unit = native.extern
30
30
}
31
31
32
32
import OpaqueTypes ._
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ object PrivateMembers {
19
19
type privateStructWithTypedefPtr = native.Ptr [struct_privateStructWithTypedef]
20
20
def getTypeThatUsesPrivateTypes (): pid_t = native.extern
21
21
def getPrivateType (): native.Ptr [__private_type] = native.extern
22
- def usesPrivateUnion (anonymous0 : native.Ptr [union___unionWithPrivateName]): Unit = native.extern
23
- def usesPrivateStruct (anonymous0 : native.Ptr [struct_structWithPrivateType], anonymous1 : native.Ptr [struct_normalStruct]): Unit = native.extern
24
- def usesPrivateEnum (anonymous0 : native.Ptr [enum___privateEnum]): Unit = native.extern
22
+ def usesPrivateUnion (p0 : native.Ptr [union___unionWithPrivateName]): Unit = native.extern
23
+ def usesPrivateStruct (p0 : native.Ptr [struct_structWithPrivateType], p1 : native.Ptr [struct_normalStruct]): Unit = native.extern
24
+ def usesPrivateEnum (p0 : native.Ptr [enum___privateEnum]): Unit = native.extern
25
25
}
26
26
27
27
import PrivateMembers ._
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import scala.scalanative.native._
8
8
object ReuseBindings {
9
9
type aliasForBigStruct = org.scalanative.bindgen.samples.Struct .struct_bigStruct
10
10
type struct_usesImportedEnum = native.CStruct1 [org.scalanative.bindgen.samples.Struct .enum_pointIndex]
11
- def useStruct (anonymous0 : native.Ptr [org.scalanative.bindgen.samples.Struct .struct_point]): Unit = native.extern
11
+ def useStruct (p0 : native.Ptr [org.scalanative.bindgen.samples.Struct .struct_point]): Unit = native.extern
12
12
def returnTypedef_point_s (): native.Ptr [org.scalanative.bindgen.samples.Struct .struct_point] = native.extern
13
13
def returnTypedef_point (): native.Ptr [org.scalanative.bindgen.samples.Struct .point] = native.extern
14
14
def readBook (book : native.Ptr [org.scalanative.bindgen.samples.CustomNames .book]): Unit = native.extern
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ import scala.scalanative.native._
8
8
object nativeLib {
9
9
type nativeFunc0 = native.CInt
10
10
@ native.link(" native" )
11
- def nativeFunc0 (anonymous0 : native.CInt ): Unit = native.extern
12
- def nativeFunc (anonymous0 : native.CFloat ): Unit = native.extern
11
+ def nativeFunc0 (p0 : native.CInt ): Unit = native.extern
12
+ def nativeFunc (p0 : native.CFloat ): Unit = native.extern
13
13
}
You can’t perform that action at this time.
0 commit comments