Fix for uchar and double

This commit is contained in:
Ganesh Viswanathan 2018-12-03 16:25:44 -06:00
commit 007f3aa191

View file

@ -20,6 +20,11 @@ proc getType*(str: string): string =
replace("unsigned ", "u").
replace(re"([u]?int[\d]+)_t", "$1")
if result == "uchar":
result = "cuchar"
elif result == "double":
result = "cdouble"
proc getLit*(str: string): string =
if str.contains(re"^[\-]?[\d]+$") or
str.contains(re"^[\-]?[\d]*\.[\d]+$") or