Skip to content

Commit 711ed8c

Browse files
committed
Update bindgen plugin to version 0.3.1
Regenerate the POSIX regex binding.
1 parent c42019e commit 711ed8c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Diff for: bindings/posix/src/main/scala/org/scalanative/bindgen/bindings/posix/regex.scala

+11-1
Original file line numberDiff line numberDiff 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
}

Diff for: project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
99

1010
libraryDependencies += "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
1515
addSbtPlugin("org.scala-native.bindgen" % "sbt-scala-native-bindgen" % VERSION)

0 commit comments

Comments
 (0)