aboutsummaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2019-01-20 12:24:16 +0000
committerbloodstalker <thabogre@gmail.com>2019-01-20 12:24:16 +0000
commitbf84777521c0b52b824cf905dcbffd00dd4c5e71 (patch)
treed172d1540e68c237045519c79998ff42d42d9928 /main.py
parentupdate (diff)
downloadfaultreiber-bf84777521c0b52b824cf905dcbffd00dd4c5e71.tar.gz
faultreiber-bf84777521c0b52b824cf905dcbffd00dd4c5e71.zip
update
Diffstat (limited to '')
-rwxr-xr-xmain.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/main.py b/main.py
index 5c23943..e8e1ba3 100755
--- a/main.py
+++ b/main.py
@@ -284,9 +284,9 @@ class CodeGen(object):
read_source.write("// " + self.dnt + "\n\n")
read_source.write(text.header_list)
if self.argparser.args.luaalloc:
- read_source.write('#include "'+self.argparser.args.luaheaders+'\lua.h"\n')
- read_source.write('#include "'+self.argparser.args.luaheaders+'\lualib.h"\n')
- read_source.write('#include "'+self.argparser.args.luaheaders+'\luaxlib.h"\n')
+ read_source.write('#include "'+self.argparser.args.luaheaders+'/lua.h"\n')
+ read_source.write('#include "'+self.argparser.args.luaheaders+'/lualib.h"\n')
+ read_source.write('#include "'+self.argparser.args.luaheaders+'/luaxlib.h"\n')
read_source.write('#include "./read.h"\n')
read_source.write('#include "./structs.h"\n\n')
if self.argparser.args.calloc: read_source.write(text.ft_calloc_def)
@@ -555,9 +555,9 @@ class CodeGen(object):
read_source_header.write('#ifdef __cplusplus\nextern "C" {\n#endif\n')
read_source_header.write('#include "./structs.h"\n')
if self.argparser.args.luaalloc:
- read_source_header.write('#include "'+self.argparser.args.luaheaders+'\lua.h"\n')
- read_source_header.write('#include "'+self.argparser.args.luaheaders+'\lualib.h"\n')
- read_source_header.write('#include "'+self.argparser.args.luaheaders+'\luaxlib.h"\n')
+ read_source_header.write('#include "'+self.argparser.args.luaheaders+'/lua.h"\n')
+ read_source_header.write('#include "'+self.argparser.args.luaheaders+'/lualib.h"\n')
+ read_source_header.write('#include "'+self.argparser.args.luaheaders+'/luaxlib.h"\n')
for elem in self.def_elems + self.read_elems:
read_source_header.write(static + inline + text.c_read_elem_sig_h.replace("YYY", elem.attrib["name"]).replace("XXX", elem.attrib["name"]).replace("ZZZ", read_sig_zzz))
if "countversion" in elem.attrib:
@@ -573,9 +573,9 @@ class CodeGen(object):
void_source.write("// " + self.dnt + "\n")
void_source_h.write("// " + self.dnt + "\n")
if self.argparser.args.luaalloc:
- void_source.write('#include "'+self.argparser.args.luaheaders+'\lua.h"\n')
- void_source.write('#include "'+self.argparser.args.luaheaders+'\lualib.h"\n')
- void_source.write('#include "'+self.argparser.args.luaheaders+'\luaxlib.h"\n')
+ void_source.write('#include "'+self.argparser.args.luaheaders+'/lua.h"\n')
+ void_source.write('#include "'+self.argparser.args.luaheaders+'/lualib.h"\n')
+ void_source.write('#include "'+self.argparser.args.luaheaders+'/luaxlib.h"\n')
void_source.write('#include "./structs.h"\n')
void_source.write('#include "./read.h"\n')
void_source.write("#include <stdlib.h>\n")
@@ -589,9 +589,9 @@ class CodeGen(object):
void_source_h.write('#ifdef __cplusplus\nextern "C" {\n#endif\n')
void_source_h.write('#include "./structs.h"\n')
if self.argparser.args.luaalloc:
- void_source_h.write('#include "'+self.argparser.args.luaheaders+'\lua.h"\n')
- void_source_h.write('#include "'+self.argparser.args.luaheaders+'\lualib.h"\n')
- void_source_h.write('#include "'+self.argparser.args.luaheaders+'\luaxlib.h"\n')
+ void_source_h.write('#include "'+self.argparser.args.luaheaders+'/lua.h"\n')
+ void_source_h.write('#include "'+self.argparser.args.luaheaders+'/lualib.h"\n')
+ void_source_h.write('#include "'+self.argparser.args.luaheaders+'/luaxlib.h"\n')
# generating the extern declarations and definitions
void_source_h.write("typedef struct {\n")
for elem in self.read_elems: