Skip to content

Commit

Permalink
move EnvironmentGet
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov committed Mar 14, 2024
1 parent 9caf94a commit fbba783
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sqlite-embedder-graalvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kotlin {
sourceSets {
jvmMain.dependencies {
api(projects.sqliteCommonApi)
implementation(projects.wasiEmscriptenHost)
implementation(project(":wasi-emscripten-host"))
api(libs.graalvm.polyglot.polyglot)
implementation(libs.graalvm.polyglot.wasm)
compileOnly(libs.graalvm.wasm.language)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ru.pixnews.sqlite.open.helper.common.api.WasmPtr
import ru.pixnews.sqlite.open.helper.graalvm.ext.asWasmPtr
import ru.pixnews.sqlite.open.helper.graalvm.host.BaseWasmNode
import ru.pixnews.sqlite.open.helper.graalvm.host.Host
import ru.pixnews.sqlite.open.helper.host.wasi.ext.WasiEnvironmentFunc
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.ext.WasiEnvironmentFunc

internal class EnvironGet(
language: WasmLanguage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ru.pixnews.sqlite.open.helper.common.api.WasmPtr
import ru.pixnews.sqlite.open.helper.graalvm.ext.asWasmPtr
import ru.pixnews.sqlite.open.helper.graalvm.host.BaseWasmNode
import ru.pixnews.sqlite.open.helper.graalvm.host.Host
import ru.pixnews.sqlite.open.helper.host.wasi.ext.WasiEnvironmentFunc
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.ext.WasiEnvironmentFunc

internal class EnvironSizesGet(
language: WasmLanguage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ru.pixnews.sqlite.open.helper.host.filesystem.ReadWriteStrategy
import ru.pixnews.sqlite.open.helper.host.filesystem.ReadWriteStrategy.CHANGE_POSITION
import ru.pixnews.sqlite.open.helper.host.filesystem.ReadWriteStrategy.DO_NOT_CHANGE_POSITION
import ru.pixnews.sqlite.open.helper.host.filesystem.SysException
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.ext.FdWriteExt
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.ext.FdWriteExt.readCiovecs
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.type.CioVec
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.type.CiovecArray
import ru.pixnews.sqlite.open.helper.host.wasi.preview1.type.Errno
Expand Down Expand Up @@ -68,7 +68,7 @@ private class FdWrite(
cIovCnt: Int,
pNum: WasmPtr<Int>,
): Int {
val cioVecs: CiovecArray = FdWriteExt.readCiovecs(memory, pCiov, cIovCnt)
val cioVecs: CiovecArray = readCiovecs(memory, pCiov, cIovCnt)
return try {
val channel = host.fileSystem.getStreamByFd(fd)
val writtenBytes = memory.writeToChannel(channel, strategy, cioVecs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

package ru.pixnews.sqlite.open.helper.host.wasi.ext
package ru.pixnews.sqlite.open.helper.host.wasi.preview1.ext

import ru.pixnews.sqlite.open.helper.common.api.WasmPtr
import ru.pixnews.sqlite.open.helper.common.api.plus
Expand Down

0 comments on commit fbba783

Please sign in to comment.