Skip to content

Commit a6ce70d

Browse files
committed
Fix issues in source code comments
1 parent 9650b11 commit a6ce70d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+290
-308
lines changed

distr/flecs.c

Lines changed: 145 additions & 154 deletions
Large diffs are not rendered by default.

src/addons/alerts.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ typedef struct EcsAlert {
1616
ecs_vec_t severity_filters; /* Severity filters */
1717

1818
/* Member range monitoring */
19-
ecs_id_t id; /* (Component) id that contains to monitor member */
19+
ecs_id_t id; /* (Component) id that contains member to monitor */
2020
ecs_entity_t member; /* Member to monitor */
2121
int32_t offset; /* Offset of member in component */
2222
int32_t size; /* Size of component */
@@ -524,7 +524,7 @@ ecs_entity_t ecs_alert_init(
524524
return 0;
525525
}
526526

527-
/* Initialize Alert component which identifiers entity as alert */
527+
/* Initialize Alert component which identifies entity as alert */
528528
EcsAlert *alert = ecs_ensure(world, result, EcsAlert);
529529
ecs_assert(alert != NULL, ECS_INTERNAL_ERROR, NULL);
530530
alert->message = ecs_os_strdup(desc->message);

src/addons/flecs_cpp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ ecs_entity_t ecs_cpp_component_register(
324324
*
325325
* To meet this condition, the new type must have the same
326326
* size and alignment as the existing type, and the name of
327-
* the type type must be equal to the registered name.
327+
* the type must be equal to the registered name.
328328
*
329329
* The latter ensures that it was the intent of the
330330
* application to alias the type, vs. accidentally

src/addons/http/http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ ecs_http_server_t* ecs_http_server_init(
13551355

13561356
#ifndef ECS_TARGET_WINDOWS
13571357
/* Ignore pipe signal. SIGPIPE can occur when a message is sent to a client
1358-
* but te client already disconnected. */
1358+
* but the client already disconnected. */
13591359
signal(SIGPIPE, SIG_IGN);
13601360
#endif
13611361

src/addons/json/json.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ const char* flecs_json_parse_next_member(
169169

170170
if (*token_kind != JsonComma) {
171171
ecs_parser_error(desc->name, desc->expr, json - desc->expr,
172-
"expecteded } or ,");
172+
"expected } or ,");
173173
return NULL;
174174
}
175175

176176
json = flecs_json_parse(json, token_kind, token);
177177
if (*token_kind != JsonString) {
178178
ecs_parser_error(desc->name, desc->expr, json - desc->expr,
179-
"expecteded member name");
179+
"expected member name");
180180
return NULL;
181181
}
182182

@@ -186,7 +186,7 @@ const char* flecs_json_parse_next_member(
186186
json = flecs_json_parse(json, &temp_token_kind, temp_token);
187187
if (temp_token_kind != JsonColon) {
188188
ecs_parser_error(desc->name, desc->expr, json - desc->expr,
189-
"expecteded :");
189+
"expected :");
190190
return NULL;
191191
}
192192

src/addons/json/serialize_iter_result.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @file addons/json/serialize_iter_rows.c
3-
* @brief Serialize (component) values to JSON strings.
2+
* @file addons/json/serialize_iter_result.c
3+
* @brief Serialize iterator result to JSON.
44
*/
55

66
#include "json.h"

src/addons/json/serialize_query_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file addons/json/serialize_query_info.c
3-
* @brief Serialize (component) values to JSON strings.
3+
* @brief Serialize query information to JSON.
44
*/
55

66
#include "json.h"

src/addons/meta/cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ int ecs_meta_pop(
621621
next_scope->ops_cur += flecs_ito(int16_t, op->op_count - 1);
622622

623623
if (op->kind == EcsOpPushVector) {
624-
/* If scope got moved around in this is a partially assigned vector
624+
/* If scope got moved around, this is a partially assigned vector
625625
* so don't shrink it. */
626626
if (!scope->is_moved_scope) {
627627
ecs_assert(cursor->scope != scope, ECS_INTERNAL_ERROR, NULL);
@@ -1327,7 +1327,7 @@ int flecs_meta_add_bitmask_constant(
13271327
cursor->world, c, EcsConstant, ecs_u32_t);
13281328
if (v == NULL) {
13291329
char *path = ecs_get_path(cursor->world, op->type);
1330-
ecs_err("'%s' is not an bitmask constant for type '%s'", value, path);
1330+
ecs_err("'%s' is not a bitmask constant for type '%s'", value, path);
13311331
ecs_os_free(path);
13321332
return -1;
13331333
}

src/addons/meta/definitions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#ifdef FLECS_META
1111

12-
/* Opaque type serializatior addon vector */
12+
/* Opaque type serializer addon vector */
1313
static
1414
int flecs_addon_vec_serialize(const ecs_serializer_t *ser, const void *ptr) {
1515
char ***data = ECS_CONST_CAST(char***, ptr);

src/addons/meta/rtt_lifecycle.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/**
22
* @file addons/meta/rtt_lifecycle.c
33
* @brief Runtime components lifecycle management
44
*/
@@ -98,7 +98,7 @@ void flecs_rtt_struct_xtor(
9898
}
9999

100100
/* Generic struct constructor. It will read hook information call data from
101-
* the structs's lifecycle context and call the constructors configured when
101+
* the struct's lifecycle context and call the constructors configured when
102102
* the type was created. */
103103
static
104104
void flecs_rtt_struct_ctor(
@@ -112,7 +112,7 @@ void flecs_rtt_struct_ctor(
112112
}
113113

114114
/* Generic struct destructor. It will read hook information call data from
115-
* the structs's lifecycle context and call the constructors configured when
115+
* the struct's lifecycle context and call the destructors configured when
116116
* the type was created. */
117117
static
118118
void flecs_rtt_struct_dtor(
@@ -126,7 +126,7 @@ void flecs_rtt_struct_dtor(
126126
}
127127

128128
/* Generic move hook. It will read hook information call data from the
129-
* structs's lifecycle context and call the move hooks configured when
129+
* struct's lifecycle context and call the move hooks configured when
130130
* the type was created. */
131131
static
132132
void flecs_rtt_struct_move(
@@ -157,7 +157,7 @@ void flecs_rtt_struct_move(
157157
}
158158

159159
/* Generic copy hook. It will read hook information call data from the
160-
* structs's lifecycle context and call the copy hooks configured when
160+
* struct's lifecycle context and call the copy hooks configured when
161161
* the type was created. */
162162
static
163163
void flecs_rtt_struct_copy(
@@ -188,7 +188,7 @@ void flecs_rtt_struct_copy(
188188
}
189189

190190
/* Generic compare hook. It will read hook information call data from the
191-
* structs's lifecycle context and call the compare hooks configured when
191+
* struct's lifecycle context and call the compare hooks configured when
192192
* the type was created. */
193193
static
194194
int flecs_rtt_struct_cmp(
@@ -220,7 +220,7 @@ int flecs_rtt_struct_cmp(
220220
}
221221

222222
/* Generic equals hook. It will read hook information call data from the
223-
* structs's lifecycle context and call the equals hooks configured when
223+
* struct's lifecycle context and call the equals hooks configured when
224224
* the type was created. */
225225
static
226226
bool flecs_rtt_struct_equals(
@@ -339,7 +339,7 @@ ecs_rtt_struct_ctx_t * flecs_rtt_configure_struct_hooks(
339339

340340
/* Checks if a struct member's types have hooks installed. If so, it generates
341341
* and installs required hooks for the struct type itself. These hooks will
342-
* invoke the member hooks when necessary */
342+
* invoke the member hooks when necessary */
343343
static
344344
void flecs_rtt_init_default_hooks_struct(
345345
ecs_world_t *world,
@@ -507,7 +507,7 @@ void flecs_rtt_array_ctor(
507507
}
508508
}
509509

510-
/* Generic array constructor. It will invoke the destructor of the underlying
510+
/* Generic array destructor. It will invoke the destructor of the underlying
511511
* type for all the elements */
512512
static
513513
void flecs_rtt_array_dtor(

0 commit comments

Comments
 (0)