aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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