From 76fc38b3cdfded2911b464baa7b182b5102318d1 Mon Sep 17 00:00:00 2001 From: Galin Simeonov Date: Thu, 3 Jun 2021 12:38:37 +0300 Subject: work on generated C code --- src/program/program.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/program/program.h') diff --git a/src/program/program.h b/src/program/program.h index 99a02c3..1fa0db6 100644 --- a/src/program/program.h +++ b/src/program/program.h @@ -34,6 +34,7 @@ struct Options enum Options_Target_Type target; int is_quiet:1; char *src_name; + char *output_name; }; struct Error @@ -63,6 +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); 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