Re:Show HN: Parson, lighweight json parser in C
by kgabis on Sunday October 28, 2012 @01:22PM
(#4709406)
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.
[ Parent
| on HN ]
Re:Show HN: Parson, lighweight json parser in C
by eps on Sunday October 28, 2012 @02:47PM
(#4709622)
Of 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 :)
Re:Show HN: Parson, lighweight json parser in C
by malkia on Sunday October 28, 2012 @04:04PM
(#4709824)
Certain 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.