ast2 var of proc type, multiple proc type block

This commit is contained in:
Ganesh Viswanathan 2020-04-05 19:26:38 -05:00
commit 534acf9259
6 changed files with 310 additions and 158 deletions

View file

@ -35,7 +35,9 @@ cImport(pcreH, dynlib="dynpcre", flags = FLAGS)
echo version()
proc my_malloc(a1: uint) {.cdecl.} =
discard
when FLAGS.len != 0:
# Legacy algorithm is broken - does not convert void * return to pointer
proc my_malloc(a1: uint): pointer {.cdecl.} =
discard
malloc = my_malloc
malloc = my_malloc