home *** CD-ROM | disk | FTP | other *** search
- The basic programs "Adhesive","BasicC","UsefulBits" provide the following
- procedures. See the example program 'Example'. You can use these in your
- own programs.
-
- Set the current directory to be this one and then run 'Example' to
- try the example. (Double click on SetDir to set the current directory.)
-
-
- PROC_AdhesivePreInit
- Assembles Adhesive interface code and registers and exit handler to clean
- up when your program terminates.
-
- PROC_AdhesiveInit(n$)
- Register with Adhesive, pass the name of your program in n$.
-
- PROC_AdhesiveRequest(r)
- Request objects defined in the request block at r from Adhesive.
-
- PROC_AdhesiveClose
- Call this if you wish to deregister with Adhesive before your program
- exits. Otherwise this is done automatically for you when the program ends.
-
- PROC_StringFrom0(A%)
- Converts string at A% from &0D to &00 terminator.
-
- PROC_StringTo0(A%)
- Converts string at A% from &00 to &0D terminator.
-
- FN_CCall(x)
- Given a Shared C Library entry point number (as defined in the file
- tools/ShLib with your copy of Adhesive) return the address of this function.
-
- PROC_BasicCInit
- Initialises the basicC object so you can now call C functions. Do not call
- this more than once. You need to decrease HIMEM by at least 16K first. The
- example program shows you how to do this.
-
- FN_AssembleRequests_basicC
- Pass this to PROC_AdhesiveRequest() after calling PROC_AdhesiveInit and before
- calling PROC_BasicCInit. See the 'Example' program.
-
- PROC_UsefulBitsInit
- Setup some variables giving the addresses of some common C functions. See
- the file 'UsefulBits' for details.
-
- FN_Malloc(size%)
- Allocate size% bytes of memory. Returns a pointer to it or 0 if no space
- left. Your wimpslot will be increased if needed.
-
- FN_Zmalloc(size%)
- Allocate size% bytes of memory. Returns a pointer to the space. Creates an
- ERROR if there is no memory left.
-
- PROC_Free(space%)
- Free previously allocated block from malloc(). Does nothing if passed 0.
-