iwym: json.h

This commit is contained in:
Hamish Coleman
2023-06-14 19:52:10 +01:00
parent 4838dd8d75
commit 04ce678969
5 changed files with 6 additions and 10 deletions
-6
View File
@@ -27,17 +27,11 @@
#define JSON_H
#include <string.h>
#include <stdlib.h>
#define json_str_is_whitespace(x) x == '\r' || x == '\n' || x == '\t' || x == ' '
#define json_str_is_numeral(x) (x >= '0' && x <= '9') || x == 'e' || x == 'E' \
|| x == '.' || x == '+' || x == '-'
#define json_str_remove_whitespace_calc_offset(x, y) while(json_str_is_whitespace(*x)) { x++; y++; }
struct _jsonobject;
struct _jsonpair;
union _jsonvalue;
typedef enum {
JSON_STRING = 0,
-2
View File
@@ -151,8 +151,6 @@
#include "n2n_port_mapping.h"
#include "json.h"
/* ************************************** */
#include "tf.h"