From 36b31ce3928358738943e903680c492e29683e1b Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Sun, 22 Dec 2024 16:53:27 -0700 Subject: [PATCH] update for new V --- README.md | 2 +- lib/FFI/Build/File/VMod.pm | 2 +- lib/FFI/Platypus/Lang/V.pm | 2 +- t/ffi_build_file_vmod__with_v_compiler.t | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 306c9bd..91419da 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ V: ``` module foo -pub fn add(a, b i32) i32 { +pub fn add(a i32, b i32) i32 { return a + b } ``` diff --git a/lib/FFI/Build/File/VMod.pm b/lib/FFI/Build/File/VMod.pm index e22c61a..8a183c6 100644 --- a/lib/FFI/Build/File/VMod.pm +++ b/lib/FFI/Build/File/VMod.pm @@ -49,7 +49,7 @@ ffi/foo.v: module foo - pub fn add(a, b i32) i32 { + pub fn add(a i32, b i32) i32 { return a + b } diff --git a/lib/FFI/Platypus/Lang/V.pm b/lib/FFI/Platypus/Lang/V.pm index f6a84d0..90b201e 100644 --- a/lib/FFI/Platypus/Lang/V.pm +++ b/lib/FFI/Platypus/Lang/V.pm @@ -14,7 +14,7 @@ V: module foo - pub fn add(a, b i32) i32 { + pub fn add(a i32, b i32) i32 { return a + b } diff --git a/t/ffi_build_file_vmod__with_v_compiler.t b/t/ffi_build_file_vmod__with_v_compiler.t index 97a7de2..768abe0 100644 --- a/t/ffi_build_file_vmod__with_v_compiler.t +++ b/t/ffi_build_file_vmod__with_v_compiler.t @@ -42,7 +42,7 @@ Module { @@ ffi/src/libfoo.v module libfoo -pub fn add(a, b i32) i32 { +pub fn add(a i32, b i32) i32 { return a + b }