From 413d2f9ff5f72369097a92fc0697f71070913d1d Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Tue, 11 Sep 2018 02:18:16 +0430 Subject: update --- text.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'text.py') diff --git a/text.py b/text.py index ae18de1..f64e478 100644 --- a/text.py +++ b/text.py @@ -15,11 +15,10 @@ class text(): #c_read_elem_sig = "void ft_read_YYY(int _fd, XXX* dummyZZZ) {\n" #c_read_elem_sig = "void ft_read_YYY(int _fd, XXX* dummy) {\n" #c_read_elem_sig_h = "void ft_read_YYY(int _fd, XXX* dummy);\n" - c_read_elem_sig = "void* ft_read_YYY(int _fd, XXX* dummy) {\n" - c_read_elem_sig_h = "void* ft_read_YYY(int _fd, XXX* dummy);\n" + c_read_elem_sig = "void* ft_read_YYY(int _fd, XXX* dummy, void** void_train) {\n" + c_read_elem_sig_h = "void* ft_read_YYY(int _fd, XXX* dummy, void** void_train);\n" c_read_elem_sig_1 = "ft_read_XXX(_fd)" - c_read_elem_sig_2 = "ft_read_XXX(_fd, YYY)" - #c_read_elem_sig_2 = "ft_read_XXX(_fd, &YYY)" + c_read_elem_sig_2 = "ft_read_XXX(_fd, YYY, ZZZ)" c_open_file = "int ft_read_file = open(_ft_file_path, RDONLY);\n" c_function_close = "}\n" c_function_dummy_dec = "XXX dummy;\n" @@ -84,7 +83,7 @@ int32_t read_until_delimiter(int _fd, uint8_t delimiter) { }""" c_void_manager = """ -void void_manager(void* ptr) { +void void_manager(void* ptr, void** void_train) { if (current_void_size == 0) { void_train = malloc(100*sizeof(void*)); current_void_size = 100; @@ -104,8 +103,8 @@ void void_manager(void* ptr) { c_read_leb_128_u_sig = "uint64_t read_leb_128_u(int _fd, int max_size);\n" c_read_until_delimiter_sig = "int32_t read_until_delimiter(int _fd, uint8_t delimiter);\n" c_read_until_delimiter_proto = "read_until_delimiter(_fd, XXX)" - c_void_manager_sig = "void void_manager(void* ptr);" - c_void_manager_proto = "void_manager(XXX);" + c_void_manager_sig = "void void_manager(void* ptr, void** void_train);" + c_void_manager_proto = "void_manager(XXX, void_train);" c_read_leb_macro_defs = """ #define READ_VAR_UINT_1(FD) read_leb128_u(FD, 1) -- cgit v1.2.3