diff --git a/compiler.h b/compiler.h index a993fe6..92502bc 100644 --- a/compiler.h +++ b/compiler.h @@ -115,8 +115,8 @@ struct token int type; } num; - // True if their is whitespace between the token and the next token - // i.e * a for operator token * would mean whitespace would be set for token "a" + // True if there is whitespace between the token and the next token + // e.g. * a for operator token * would mean whitespace would be set for token "a" bool whitespace; // (5+10+20) diff --git a/helpers/vector.h b/helpers/vector.h index 5f5f277..d968532 100644 --- a/helpers/vector.h +++ b/helpers/vector.h @@ -54,7 +54,7 @@ void vector_unset_flag(struct vector* vector, int flag); void vector_pop_last_peek(struct vector* vector); /** - * Peeks into the vector of pointers, returning the pointer value its self + * Peeks into the vector of pointers, returning the pointer value itsself * * Use this function instead of vector_peek if this is a vector of pointers */ diff --git a/parser.c b/parser.c index 4af93a8..42dc622 100644 --- a/parser.c +++ b/parser.c @@ -894,7 +894,7 @@ void parser_ignore_int(struct datatype *dtype) if (!parser_is_int_valid_after_datatype(dtype)) { - compiler_error(current_process, "You provided a secondary \"int\" type however its not supported with this current abbrevation\n"); + compiler_error(current_process, "You provided a secondary \"int\" type however it's not supported with this current abbrevation\n"); } // Ignore the "int" token diff --git a/preprocessor/preprocessor.c b/preprocessor/preprocessor.c index fa876a1..496ce1c 100644 --- a/preprocessor/preprocessor.c +++ b/preprocessor/preprocessor.c @@ -465,7 +465,7 @@ bool preprocessor_is_preprocessor_keyword(const char *value) S_EQ(value, "warning") || S_EQ(value, "error") || S_EQ(value, "if") || - S_EQ(value, "eleif") || + S_EQ(value, "elif") || S_EQ(value, "ifdef") || S_EQ(value, "ifndef") || S_EQ(value, "endif") || @@ -621,7 +621,7 @@ void preprocessor_definition_remove(struct preprocessor *preprocessor, const cha } struct preprocessor_definition *preprocessor_definition_create(const char *name, struct vector *value_vec, struct vector *arguments, struct preprocessor *preprocessor) { - // Unset the definition if its already created + // Unset the definition if it's already created preprocessor_definition_remove(preprocessor, name); struct preprocessor_definition *definition = calloc(1, sizeof(struct preprocessor_definition)); @@ -880,7 +880,7 @@ struct token *preprocessor_hashtag_and_identifier(struct compile_process *compil } /** - * @brief Return true if their is a hastag and any type of preprocessor if statement + * @brief Return true if there is a hastag and any type of preprocessor if statement * elif is not included. * * @param compiler @@ -1237,7 +1237,7 @@ int preprocessor_macro_function_push_something_definition(struct compile_process return 0; } - // We failed so theirs no argument + // We failed so there's no argument struct preprocessor_definition *arg_definition = preprocessor_get_definition(compiler->preprocessor, arg_name); if (arg_definition) { diff --git a/resolver.c b/resolver.c index 007da56..53cdfd6 100644 --- a/resolver.c +++ b/resolver.c @@ -713,7 +713,7 @@ void resolver_build_function_call_arguments(struct resolver_process *resolver, s struct datatype *dtype = resolver_get_datatype(resolver, argument_node); if (dtype) { - // 4 bytes unless its a structure + // 4 bytes unless it's a structure stack_change = datatype_element_size(dtype); if (stack_change < DATA_SIZE_DWORD) {