aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-09-30 13:20:06 +0000
committerbloodstalker <thabogre@gmail.com>2018-09-30 13:20:06 +0000
commitb7683b916293c0567db6e7c5e9cc14190b904398 (patch)
tree03097123542e939917c8272a8911fbae003d180c
parentfixes #5 (diff)
downloadfaultreiber-b7683b916293c0567db6e7c5e9cc14190b904398.tar.gz
faultreiber-b7683b916293c0567db6e7c5e9cc14190b904398.zip
update
-rwxr-xr-xmain.py4
-rwxr-xr-xrun.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/main.py b/main.py
index 62eadb5..14c5846 100755
--- a/main.py
+++ b/main.py
@@ -48,11 +48,11 @@ def type_resolver(elem, elem_list):
elif type_str == "bool":
return "uint8_t"
elif type_str == "uchar":
- return "int8_t"
+ return "uint8_t"
elif type_str == "schar":
return "schar_t"
elif type_str == "string":
- return "char*"
+ return "unsigned char*"
elif type_str == "FT::conditional":
return "void*"
elif type_str.find("self::") == 0:
diff --git a/run.sh b/run.sh
index fe14d5c..7469e86 100755
--- a/run.sh
+++ b/run.sh
@@ -1,5 +1,5 @@
#!/bin/sh
cd $(dirname $0)
-#"./faultreiber.py" --targetname autowasm --outdir ./test/ --structs ./test/struct.json --xml ./resources/wasm.xml --name wasm --calloc
-"./faultreiber.py" --targetname autowasm --outdir ./test/ --structs ./test/struct.json --xml ./resources/wasm.xml --name wasm
+"./faultreiber.py" --targetname autowasm --outdir ./test/ --structs ./test/struct.json --xml ./resources/wasm.xml --name wasm --calloc
+#"./faultreiber.py" --targetname autowasm --outdir ./test/ --structs ./test/struct.json --xml ./resources/wasm.xml --name wasm
"clang-format" -i ./test/read.c ./test/structs.c ./test/structs.h ./test/aggregate.c ./test/aggregate.h ./test/read.h