diff --git a/src/c2v.v b/src/c2v.v index f5c4372..2fab3db 100644 --- a/src/c2v.v +++ b/src/c2v.v @@ -13,7 +13,7 @@ const version = '0.4.0' // V keywords, that are not keywords in C: const v_keywords = ['go', 'type', 'true', 'false', 'module', 'byte', 'in', 'none', 'map', 'string', - 'spawn'] + 'spawn', 'shared'] // libc fn definitions that have to be skipped (V already knows about them): const builtin_fn_names = ['fopen', 'puts', 'fflush', 'printf', 'memset', 'atoi', 'memcpy', 'remove', diff --git a/tests/8.simple_func_header.h b/tests/8.simple_func_header.h index ba7052c..eadb773 100644 --- a/tests/8.simple_func_header.h +++ b/tests/8.simple_func_header.h @@ -5,3 +5,7 @@ void testFunc() { void testFunc2(int remove) { } + +void testFunc3(int shared) { + +} diff --git a/tests/8.simple_func_header.out b/tests/8.simple_func_header.out index f3d1b65..9684dcc 100644 --- a/tests/8.simple_func_header.out +++ b/tests/8.simple_func_header.out @@ -13,3 +13,8 @@ pub fn testfunc2(remove int) { C.testFunc2(remove) } +fn C.testFunc3(shared_ int) + +pub fn testfunc3(shared_ int) { + C.testFunc3(shared_) +}