-// Distributed under the MIT license. Copyright (c) 2010, Ivan Vashchaev\r
-\r
-#ifndef JSON_H\r
-#define JSON_H\r
-\r
-#include "block_allocator.h"\r
-\r
-enum json_type\r
-{\r
- JSON_NULL,\r
- JSON_OBJECT,\r
- JSON_ARRAY,\r
- JSON_STRING,\r
- JSON_INT,\r
- JSON_FLOAT,\r
- JSON_BOOL,\r
-};\r
-\r
-struct json_value\r
-{\r
- json_value *parent;\r
- json_value *next_sibling;\r
- json_value *first_child;\r
- json_value *last_child;\r
-\r
- char *name;\r
- union\r
- {\r
- char *string_value;\r
- int int_value;\r
- float float_value;\r
- };\r
-\r
- json_type type;\r
-};\r
-\r
-json_value *json_parse(char *source, char **error_pos, const char **error_desc, int *error_line, block_allocator *allocator);\r
-\r
-#endif\r
+// Distributed under the MIT license. Copyright (c) 2010, Ivan Vashchaev
+
+#ifndef JSON_H
+#define JSON_H
+
+#include "block_allocator.h"
+
+enum json_type
+{
+ JSON_NULL,
+ JSON_OBJECT,
+ JSON_ARRAY,
+ JSON_STRING,
+ JSON_INT,
+ JSON_FLOAT,
+ JSON_BOOL,
+};
+
+struct json_value
+{
+ json_value *parent;
+ json_value *next_sibling;
+ json_value *first_child;
+ json_value *last_child;
+
+ char *name;
+ union
+ {
+ char *string_value;
+ int int_value;
+ float float_value;
+ };
+
+ json_type type;
+};
+
+json_value *json_parse(char *source, char **error_pos, const char **error_desc, int *error_line, block_allocator *allocator);
+
+#endif