diff options
author | bloodstalker <thabogre@gmail.com> | 2018-09-12 14:16:32 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-09-12 14:16:32 +0000 |
commit | d4b803f00429472efe8ea66f4f4105ab40712dff (patch) | |
tree | d7649c56edf19e6e08154810ca38187d05630148 /main.py | |
parent | update (diff) | |
download | faultreiber-d4b803f00429472efe8ea66f4f4105ab40712dff.tar.gz faultreiber-d4b803f00429472efe8ea66f4f4105ab40712dff.zip |
finally fixed
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -447,7 +447,7 @@ class CodeGen(object): else: read_source.write(static + inline + text.c_read_elem_sig.replace("YYY", elem.attrib["name"]).replace("XXX", elem.attrib["name"]+pointer)) read_source.write("*dummy = malloc(sizeof(" + elem.attrib["name"] + "));\n") - read_source.write(text.c_void_manager_proto.replace("XXX", "dummy")); + read_source.write(text.c_void_manager_proto.replace("XXX", "*dummy")); read_source.write(text.c_read_gen.replace("XXX", "(*dummy)->" + elem.attrib["name"]).replace("YYY", type_resolver(elem, self.def_elems))) read_source.write("return *dummy;\n") read_source.write(text.c_function_close + "\n") |