| 1 |
C Interface Functions for Icon |
| 2 |
|
| 3 |
This directory contains C functions that can be called from Icon on |
| 4 |
systems supporting dynamic loading via dlopen(3). These systems include |
| 5 |
SunOS, Solaris, OSF/1, Irix, and Linux. |
| 6 |
|
| 7 |
To see what's available, look at the comments in the .c files. To use |
| 8 |
a C function, just use "link cfunc" and call the function by name. |
| 9 |
|
| 10 |
The C functions are loaded at runtime from a library file "libcfunc.so", |
| 11 |
which is found automatically in the Icon binary directory. This can be |
| 12 |
be overridden by setting the FPATH environment variable to a search path. |
| 13 |
|
| 14 |
To build the library, run "make". This process also builds "cfunc.icn", |
| 15 |
the file of interface procedures that actually load the C functions. |