Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shared method parameter name #154

Merged
merged 19 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e57db20
Fix: module name when generating wrapper
ArtemkaKun Aug 13, 2023
e8ebe45
Implement: uint16_t conversion
ArtemkaKun Sep 8, 2023
8848382
Revert test changes
ArtemkaKun Sep 8, 2023
8e9426f
Implement ignore of visibility attribute
ArtemkaKun Sep 8, 2023
baf3f69
Merge branch 'master' into fix_visibility_attribute
ArtemkaKun Sep 8, 2023
73f33b5
Merge remote-tracking branch 'origin/master' into fix-module-name
ArtemkaKun Sep 8, 2023
20f932a
Merge branch 'fix_visibility_attribute' into fix_doubling_of_typedefs
ArtemkaKun Sep 8, 2023
5ff63a7
Implement typedef duplication handling
ArtemkaKun Sep 8, 2023
8f6815e
Conversion of argv to os.argv was removed
ArtemkaKun Sep 8, 2023
d4ee511
Merge branch 'master' into fix_doubling_of_typedefs
ArtemkaKun Sep 9, 2023
3e93c64
Improve handling of duplicated typedefs
ArtemkaKun Sep 9, 2023
e4c4781
Merge branch 'fix_argv_confersion' into fix_const_pointers_generation
ArtemkaKun Sep 9, 2023
d40c0ec
Merge branch 'fix_doubling_of_typedefs' into fix_const_pointers_gener…
ArtemkaKun Sep 9, 2023
aba3d08
Fixed generation of uninited global vars
ArtemkaKun Sep 9, 2023
986a54b
Merge branch 'master' into fix_uninited_global_var_generation
ArtemkaKun Sep 9, 2023
0154305
Fixed generation of function names that are similar to C builtin func…
ArtemkaKun Sep 9, 2023
c1ec95c
Merge branch 'master' into fix_remove_method_parameters_name
ArtemkaKun Sep 9, 2023
d5bec3f
Fixed generation of function parameter name that is shared V keyword
ArtemkaKun Sep 9, 2023
0afbdfc
Merge branch 'master' into fix_shared_method_parameter_name
ArtemkaKun Sep 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/c2v.v
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions tests/8.simple_func_header.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ void testFunc() {
void testFunc2(int remove) {

}

void testFunc3(int shared) {

}
5 changes: 5 additions & 0 deletions tests/8.simple_func_header.out
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
}
Loading