Skip to content

Commit 25231f0

Browse files
syntelossheredom
authored andcommitted
typedef
1 parent 83be71b commit 25231f0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

json.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ typedef enum json_type_e {
228228
json_type_false,
229229
json_type_null
230230

231-
} json_type;
231+
} json_type_t;
232232

233233
/* A JSON string value. */
234234
typedef struct json_string_s {
@@ -237,7 +237,7 @@ typedef struct json_string_s {
237237
/* The size (in bytes) of the string */
238238
size_t string_size;
239239

240-
} json_string;
240+
} json_string_t;
241241

242242
/* A JSON string value (extended). */
243243
typedef struct json_string_ex_s {
@@ -262,7 +262,7 @@ typedef struct json_number_s {
262262
/* the size (in bytes) of the number. */
263263
size_t number_size;
264264

265-
} json_number;
265+
} json_number_t;
266266

267267
/* an element of a JSON object. */
268268
typedef struct json_object_element_s {
@@ -273,7 +273,7 @@ typedef struct json_object_element_s {
273273
/* the next object element (can be NULL if the last element in the object). */
274274
struct json_object_element_s *next;
275275

276-
} json_object_element;
276+
} json_object_element_t;
277277

278278
/* a JSON object value. */
279279
typedef struct json_object_s {
@@ -282,7 +282,7 @@ typedef struct json_object_s {
282282
/* the number of elements in the object. */
283283
size_t length;
284284

285-
} json_object;
285+
} json_object_t;
286286

287287
/* an element of a JSON array. */
288288
typedef struct json_array_element_s {
@@ -291,7 +291,7 @@ typedef struct json_array_element_s {
291291
/* the next array element (can be NULL if the last element in the array). */
292292
struct json_array_element_s *next;
293293

294-
} json_array_element;
294+
} json_array_element_t;
295295

296296
/* a JSON array value. */
297297
typedef struct json_array_s {
@@ -300,7 +300,7 @@ typedef struct json_array_s {
300300
/* the number of elements in the array. */
301301
size_t length;
302302

303-
} json_array;
303+
} json_array_t;
304304

305305
/* a JSON value. */
306306
typedef struct json_value_s {
@@ -314,7 +314,7 @@ typedef struct json_value_s {
314314
/* json_type_null, payload will be NULL. */
315315
size_t type;
316316

317-
} json_value;
317+
} json_value_t;
318318

319319
/* a JSON value (extended). */
320320
typedef struct json_value_ex_s {
@@ -330,7 +330,7 @@ typedef struct json_value_ex_s {
330330
/* the row number for the value in the JSON input, in bytes. */
331331
size_t row_no;
332332

333-
} json_value_ex;
333+
} json_value_ex_t;
334334

335335
/* a parsing error code. */
336336
enum json_parse_error_e {
@@ -387,7 +387,7 @@ typedef struct json_parse_result_s {
387387
/* the row number for the error, in bytes. */
388388
size_t error_row_no;
389389

390-
} json_parse_result;
390+
} json_parse_result_t;
391391

392392
#ifdef __cplusplus
393393
} /* extern "C". */

0 commit comments

Comments
 (0)