From b845e4754be86d2216733d9bea75cb301f38739d Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Fri, 4 Jun 2021 13:04:36 +0300 Subject: added expressions and the if statement --- src/program/program.c | 2 +- src/program/program.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/program') diff --git a/src/program/program.c b/src/program/program.c index 2632c57..51757a2 100644 --- a/src/program/program.c +++ b/src/program/program.c @@ -183,7 +183,7 @@ void touch_errors(struct Translation_Data *translation_data) assert(translation_data->hold_number_of_errors>0); --translation_data->hold_number_of_errors; } -void push_error_with_token(char *error_message,struct Translation_Data *translation_data,struct token *token) +void push_error_with_token(char *error_message,struct token *token,struct Translation_Data *translation_data) { Queue_Push(translation_data->errors,get_error(error_message,token->row,token->column)); } diff --git a/src/program/program.h b/src/program/program.h index 1fa0db6..fea0aef 100644 --- a/src/program/program.h +++ b/src/program/program.h @@ -64,7 +64,7 @@ struct Error* get_error(char *message,size_t row,size_t column); void push_lexing_error(char *error_message,struct Source *src,struct Translation_Data *translation_data); void push_parsing_error(char *error_message,struct Translation_Data *translation_data); -void push_error_with_token(char *error_message,struct Translation_Data *translation_data,struct token *token); +void push_error_with_token(char *error_message,struct token *token,struct Translation_Data *translation_data); char has_new_errors(struct Translation_Data *translation_data); void touch_errors(struct Translation_Data *translation_data); char get_and_check(struct Translation_Data *translation_data,enum Keyword kw); -- cgit v1.2.3