diff --git a/basis/alien/parser/parser.factor b/basis/alien/parser/parser.factor index 474bb77dc6..14078f3137 100644 --- a/basis/alien/parser/parser.factor +++ b/basis/alien/parser/parser.factor @@ -62,12 +62,20 @@ IN: alien.parser ] bi [ parse-c-type ] dip ; +> ; +M: pointer return-type-name to>> return-type-name CHAR: * suffix ; +PRIVATE> + : parse-arglist ( parameters return -- types effect ) [ 2 group [ first2 normalize-c-arg 2array ] map unzip [ "," ?tail drop ] map ] - [ [ { } ] [ name>> 1array ] if-void ] + [ [ { } ] [ return-type-name 1array ] if-void ] bi* ; : function-quot ( return library function types -- quot )