| 940 | } |
| 941 | |
| 942 | void fxStringifyJSONNumber(txMachine* the, txJSONStringifier* theStringifier, txNumber theNumber) |
| 943 | { |
| 944 | int fpclass = c_fpclassify(theNumber); |
| 945 | if ((fpclass != C_FP_NAN) && (fpclass != C_FP_INFINITE)) { |
| 946 | char aBuffer[256]; |
| 947 | fxNumberToString(the, theNumber, aBuffer, sizeof(aBuffer), 0, 0); |
| 948 | fxStringifyJSONChars(the, theStringifier, aBuffer, (txSize)c_strlen(aBuffer)); |
| 949 | } |
| 950 | else |
| 951 | fxStringifyJSONChars(the, theStringifier, "null", 4); |
| 952 | } |
| 953 | |
| 954 | void fxStringifyJSONProperty(txMachine* the, txJSONStringifier* theStringifier, txInteger* theFlag) |
| 955 | { |
no test coverage detected