aboutsummaryrefslogtreecommitdiffstats
path: root/src/program/program.c
diff options
context:
space:
mode:
authorGalin Simeonov <gts@volconst.com>2021-06-04 13:04:36 +0300
committerGalin Simeonov <gts@volconst.com>2021-07-15 18:04:02 +0300
commitb845e4754be86d2216733d9bea75cb301f38739d (patch)
tree5ba6355d1cb36b1bfaadf82781796b1c42b9202b /src/program/program.c
parent76fc38b3cdfded2911b464baa7b182b5102318d1 (diff)
downloadMEGATRON-b845e4754be86d2216733d9bea75cb301f38739d.tar.gz
added expressions and the if statement
Diffstat (limited to 'src/program/program.c')
-rw-r--r--src/program/program.c2
1 files changed, 1 insertions, 1 deletions
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));
}