-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simplify code * Move around code * Move around code * Cleanup and simplify code * Upgrade to .NET 9 * Upgrade with unit tests * Use .NET 9 in GitHub actions * Fix missing new line in Interop gen * Use .NET 9 in releases GitHub action * Remove unused step in GitHub actions * Fix whitespacing in gen for #region * Rename for `Interop` namespace * Fix for `CStringWide` * Use `InputSantitized` directly * Add back support for config mapped names
- Loading branch information
1 parent
b0441c1
commit ddf4296
Showing
166 changed files
with
3,364 additions
and
5,963 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
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
File renamed without changes.
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
File renamed without changes.
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
src/c/tests/functions/function_attributed/config-generate-cs.json
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
src/c/tests/functions/function_ignored/config-generate-cs.json
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
30 changes: 30 additions & 0 deletions
30
src/c/tests/functions/function_implicit_enum/config-extract.json
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,30 @@ | ||
{ | ||
"inputFilePath": "./main.c", | ||
"userIncludeDirectories": [ | ||
"../../../production/ffi_helper/include" | ||
], | ||
"ignoredIncludeFiles": [ | ||
"../../../production/ffi_helper/include/ffi_helper.h" | ||
], | ||
"includedNames": [ | ||
"enum_implicit" | ||
], | ||
"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": {} | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/c/tests/functions/function_implicit_enum/config-generate-cs.json
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
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" | ||
|
||
enum enum_implicit { | ||
ENUM_IMPLICIT_VALUE0 = 0, | ||
ENUM_IMPLICIT_VALUE1 = 255 | ||
} enum_implicit; | ||
|
||
FFI_API_DECL int function_implicit_enum(int value) | ||
{ | ||
return ENUM_IMPLICIT_VALUE1; | ||
} |
File renamed without changes.
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
src/c/tests/functions/function_int_params_int/config-generate-cs.json
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
src/c/tests/functions/function_internal/config-generate-cs.json
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
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
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
src/c/tests/functions/function_uint64_params_uint8_uint16_uint32/config-generate-cs.json
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,8 @@ | ||
{ | ||
"inputFilePath": "./ffi-x/cross-platform.json", | ||
"outputFileDirectory": "./cs", | ||
"namespaceName": "test_namespace", | ||
"className": "test_class", | ||
"isEnabledFileScopedNamespace": false, | ||
"isEnabledLibraryImport": true | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
# NOTE: Requires .NET 5 SDK (VS2019 16.8 or later) | ||
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#global-analyzerconfig | ||
is_global = true | ||
global_level = 100 | ||
|
||
# StyleCop Rules | ||
## Description: StyleCop code analysis rules for C# projects. | ||
# Microsoft | ||
dotnet_diagnostic.IDE0005.severity = none | ||
dotnet_diagnostic.IDE0008.severity = none | ||
dotnet_diagnostic.IDE0041.severity = none | ||
dotnet_diagnostic.IDE0046.severity = none | ||
dotnet_diagnostic.IDE0055.severity = none | ||
dotnet_diagnostic.IDE0160.severity = none | ||
dotnet_diagnostic.IDE0161.severity = error | ||
dotnet_diagnostic.IDE0210.severity = none | ||
dotnet_diagnostic.IDE0301.severity = none | ||
dotnet_diagnostic.CA1308.severity = none | ||
dotnet_diagnostic.CA1515.severity = none | ||
dotnet_diagnostic.CA1707.severity = error | ||
dotnet_diagnostic.CA1812.severity = none | ||
|
||
# StyleCop | ||
dotnet_diagnostic.SA1300.severity = none | ||
dotnet_diagnostic.SA1401.severity = none | ||
dotnet_diagnostic.SA1402.severity = none | ||
dotnet_diagnostic.SA1600.severity = none | ||
dotnet_diagnostic.SA1600.severity = none | ||
dotnet_diagnostic.SA1602.severity = none |
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
16 changes: 3 additions & 13 deletions
16
src/cs/examples/helloworld/helloworld-app/Generated/AssemblyAttributes.g.cs
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
16 changes: 4 additions & 12 deletions
16
...oworld-app/Generated/Bindgen.Runtime.g.cs → ...rld/helloworld-app/Generated/Runtime.g.cs
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.