home *** CD-ROM | disk | FTP | other *** search
- ADDITION OF ARP FILE REQUESTER TO GLIB
-
- The file machdep.c (Amiga version) has been modified to use the ARP
- file requester if the symbol ARP is defined.
-
- e.g. to compile machdep.c using Lattice 5.02 use:
- lc -cw -dARP machdep
-
- The boolean variable FileRequestImminent is set to TRUE if the subroutine
- windstr(s) is called with the first 9 characters of the string "s" equal
- to "File name"; i.e., it looks for the "File name --> " prompt.
-
- If FileRequestImminent is TRUE when the subroutine windgets(s), is called,
- then the ARP file requester is invoked and the resultant file name is
- returned in the string s. FileRequestImminent is set to FALSE so that
- subsequent calls to windgets(s) do not invoke the ARP file requester,
- unless preceeded by another file name prompt.
-
- The above works only if "glib.c" sticks more or less to the following
- method of getting the file name:
- message("File name --> ");
- windgets(fname);
-
- When linking, if ARP is defined, it is necessary to use the ARP startup
- code "arpc.o" instead of the usual "c.o", and to include LIB:arp.lib,
- e.g.:
-
- FROM LIB:arpc.o+glib.o+d10pat.o+ etc.
- TO glib
- LIB LIB:arp.lib LIB:lc.lib LIB:amiga.lib
-
- If the program is compiled to use the ARP file requester, and is then
- run on a system which does not have "arp.library" in libs:, then it
- will gracefully exit with an error message (as with other ARP programs).
-
- Dave Weiler
- #513, 918-16 Ave NW
- CALGARY, Alberta
- Canada T2M 0K3
- (403) 295-3084
- bix: dweiler
-