Alanscut
446ff0d6cc
fix issue#327
2019-11-28 09:56:04 +08:00
Zach Hindes
f25b8448e4
Support default __stdcall calling convention on tests as well
2018-09-12 15:32:30 -05:00
Max Bruckner
45e1278acb
tests/print_number: Add test with 17 digits of precision
2017-06-28 17:28:50 +02:00
Max Bruckner
21733eb02e
tests/print_number: Use proper double literals
2017-06-28 17:28:49 +02:00
Max Bruckner
87fad25c2b
Merge pull request #153 from DeboraG/print_number_prec
...
cJSON: Fix print_number to print significant digits of doubles
2017-04-29 19:56:58 +02:00
Max Bruckner
949c083315
Move 'hooks' parameter into buffers (parse/print)
2017-04-27 02:48:28 +02:00
Max Bruckner
c4c217f2ce
Move 'format' into printbuffer
2017-04-27 02:21:09 +02:00
Max Bruckner
79f30800ec
Move print depth into printbuffer
2017-04-27 02:10:03 +02:00
Debora Grosse
3fc9bc0648
cJSON: Fix print_number to print significant digits of doubles
2017-04-20 10:55:09 -04:00
Max Bruckner
c08f7e1d29
print_number: Make locale independent
...
This first prints the number into a temporary buffer and then copies the
number to the output.
A positive side effect is that cJSON no longer reserves more space for
the number in the output than is necessary.
2017-04-08 03:38:49 +02:00
Max Bruckner
4ec6e76ea2
tests: print_number: Fix build on 32bit ppc (and potentially others)
2017-03-18 13:25:18 +01:00
Max Bruckner
1749de02f8
print_number: return boolean instead of pointer
2017-03-03 00:26:58 +01:00
Max Bruckner
0c0dd4a5b0
tests: test trim_trailing_zeroes
2017-03-01 18:29:01 +01:00
Max Bruckner
1ea72f8260
print_number: Remove trailing zeroes (for doubles)
2017-03-01 13:22:32 +01:00
Max Bruckner
68cd0d4a11
cJSON.c: Pass allocation functions through internal functions
...
This is the first step in removing the global allocator functions. Every
internal function now only accesses its locally available set of
allocators.
2017-02-21 14:50:49 +01:00
Max Bruckner
924122904e
tests: print_number
2017-02-20 11:11:01 +01:00