File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
bindings/posix/src/main/scala/org/scalanative/bindgen/bindings/posix Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,16 @@ object regex {
5454 def rm_eo : regoff_t = ! p._2
5555 def rm_eo_= (value : regoff_t): Unit = ! p._2 = value
5656 }
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+ }
5868 }
5969}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
99
1010libraryDependencies += " org.scala-sbt" %% " scripted-plugin" % sbtVersion.value
1111
12- val VERSION = " 0.3.0 "
12+ val VERSION = " 0.3.1 "
1313
1414// #sbt-plugin-example
1515addSbtPlugin(" org.scala-native.bindgen" % " sbt-scala-native-bindgen" % VERSION )
You can’t perform that action at this time.
0 commit comments