File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
linuxTest/kotlin/com/ctrip/sqllin/driver
mingwTest/kotlin/com/ctrip/sqllin/driver
linuxTest/kotlin/com/ctrip/sqllin/dsl
mingwTest/kotlin/com/ctrip/sqllin/dsl Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1616
1717package com.ctrip.sqllin.driver
1818
19+ import kotlinx.cinterop.ExperimentalForeignApi
1920import kotlinx.cinterop.toKString
2021import platform.posix.getcwd
2122
@@ -24,5 +25,6 @@ import platform.posix.getcwd
2425 * @author yaqiao
2526 */
2627
28+ @OptIn(ExperimentalForeignApi ::class )
2729actual fun getPlatformStringPath (): String =
28- getcwd(null , 0 )?.toKString() ? : throw IllegalStateException (" The temp path created error" )
30+ getcwd(null , 0u )?.toKString() ? : throw IllegalStateException (" The temp path created error" )
Original file line number Diff line number Diff line change @@ -25,5 +25,6 @@ import platform.posix._wgetcwd
2525 * @author yaqiao
2626 */
2727
28+ @OptIn(ExperimentalForeignApi ::class )
2829actual fun getPlatformStringPath (): String =
2930 _wgetcwd (null , 0 )?.toKString() ? : throw IllegalStateException (" Get database path wrong" )
Original file line number Diff line number Diff line change 1616
1717package com.ctrip.sqllin.dsl
1818
19+ import kotlinx.cinterop.ExperimentalForeignApi
1920import kotlinx.cinterop.toKString
2021import platform.posix.getcwd
2122
@@ -24,7 +25,8 @@ import platform.posix.getcwd
2425 * @author yaqiao
2526 */
2627
28+ @OptIn(ExperimentalForeignApi ::class )
2729actual fun getPlatformStringPath (): String =
28- getcwd(null , 0 )?.toKString() ? : throw IllegalStateException (" The temp path created error" )
30+ getcwd(null , 0u )?.toKString() ? : throw IllegalStateException (" The temp path created error" )
2931
3032actual val pathSeparator: Char = ' /'
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import platform.posix._wgetcwd
2525 * @author yaqiao
2626 */
2727
28+ @OptIn(ExperimentalForeignApi ::class )
2829actual fun getPlatformStringPath (): String =
2930 _wgetcwd (null , 0 )?.toKString() ? : throw IllegalStateException (" Get database path wrong" )
3031
You can’t perform that action at this time.
0 commit comments