File tree 2 files changed +12
-2
lines changed
bindings/posix/src/main/scala/org/scalanative/bindgen/bindings/posix
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,16 @@ object regex {
54
54
def rm_eo : regoff_t = ! p._2
55
55
def rm_eo_= (value : regoff_t): Unit = ! p._2 = value
56
56
}
57
- def struct_regmatch_t ()(implicit z : native.Zone ): native.Ptr [struct_regmatch_t] = native.alloc[struct_regmatch_t]
57
+ }
58
+
59
+ object struct_regmatch_t {
60
+ import implicits ._
61
+ def apply ()(implicit z : native.Zone ): native.Ptr [struct_regmatch_t] = native.alloc[struct_regmatch_t]
62
+ def apply (rm_so : regoff_t, rm_eo : regoff_t)(implicit z : native.Zone ): native.Ptr [struct_regmatch_t] = {
63
+ val ptr = native.alloc[struct_regmatch_t]
64
+ ptr.rm_so = rm_so
65
+ ptr.rm_eo = rm_eo
66
+ ptr
67
+ }
58
68
}
59
69
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
9
9
10
10
libraryDependencies += " org.scala-sbt" %% " scripted-plugin" % sbtVersion.value
11
11
12
- val VERSION = " 0.3.0 "
12
+ val VERSION = " 0.3.1 "
13
13
14
14
// #sbt-plugin-example
15
15
addSbtPlugin(" org.scala-native.bindgen" % " sbt-scala-native-bindgen" % VERSION )
You can’t perform that action at this time.
0 commit comments