home *** CD-ROM | disk | FTP | other *** search
- FuncLib
- -------
-
- This program can be used to add or remove ARexx function libraries. ARexx
- functions libraries are shared libraries that are written to be called from
- ARexx macros. Once a function library is added, its functions can be called
- from an ARexx macro (with passed arguments) just like any other ARexx command.
- For example, the library "rx_file.library" is an ARexx function library.
- (Actually, this is a rexx front-end to the dissidents requester.library).
- By using FuncLib, you can add the rx_file.library once, and then call any of
- its functions from an ARexx macro. Unlike with controlling programs, your
- script does not have to use the ADDRESS command to find some ARexx port.
- In order to use FuncLib, you have to know 2 things about a library:
-
- 1). That it is indeed setup to be an ARexx function library
- 2). The library vector offset for the Rexx Query function within the library
-
- All dissidents function libraries use -30 as the vector offset. This could
- very well be different for other programmer's libraries. Consult the documen-
- tation that you received with the library.
-
- FuncLib can only be used from the CLI (or within a startup script). The
- ARexx server must be running first (ie you must have run the RexxMast program
- once). The arguments are as follows:
-
- FuncLib <libname> <pri> <vector offset for Query func> <version> [REM][ADD]
- libname = the name of the function library to add/remove
- pri = the desired priority (-100 to 100)
- vector = the offset for the Query function (ie -30)
- version = the version number of the library'
- REM = remove the library
- ADD = add the library (default)
-
- For the libname, you must specify the .library extension (ie rx_file.library).
- The ADD keyword is optional, and the default is to add the specified library.
- Later, if you wish to remove the library, issue the FuncLib program again
- with the REM keyword.
- This program is very useful from without a startup sequence since you can
- start ARexx with the RexxMast program, and then add all of the desired function
- libraries with the FuncLib program. Then, you're ready to run ARexx macros that
- use those function libraries.
- For example, to add the rx_file.library (assuming that both the requester
- and rx_file libraries are in your LIBS: drawer),
-
- FuncLib rx_file.library 0 -30 0
-
- To remove it:
-
- FuncLib rx_file.library 0 -30 0 REM
-
- This program needs the rexxapp.library (which should be copied to your LIBS
- drawer).
-