-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Anonymous structs and unions * Fix failing tests * Add more tests and fix issues along the way
- Loading branch information
1 parent
469be70
commit 80b12fc
Showing
99 changed files
with
2,014 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"inputFilePath": "./main.c", | ||
"userIncludeDirectories": [ | ||
"../../../production/ffi_helper/include" | ||
], | ||
"ignoredIncludeFiles": [ | ||
"../../../production/ffi_helper/include/ffi_helper.h" | ||
], | ||
"targetPlatforms": { | ||
"windows": { | ||
"i686-pc-windows-msvc": {}, | ||
"x86_64-pc-windows-msvc": {}, | ||
"aarch64-pc-windows-msvc": {} | ||
}, | ||
"macos": { | ||
"i686-apple-darwin": {}, | ||
"aarch64-apple-darwin": {}, | ||
"x86_64-apple-darwin": {}, | ||
"aarch64-apple-ios": {} | ||
}, | ||
"linux": { | ||
"i686-unknown-linux-gnu": {}, | ||
"x86_64-unknown-linux-gnu": {}, | ||
"aarch64-unknown-linux-gnu": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <stdio.h> | ||
#include "ffi_helper.h" | ||
|
||
struct struct_anonymous_char_int | ||
{ | ||
struct { | ||
char a; | ||
int b; | ||
}; | ||
}; | ||
|
||
FFI_API_DECL struct struct_anonymous_char_int struct_anonymous_char_int; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"inputFilePath": "./main.c", | ||
"userIncludeDirectories": [ | ||
"../../../production/ffi_helper/include" | ||
], | ||
"ignoredIncludeFiles": [ | ||
"../../../production/ffi_helper/include/ffi_helper.h" | ||
], | ||
"targetPlatforms": { | ||
"windows": { | ||
"i686-pc-windows-msvc": {}, | ||
"x86_64-pc-windows-msvc": {}, | ||
"aarch64-pc-windows-msvc": {} | ||
}, | ||
"macos": { | ||
"i686-apple-darwin": {}, | ||
"aarch64-apple-darwin": {}, | ||
"x86_64-apple-darwin": {}, | ||
"aarch64-apple-ios": {} | ||
}, | ||
"linux": { | ||
"i686-unknown-linux-gnu": {}, | ||
"x86_64-unknown-linux-gnu": {}, | ||
"aarch64-unknown-linux-gnu": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <stdio.h> | ||
#include "ffi_helper.h" | ||
|
||
struct struct_anonymous_nested | ||
{ | ||
struct { | ||
struct { | ||
char a; | ||
int b; | ||
}; | ||
struct { | ||
char c; | ||
int d; | ||
}; | ||
}; | ||
}; | ||
|
||
FFI_API_DECL struct struct_anonymous_nested struct_anonymous_nested; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
struct struct_int | ||
{ | ||
int a; | ||
} | ||
}; | ||
|
||
FFI_API_DECL struct struct_int struct_int; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"inputFilePath": "./main.c", | ||
"userIncludeDirectories": [ | ||
"../../../production/ffi_helper/include" | ||
], | ||
"ignoredIncludeFiles": [ | ||
"../../../production/ffi_helper/include/ffi_helper.h" | ||
], | ||
"targetPlatforms": { | ||
"windows": { | ||
"i686-pc-windows-msvc": {}, | ||
"x86_64-pc-windows-msvc": {}, | ||
"aarch64-pc-windows-msvc": {} | ||
}, | ||
"macos": { | ||
"i686-apple-darwin": {}, | ||
"aarch64-apple-darwin": {}, | ||
"x86_64-apple-darwin": {}, | ||
"aarch64-apple-ios": {} | ||
}, | ||
"linux": { | ||
"i686-unknown-linux-gnu": {}, | ||
"x86_64-unknown-linux-gnu": {}, | ||
"aarch64-unknown-linux-gnu": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <stdio.h> | ||
#include "ffi_helper.h" | ||
|
||
union union_anonymous_char_int | ||
{ | ||
union { | ||
char a; | ||
int b; | ||
}; | ||
}; | ||
|
||
FFI_API_DECL union union_anonymous_char_int union_anonymous_char_int; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"inputFilePath": "./main.c", | ||
"userIncludeDirectories": [ | ||
"../../../production/ffi_helper/include" | ||
], | ||
"ignoredIncludeFiles": [ | ||
"../../../production/ffi_helper/include/ffi_helper.h" | ||
], | ||
"targetPlatforms": { | ||
"windows": { | ||
"i686-pc-windows-msvc": {}, | ||
"x86_64-pc-windows-msvc": {}, | ||
"aarch64-pc-windows-msvc": {} | ||
}, | ||
"macos": { | ||
"i686-apple-darwin": {}, | ||
"aarch64-apple-darwin": {}, | ||
"x86_64-apple-darwin": {}, | ||
"aarch64-apple-ios": {} | ||
}, | ||
"linux": { | ||
"i686-unknown-linux-gnu": {}, | ||
"x86_64-unknown-linux-gnu": {}, | ||
"aarch64-unknown-linux-gnu": {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include <stdio.h> | ||
#include "ffi_helper.h" | ||
|
||
union union_anonymous_nested | ||
{ | ||
union { | ||
union { | ||
char a; | ||
int b; | ||
}; | ||
union { | ||
char c; | ||
int d; | ||
}; | ||
}; | ||
}; | ||
|
||
FFI_API_DECL union union_anonymous_nested union_anonymous_nested; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.