Skip to content
Open
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
4 changes: 2 additions & 2 deletions compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion helpers/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions preprocessor/preprocessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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") ||
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion resolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down