ext/oj/oj.h in oj-2.14.6 vs ext/oj/oj.h in oj-2.15.0
- old
+ new
@@ -66,10 +66,14 @@
#endif
#endif
#include "err.h"
+#define INF_VAL "3.0e14159265358979323846"
+#define NINF_VAL "-3.0e14159265358979323846"
+#define NAN_VAL "3.3e14159265358979323846"
+
typedef enum {
Yes = 'y',
No = 'n',
NotSet = 0
} YesNo;
@@ -107,10 +111,18 @@
ObjectNew = 'O',
ObjectType = 'o',
} DumpType;
typedef enum {
+ AutoNan = 'a',
+ NullNan = 'n',
+ HugeNan = 'h',
+ WordNan = 'w',
+ RaiseNan = 'r',
+} NanDump;
+
+typedef enum {
STRING_IO = 'c',
STREAM_IO = 's',
FILE_IO = 'f',
} StreamWriterType;
@@ -124,9 +136,10 @@
uint8_t indent_size;
uint8_t before_size;
uint8_t after_size;
uint8_t hash_size;
uint8_t array_size;
+ char nan_dump; // NanDump
} *DumpOpts;
typedef struct _Options {
int indent; // indention for dump, default 2
char circular; // YesNo