4 ms·
Thanks for pointing out those errors, I already fixed the one with the wrong conditional and will fix the realloc one in the next commit. I'm being explicit wit
by kgabis 14y ago
Thanks for pointing out those errors, I already fixed the one with the wrong conditional and will fix the realloc one in the next commit.
I'm being explicit with casting, because g++ and vc++ will throw warnings without it.
- eps 14y agoOf course you'd get warnings compiling C code with C++ compiler. C doesn't require casting from void* to another pointer type... it's one of its best features :)
- malkia 14y agoCertain people would still like to compile this as a "CPP" file, examples are lua - it's in "C", but it's compilable as C++ too (some people then are more or less strict whether the function interfaces should be extern"C" or not). Ayway, not that important... But there is a whole lot of people that like amalgated sources (typical examples - juce, freetype2, lua, sqlite) where you include in one or two files all the rest and they compile fine.
- cmccabe 14y agoLuckily for you, you can link objects files produced by the C compiler with object files produced by the C++ compiler. Crisis averted.
- deleted 14y ago[deleted]