From c3e73915a96783535663aa51dfcbfb494e9b6c1c Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 11 Jul 2018 17:12:47 +0430 Subject: update --- text.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'text.py') diff --git a/text.py b/text.py index a012cba..d3ca5fc 100644 --- a/text.py +++ b/text.py @@ -1,7 +1,7 @@ # _*_ coding=utf-8 _*_ class text(): - header_list = """#include \n#include \n#include \n#include \n#include \n""" + header_list = """#include \n#include \n#include \n#include \n#include \n#include \n""" header_inttype = "#include \n" main_sig = 'int main(int argc, char** argv)' pragma_weak_main = '#pragma weak main' @@ -11,8 +11,8 @@ class text(): autogen_warning = "// this file has been automatically generated by faultreiber\n" last_comment = "// last line intentionally left blank\n\n" read_func_sig = "int read_structured_file(char* path)" - c_read_elem_sig = "XXX ft_read_YYY(char* _ft_file_path, int _fd) {\n" - c_read_elem_sig_1 = "ft_read_XXX(_ft_file_path, _fd)" + c_read_elem_sig = "XXX ft_read_YYY(int _fd) {\n" + c_read_elem_sig_1 = "ft_read_XXX(_fd)" c_open_file = "int ft_read_file = open(_ft_file_path, RDONLY);\n" c_function_close = "}\n" c_function_dummy_dec = "XXX dummy;\n" @@ -25,4 +25,5 @@ class text(): c_read_2 = "read(_fd, &XXX, sizeof(uint16_t));\n" c_read_4 = "read(_fd, &XXX, sizeof(uint32_t));\n" c_read_8 = "read(_fd, &XXX, sizeof(uint64_t));\n" + c_read_gen = "read(_fd, &XXX, sizeof(YYY));\n" c_assign_struct = "XXX.YYY = ZZZ;\n" -- cgit v1.2.3