-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autogenerate C and Go wrappers (#259)
* autogenerate C and Go wrappers * fix variadic check * fix variadic * verify go generate leaves no changes * use int32 * abort if c function can't be loaded * remove unnecessary castings * fix macro * Update cmd/mkcgo/main.go Co-authored-by: Davis Goodin <[email protected]> * Update cmd/checkheader/main.go Co-authored-by: Davis Goodin <[email protected]> * add comments * use __attribute__ and reuse parsing * fix variadic * fix variadic * make shims.h more readable * simplify code * simplify type handling * deduplicate code * simplify autogenerated Go code * use ubuntu 22.04 * simplify mkcgo * normalize params * support not ending attributes * revert backwards scan * Update shims.h Co-authored-by: Davis Goodin <[email protected]> * Update internal/mkcgo/mkcgo.go Co-authored-by: Davis Goodin <[email protected]> * code review feedback * autogenerate renamed functions * support multiple tags in checkheader * map signed char to int8 --------- Co-authored-by: Davis Goodin <[email protected]>
- Loading branch information
Showing
34 changed files
with
4,324 additions
and
1,366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
**/.DS_Store | ||
.vscode/ |
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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
package openssl | ||
|
||
// #include "goopenssl.h" | ||
import "C" | ||
import ( | ||
"crypto/cipher" | ||
|
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.