fix more alien.inline tests

db4
Joe Groff 2009-09-17 11:10:06 -05:00
parent c3f0688164
commit d9c6230f43
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ SYMBOL: c-strings
[ current-vocab name>> % "_" % % ] "" make ;
PRIVATE>
: parse-arglist ( parameters return -- types effect )
[ 2 group unzip [ "," ?tail drop ] map ]
[ [ { } ] [ 1array ] if-void ]
bi* <effect> ;
: append-function-body ( prototype-str body -- str )
[ swap % " {\n" % % "\n}\n" % ] "" make ;