home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume6 / glib / part01 / README.arp < prev    next >
Encoding:
Text File  |  1989-05-14  |  1.4 KB  |  42 lines

  1. ADDITION OF ARP FILE REQUESTER TO GLIB
  2.  
  3. The file machdep.c (Amiga version) has been modified to use the ARP
  4. file requester if the symbol ARP is defined.
  5.  
  6. e.g. to compile machdep.c using Lattice 5.02 use:
  7.     lc -cw -dARP machdep
  8.  
  9. The boolean variable FileRequestImminent is set to TRUE if the subroutine
  10. windstr(s) is called with the first 9 characters of the string "s" equal
  11. to "File name"; i.e., it looks for the "File name --> " prompt.
  12.  
  13. If FileRequestImminent is TRUE when the subroutine windgets(s), is called,
  14. then the ARP file requester is invoked and the resultant file name is
  15. returned in the string s.  FileRequestImminent is set to FALSE so that
  16. subsequent calls to windgets(s) do not invoke the ARP file requester,
  17. unless preceeded by another file name prompt.
  18.  
  19. The above works only if "glib.c" sticks more or less to the following
  20. method of getting the file name:
  21.     message("File name --> ");
  22.     windgets(fname);
  23.  
  24. When linking, if ARP is defined, it is necessary to use the ARP startup
  25. code "arpc.o" instead of the usual "c.o", and to include LIB:arp.lib,
  26. e.g.:
  27.  
  28. FROM LIB:arpc.o+glib.o+d10pat.o+ etc.
  29. TO glib
  30. LIB LIB:arp.lib LIB:lc.lib LIB:amiga.lib
  31.  
  32. If the program is compiled to use the ARP file requester, and is then
  33. run on a system which does not have "arp.library" in libs:, then it
  34. will gracefully exit with an error message (as with other ARP programs).
  35.  
  36.     Dave Weiler
  37.     #513, 918-16 Ave NW
  38.     CALGARY, Alberta
  39.     Canada T2M 0K3
  40.     (403) 295-3084
  41.     bix: dweiler
  42.