Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some extra semicolons. #1225

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -14456,7 +14456,7 @@ void flecs_observer_yield_existing(
it.callback = flecs_default_uni_observer_run_callback;
it.callback_ctx = o->callback_ctx;
it.run_ctx = o->run_ctx;
it.event = o->events[i];;
it.event = o->events[i];
while (ecs_query_next(&it)) {
it.event_id = it.ids[0];
it.event_cur = ++ world->event_id;
Expand Down Expand Up @@ -43486,7 +43486,7 @@ bool flecs_json_serialize_iter_result_ids(
flecs_json_array_push(buf);

for (f = 0; f < field_count; f ++) {
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);;
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);

if (!(it->set_fields & field_bit)) {
/* Don't serialize ids for fields that aren't set */
Expand Down Expand Up @@ -43537,7 +43537,7 @@ bool flecs_json_serialize_iter_result_sources(
flecs_json_array_push(buf);

for (f = 0; f < field_count; f ++) {
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);;
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);

if (!(it->set_fields & field_bit)) {
/* Don't serialize source for fields that aren't set */
Expand Down Expand Up @@ -43601,7 +43601,7 @@ int flecs_json_serialize_iter_result_field_values(
flecs_json_array_push(buf);

for (f = 0; f < field_count; f ++) {
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);;
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);
if (!(it->set_fields & field_bit)) {
ecs_strbuf_list_appendlit(buf, "0");
continue;
Expand Down Expand Up @@ -61396,7 +61396,7 @@ static
void flecs_pipeline_stats_repeat_last(
void* stats)
{
ecs_pipeline_stats_repeat_last(stats);;
ecs_pipeline_stats_repeat_last(stats);
}

static
Expand Down Expand Up @@ -62282,7 +62282,7 @@ static
void flecs_system_stats_repeat_last(
void* stats)
{
ecs_system_stats_repeat_last(stats);;
ecs_system_stats_repeat_last(stats);
}

void FlecsSystemMonitorImport(
Expand Down Expand Up @@ -62370,7 +62370,7 @@ static
void flecs_world_stats_repeat_last(
void* stats)
{
ecs_world_stats_repeat_last(stats);;
ecs_world_stats_repeat_last(stats);
}

void FlecsWorldMonitorImport(
Expand Down
6 changes: 3 additions & 3 deletions src/addons/json/serialize_iter_result_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool flecs_json_serialize_iter_result_ids(
flecs_json_array_push(buf);

for (f = 0; f < field_count; f ++) {
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);;
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);

if (!(it->set_fields & field_bit)) {
/* Don't serialize ids for fields that aren't set */
Expand Down Expand Up @@ -107,7 +107,7 @@ bool flecs_json_serialize_iter_result_sources(
flecs_json_array_push(buf);

for (f = 0; f < field_count; f ++) {
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);;
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);

if (!(it->set_fields & field_bit)) {
/* Don't serialize source for fields that aren't set */
Expand Down Expand Up @@ -171,7 +171,7 @@ int flecs_json_serialize_iter_result_field_values(
flecs_json_array_push(buf);

for (f = 0; f < field_count; f ++) {
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);;
ecs_flags16_t field_bit = flecs_ito(uint16_t, 1 << f);
if (!(it->set_fields & field_bit)) {
ecs_strbuf_list_appendlit(buf, "0");
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/addons/stats/pipeline_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static
void flecs_pipeline_stats_repeat_last(
void* stats)
{
ecs_pipeline_stats_repeat_last(stats);;
ecs_pipeline_stats_repeat_last(stats);
}

static
Expand Down
2 changes: 1 addition & 1 deletion src/addons/stats/system_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static
void flecs_system_stats_repeat_last(
void* stats)
{
ecs_system_stats_repeat_last(stats);;
ecs_system_stats_repeat_last(stats);
}

void FlecsSystemMonitorImport(
Expand Down
2 changes: 1 addition & 1 deletion src/addons/stats/world_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static
void flecs_world_stats_repeat_last(
void* stats)
{
ecs_world_stats_repeat_last(stats);;
ecs_world_stats_repeat_last(stats);
}

void FlecsWorldMonitorImport(
Expand Down
2 changes: 1 addition & 1 deletion src/observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ void flecs_observer_yield_existing(
it.callback = flecs_default_uni_observer_run_callback;
it.callback_ctx = o->callback_ctx;
it.run_ctx = o->run_ctx;
it.event = o->events[i];;
it.event = o->events[i];
while (ecs_query_next(&it)) {
it.event_id = it.ids[0];
it.event_cur = ++ world->event_id;
Expand Down
2 changes: 1 addition & 1 deletion test/core/src/Hierarchies.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void Hierarchies_path_prefix_rel_no_match(void) {
void Hierarchies_path_w_number(void) {
ecs_world_t *world = ecs_mini();

ecs_entity_t p = ecs_set_name(world, 0, "1000");;
ecs_entity_t p = ecs_set_name(world, 0, "1000");
ecs_entity_t e = ecs_new_w_pair(world, EcsChildOf, p);
ecs_set_name(world, e, "Foo");

Expand Down
8 changes: 4 additions & 4 deletions test/cpp/src/Pairs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void Pairs_override_pair(void) {
void Pairs_override_tag_pair(void) {
flecs::world ecs;

auto Pair = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);;
auto Pair = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);

auto base = ecs.entity()
.set_second<Position>(Pair, {10, 20});
Expand Down Expand Up @@ -1135,7 +1135,7 @@ void Pairs_get_object_for_type_base(void) {
void Pairs_get_object_for_id_self(void) {
flecs::world ecs;

auto tag = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);;
auto tag = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);
auto base = ecs.entity().add(tag);
auto self = ecs.entity().is_a(base).add(tag);

Expand All @@ -1147,7 +1147,7 @@ void Pairs_get_object_for_id_self(void) {
void Pairs_get_object_for_id_base(void) {
flecs::world ecs;

auto tag = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);;;
auto tag = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);
auto base = ecs.entity().add(tag);
auto self = ecs.entity().is_a(base);

Expand All @@ -1159,7 +1159,7 @@ void Pairs_get_object_for_id_base(void) {
void Pairs_get_object_for_id_not_found(void) {
flecs::world ecs;

auto tag = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);;;
auto tag = ecs.entity().add(flecs::OnInstantiate, flecs::Inherit);
auto base = ecs.entity();
auto self = ecs.entity().is_a(base);

Expand Down