Skip to content

Commit

Permalink
Update Main.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hummel009 committed Jan 11, 2024
1 parent 31018d6 commit 3ce3194
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions appKotlinNative/src/nativeMain/kotlin/hummel/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private fun wndProc(window: HWND?, msg: UINT, wParam: WPARAM, lParam: LPARAM): L
return DefWindowProcW(window, msg, wParam, lParam)
}

fun calculateWrapper(field: HWND) {
private fun calculateWrapper(field: HWND) {
try {
calculate(field)
} catch (e: Exception) {
Expand All @@ -176,7 +176,7 @@ fun calculateWrapper(field: HWND) {
}
}

fun calculate(field: HWND) {
private fun calculate(field: HWND) {
memScoped {
val bufferSize = 1000
val buffer = allocArray<WCHARVar>(bufferSize)
Expand Down Expand Up @@ -221,7 +221,7 @@ fun calculate(field: HWND) {
}
}

fun pushOperation(field: HWND, operation: String) {
private fun pushOperation(field: HWND, operation: String) {
memScoped {
val bufferSize = 1000
val buffer = allocArray<WCHARVar>(bufferSize)
Expand All @@ -238,7 +238,7 @@ fun pushOperation(field: HWND, operation: String) {
}
}

fun pushSymbolWrapper(field: HWND, symbol: String) {
private fun pushSymbolWrapper(field: HWND, symbol: String) {
memScoped {
val bufferSize = 1000
val buffer = allocArray<WCHARVar>(bufferSize)
Expand Down Expand Up @@ -280,7 +280,7 @@ fun pushSymbolWrapper(field: HWND, symbol: String) {
}


fun pushSymbol(field: HWND, number: String) {
private fun pushSymbol(field: HWND, number: String) {
memScoped {
val bufferSize = 1000
val buffer = allocArray<WCHARVar>(bufferSize)
Expand Down

0 comments on commit 3ce3194

Please sign in to comment.