 
 SYNTAX: COMPILE-AS-C++ t library-is-c++ set ;
 
-SYNTAX: C-LINK: scan define-c-link ;
+SYNTAX: C-LINK: scan c-link-to ;
 
-SYNTAX: C-FRAMEWORK: scan define-c-framework ;
+SYNTAX: C-FRAMEWORK: scan c-use-framework ;
 
-SYNTAX: C-LINK/FRAMEWORK: scan define-c-link/framework ;
+SYNTAX: C-LINK/FRAMEWORK: scan c-link-to/use-framework ;
 
-SYNTAX: C-INCLUDE: scan define-c-include ;
+SYNTAX: C-INCLUDE: scan c-include ;
 
 SYNTAX: C-FUNCTION:
     function-types-effect parse-here define-c-function ;

        ] "" make c-strings get push
    ] 2bi ;

: delete-inline-library ( str -- )
    c-library-name [ remove-library ]
    [ library-path dup exists? [ delete-file ] [ drop ] if ] bi ;


        [ out>> prototype-string' ] 3bi
    ] dip append-function-body c-strings get push ;

: c-link-to ( str -- )
    "-l" prepend compiler-args get push ;

: c-use-framework ( str -- )
    "-framework" swap compiler-args get '[ _ push ] bi@ ;

: c-link-to/use-framework ( str -- )
    os macosx? [ c-use-framework ] [ c-link-to ] if ;

: c-include ( str -- )
    "#include " prepend c-strings get push ;

: define-c-typedef ( old new -- )
