| 1 |
= MLNLFFIGen |
| 2 |
|
| 3 |
`mlnlffigen` generates a <<MLNLFFI#>> binding from a collection of `.c` |
| 4 |
files. It is based on the <<CKitLibrary#>>, which is primarily designed |
| 5 |
to handle standardized C and thus does not understand many (any?) |
| 6 |
compiler extensions; however, it attempts to recover from errors when |
| 7 |
seeing unrecognized definitions. |
| 8 |
|
| 9 |
In order to work around common gcc extensions, it may be useful to add |
| 10 |
`-cppopt` options to the command line; for example |
| 11 |
`-cppopt '-D__extension__'` may be occasionally useful. Fortunately, |
| 12 |
most portable libraries largely avoid the use of these types of |
| 13 |
extensions in header files. |
| 14 |
|
| 15 |
`mlnlffigen` will normally not generate bindings for `#included` |
| 16 |
files; see `-match` and `-allSU` if this is desirable. |