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
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package com.ctrip.sqllin.driver
18
18
19
+ import kotlinx.cinterop.ExperimentalForeignApi
19
20
import kotlinx.cinterop.toKString
20
21
import platform.posix.getcwd
21
22
@@ -24,5 +25,6 @@ import platform.posix.getcwd
24
25
* @author yaqiao
25
26
*/
26
27
28
+ @OptIn(ExperimentalForeignApi ::class )
27
29
actual 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
25
25
* @author yaqiao
26
26
*/
27
27
28
+ @OptIn(ExperimentalForeignApi ::class )
28
29
actual fun getPlatformStringPath (): String =
29
30
_wgetcwd (null , 0 )?.toKString() ? : throw IllegalStateException (" Get database path wrong" )
Original file line number Diff line number Diff line change 16
16
17
17
package com.ctrip.sqllin.dsl
18
18
19
+ import kotlinx.cinterop.ExperimentalForeignApi
19
20
import kotlinx.cinterop.toKString
20
21
import platform.posix.getcwd
21
22
@@ -24,7 +25,8 @@ import platform.posix.getcwd
24
25
* @author yaqiao
25
26
*/
26
27
28
+ @OptIn(ExperimentalForeignApi ::class )
27
29
actual 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" )
29
31
30
32
actual val pathSeparator: Char = ' /'
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import platform.posix._wgetcwd
25
25
* @author yaqiao
26
26
*/
27
27
28
+ @OptIn(ExperimentalForeignApi ::class )
28
29
actual fun getPlatformStringPath (): String =
29
30
_wgetcwd (null , 0 )?.toKString() ? : throw IllegalStateException (" Get database path wrong" )
30
31
You can’t perform that action at this time.
0 commit comments