Skip to content

Commit

Permalink
#124 fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Nov 30, 2021
1 parent ae1b89f commit bbe0c47
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 62 deletions.
114 changes: 57 additions & 57 deletions flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -24730,6 +24730,61 @@ void FlecsSystemImport(
#endif


#ifdef FLECS_JSON

void json_next(
ecs_strbuf_t *buf);

void json_literal(
ecs_strbuf_t *buf,
const char *value);

void json_number(
ecs_strbuf_t *buf,
double value);

void json_true(
ecs_strbuf_t *buf);

void json_false(
ecs_strbuf_t *buf);

void json_array_push(
ecs_strbuf_t *buf);

void json_array_pop(
ecs_strbuf_t *buf);

void json_object_push(
ecs_strbuf_t *buf);

void json_object_pop(
ecs_strbuf_t *buf);

void json_string(
ecs_strbuf_t *buf,
const char *value);

void json_member(
ecs_strbuf_t *buf,
const char *name);

void json_path(
ecs_strbuf_t *buf,
const ecs_world_t *world,
ecs_entity_t e);

void json_id(
ecs_strbuf_t *buf,
const ecs_world_t *world,
ecs_id_t id);

ecs_primitive_kind_t json_op_to_primitive_kind(
ecs_meta_type_op_kind_t kind);

#endif


#ifdef FLECS_JSON

void json_next(
Expand Down Expand Up @@ -24836,61 +24891,6 @@ ecs_primitive_kind_t json_op_to_primitive_kind(



#ifdef FLECS_JSON

void json_next(
ecs_strbuf_t *buf);

void json_literal(
ecs_strbuf_t *buf,
const char *value);

void json_number(
ecs_strbuf_t *buf,
double value);

void json_true(
ecs_strbuf_t *buf);

void json_false(
ecs_strbuf_t *buf);

void json_array_push(
ecs_strbuf_t *buf);

void json_array_pop(
ecs_strbuf_t *buf);

void json_object_push(
ecs_strbuf_t *buf);

void json_object_pop(
ecs_strbuf_t *buf);

void json_string(
ecs_strbuf_t *buf,
const char *value);

void json_member(
ecs_strbuf_t *buf,
const char *name);

void json_path(
ecs_strbuf_t *buf,
const ecs_world_t *world,
ecs_entity_t e);

void json_id(
ecs_strbuf_t *buf,
const ecs_world_t *world,
ecs_id_t id);

ecs_primitive_kind_t json_op_to_primitive_kind(
ecs_meta_type_op_kind_t kind);

#endif


#ifdef FLECS_JSON

static
Expand Down Expand Up @@ -26007,7 +26007,7 @@ int json_typeinfo_ser_type_ops(
return -1;
}

int ecs_type_info_to_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf)
Expand Down Expand Up @@ -26041,7 +26041,7 @@ char* ecs_type_info_to_json(
{
ecs_strbuf_t str = ECS_STRBUF_INIT;

if (ecs_type_info_to_buf(world, type, &str) != 0) {
if (ecs_type_info_to_json_buf(world, type, &str) != 0) {
ecs_strbuf_reset(&str);
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7874,7 +7874,7 @@ char* ecs_type_info_to_json(
* @return Zero if success, non-zero if failed.
*/
FLECS_API
char* ecs_type_info_to_json_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf_out);
Expand Down
2 changes: 1 addition & 1 deletion include/flecs/addons/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ char* ecs_type_info_to_json(
* @return Zero if success, non-zero if failed.
*/
FLECS_API
char* ecs_type_info_to_json_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf_out);
Expand Down
2 changes: 1 addition & 1 deletion src/addons/json/json.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../../private_api.h"
#include "json.h"

#ifdef FLECS_JSON

Expand Down
4 changes: 2 additions & 2 deletions src/addons/json/serialize_type_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int json_typeinfo_ser_type_ops(
return -1;
}

int ecs_type_info_to_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf)
Expand Down Expand Up @@ -196,7 +196,7 @@ char* ecs_type_info_to_json(
{
ecs_strbuf_t str = ECS_STRBUF_INIT;

if (ecs_type_info_to_buf(world, type, &str) != 0) {
if (ecs_type_info_to_json_buf(world, type, &str) != 0) {
ecs_strbuf_reset(&str);
return NULL;
}
Expand Down

0 comments on commit bbe0c47

Please sign in to comment.