-
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.
This also significantly improves the basic structure of the library.
- Loading branch information
Showing
31 changed files
with
1,339 additions
and
770 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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
module Main where | ||
module Main (main) where | ||
|
||
import HsBindgen.Cmdline | ||
import HsBindgen.Preprocessor (generateModule) | ||
import HsBindgen.Preprocessor.Render (render) | ||
import HsBindgen.Spec qualified as Spec | ||
import HsBindgen.Lib | ||
|
||
main :: IO () | ||
main = do | ||
cmdline <- getCmdline | ||
spec' <- Spec.resolve (cmdInput cmdline) | ||
writeFile (cmdOutput cmdline) $ | ||
render (cmdRenderOptions cmdline) $ | ||
generateModule spec' | ||
execSpec (cmdSpec cmdline) |
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,12 @@ | ||
// struct without typedef | ||
struct S1 { | ||
int a; | ||
char b; | ||
}; | ||
|
||
// struct with typedef | ||
typedef struct S2 { | ||
char a; | ||
int b; | ||
float c; | ||
} S2; |
Oops, something went wrong.