-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from sdilts/fix/c-func-capitalization
Fix transformation of C names that have capitalized letters
- Loading branch information
Showing
7 changed files
with
84 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
struct Foo { | ||
int aBear; | ||
int B; | ||
}; | ||
|
||
int camelCaseFunctionName(int Test); | ||
|
||
int TitleCaseFunction(int TestFoo); | ||
|
||
int stringDNE(); | ||
|
||
void IString(); | ||
|
||
int snake_case_function(double weird_name); | ||
|
||
int SDL_testThing(); |
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,20 @@ | ||
;; next section imported from file inputs/capitalization.h | ||
|
||
(cffi:defcstruct foo | ||
(a-bear :int) | ||
(b :int)) | ||
|
||
(cffi:defcfun ("camelCaseFunctionName" camel-case-function-name) :int | ||
(test :int)) | ||
|
||
(cffi:defcfun ("TitleCaseFunction" title-case-function) :int | ||
(test-foo :int)) | ||
|
||
(cffi:defcfun ("stringDNE" string-dne) :int) | ||
|
||
(cffi:defcfun ("IString" istring) :void) | ||
|
||
(cffi:defcfun ("snake_case_function" snake-case-function) :int | ||
(weird-name :double)) | ||
|
||
(cffi:defcfun ("SDL_testThing" sdl-test-thing) :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