cznic
cznic
> How does that work with preventing use-after-frees? It does not work. sqlite2go should translate correct and working C programs to correct and working Go programs where possible. If the...
As a quick workaround, can you please try removing [conditionally only for Windows?] this [define](https://github.com/cznic/sqlite2go/blob/f525dceff14c0486258c1b7b9715743510bd97b8/sqlite2go.go#L208)? If it helps, feel free to commit right to master.
FTR: I'm not aware of any inejctions of `{}` being performed in `c.expand`. It's just the notation used in https://www.spinellis.gr/blog/20060626/cpp.algo.pdf meaning 'empty list'.
Hmm, don't know where the '{' and '}' come from. I suspect the culprit is possibly the expansion of some builtins (like `__mingw_types_compatible_p`, provided it's a macro) or lack of...
Hmm #2. I see the "old" cznic/cc supported at least `__builtin_types_compatible__' and maybe more such stuff. So, if really necessary, I'll port those very speical "macros" to cznic/sqlite2go/internal/c99.
> So __builtin_types_compatible_p isn't supported? Not yet. Will try to port the `__builtin_types_compatible_p` implementation from 'cc'.
@steffengy Please try https://github.com/cznic/sqlite2go/commit/eda9f5474f89d464bbf5973f185686d24115ab89, it does not yet support `__builtin_types_compatible_p` completely, but there's a chance it will handle just what's needed. Edit: typo
I think we need to add a `#define __typeof__` typeof` [here](https://github.com/cznic/sqlite2go/blob/eda9f5474f89d464bbf5973f185686d24115ab89/sqlite2go.go#L211).
Analogically for other `__magic__` keywords if encountered.
Github formatting sucks, I wanted to say ```c #define __typeof__ typeof ``` Edit: grammar