IMPORT

IMPORT <function[(<type> <arg1>[, <type> <arg2>][, ...])]>
FROM <library> TYPE <type> [ALIAS <word>]

Type: statement

C 言語向けのライブラリの機能を取り込みます。FORM で戻り値の型を指定します。
任意で <arg> と <type> を用いる事ができます。
また、ALIAS で別名を指定する事が可能です。
例:

   IMPORT "ioctl" FROM "libc.so" TYPE int
   IMPORT "gdk_draw_line(long, long, int, int, int, int)" FROM
   "libgdk-x11-2.0.so" TYPE void
   IMPORT "fork" FROM "libc.so" TYPE int ALIAS "FORK"
   IMPORT "atan(double)" FROM "libm.so" TYPE double ALIAS "arctangens"
