diff options
author | Galin Simeonov <gts@volconst.com> | 2021-06-04 22:49:33 +0300 |
---|---|---|
committer | Galin Simeonov <gts@volconst.com> | 2021-07-15 18:07:29 +0300 |
commit | c875f8795586056a676e8a643a44211041ce44d2 (patch) | |
tree | 88bfd4b4923ed30de31b130672dda65e4b18a607 /src/backend/targets/C/ast_to_c.h | |
parent | a26684a417729699e95b335a3d00798237ffba9b (diff) | |
download | MEGATRON-c875f8795586056a676e8a643a44211041ce44d2.tar.gz |
various stuffs
Diffstat (limited to 'src/backend/targets/C/ast_to_c.h')
-rw-r--r-- | src/backend/targets/C/ast_to_c.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/backend/targets/C/ast_to_c.h b/src/backend/targets/C/ast_to_c.h index 299d6db..76b556c 100644 --- a/src/backend/targets/C/ast_to_c.h +++ b/src/backend/targets/C/ast_to_c.h @@ -3,21 +3,23 @@ #include <stdio.h> #include <parser.h> #include <backend.h> +#include <program.h> #include <ctype.h> #include <stdio.h> #include <string.h> struct State_And_Transitions; -void ast_to_c(char *output_name,struct AST_Translation_Unit *tree); +void ast_to_c(char *output_name,struct AST_Translation_Unit *tree,struct Options *options); -void ast_translation_unit_to_c_print_header_part(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit); -void ast_translation_unit_to_c_print_body_part(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit); -void ast_translation_unit_to_c_print_external_commands(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit); +void ast_translation_unit_to_c_print_header_part(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit,struct Options *options); +void ast_translation_unit_to_c_print_body_part(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit,struct Options *options); +void ast_translation_unit_to_c_print_external_part(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit,struct Options *options); void ast_translation_unit_to_c_print_base_name(FILE *out, char *base_name); void ast_translation_unit_to_c_print_header_string(FILE *out,char *base_name,char *file_suffix); void ast_translation_unit_to_c_print_footer_string(FILE *out,char *base_name,char *file_suffix); +void ast_translation_unit_to_c_print_external_commands(FILE *out,char *base_name,struct AST_Translation_Unit *translation_unit); void ast_translation_unit_to_c(FILE *out,struct AST_Translation_Unit *translation_unit); void ast_machine_to_c(FILE *out,struct AST_Machine *machine); @@ -49,11 +51,16 @@ void ast_if_to_c(FILE *out,size_t indentation,struct AST_If_Statement *statement void ast_expression_to_c(FILE *out,struct AST *expression); void ast_expression_state_to_c(FILE *out,struct AST_State *state); -void ast_to_c_print_internal_stuff_for_header(FILE *out,struct AST_Translation_Unit *translation_unit); -void ast_to_c_print_internal_stuff_for_body(FILE *out); +void ast_to_c_print_internal_stuff_for_header(FILE *out,struct AST_Translation_Unit *translation_unit,struct Options *options); +void ast_to_c_print_internal_stuff_for_body(FILE *out,struct Options *options); void ast_to_c_print_comment(FILE *out,char *comment); +void ast_to_c_print_event_queue_declaration(FILE *out); +void ast_to_c_print_event_queue_definition(FILE *out); + +void ast_print_machine_buffer_declarations(FILE *out); +void ast_print_machine_buffer_definitions(FILE *out); /* :X */ void ast_to_c_print_tabs(FILE *out,size_t number_of_tabs); |