Petri Lehtinen
Petri Lehtinen
Would it be useful to have an option to not store anything at all in JSON_RAW? That would make the JSON structure non-encodable, but on the other hand it would...
Well, I guess it can be added later if needed.
Doesn't the workaround in value.c work on uclibc? Does it define them as macros that call an external function?
Yeah. The #ifdef check is based on a "light-weight" solution from: http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Function-Portability.html Correctly checking for this would involve linking test programs that use isnan and isinf. I think it's quite...
There are three possible cases: 1. `isnan()` and `isinf()` are defined, no need for `-lm` 2. `isnan()` and `isinf()` are defined, `-lm` is needed 3. `isnan()` and `isinf()` have not...
If you `#include `, you must not declare `isnan` anymore. So your test program should look like this: ``` C #include int main(int argc, char **argv) { isnan(0.1); return 0;...
It could be because of some optimizations. gcc "knows" that 0.1 is not NaN, and can optimize the call away. I wonder what should be the correct level of "obfuscation"...
Hmm, now I think I understand what you mean. You check whether `isnan` and `isinf` symbols are found without linking to any extra library, and if not, then whether they...
With `-O0` it doesn't optimize, and if it still doesn't call any functions then they are "pure" macros.
Sounds like a sensible idea. But if a format character for array is added, one should also be added for object, and both "o" and "O" are already taken :(