alien.inline: reverted refactoring
parent
3cd4bd8106
commit
dbe19d8173
|
@ -88,12 +88,14 @@ PRIVATE>
|
||||||
compile-library? [ compile-library ] when
|
compile-library? [ compile-library ] when
|
||||||
c-library get library-path "cdecl" add-library ;
|
c-library get library-path "cdecl" add-library ;
|
||||||
|
|
||||||
: define-c-function ( function types effect -- prototype )
|
: define-c-function ( function types effect -- )
|
||||||
[ factor-function define-declared ] 3keep prototype-string ;
|
[ factor-function define-declared ] 3keep prototype-string
|
||||||
|
append-function-body c-strings get push ;
|
||||||
|
|
||||||
: define-c-function' ( function effect -- prototype )
|
: define-c-function' ( function effect -- )
|
||||||
[ in>> ] keep [ factor-function define-declared ] 3keep
|
[ in>> ] keep [ factor-function define-declared ] 3keep
|
||||||
out>> prototype-string' ;
|
out>> prototype-string'
|
||||||
|
append-function-body c-strings get push ;
|
||||||
|
|
||||||
: define-c-link ( str -- )
|
: define-c-link ( str -- )
|
||||||
"-l" prepend compiler-args get push ;
|
"-l" prepend compiler-args get push ;
|
||||||
|
@ -120,7 +122,6 @@ SYNTAX: C-LINK/FRAMEWORK: scan define-c-link/framework ;
|
||||||
SYNTAX: C-INCLUDE: scan define-c-include ;
|
SYNTAX: C-INCLUDE: scan define-c-include ;
|
||||||
|
|
||||||
SYNTAX: C-FUNCTION:
|
SYNTAX: C-FUNCTION:
|
||||||
function-types-effect define-c-function
|
function-types-effect define-c-function ;
|
||||||
append-function-body c-strings get push ;
|
|
||||||
|
|
||||||
SYNTAX: ;C-LIBRARY compile-c-library ;
|
SYNTAX: ;C-LIBRARY compile-c-library ;
|
||||||
|
|
Loading…
Reference in New Issue