/* Prototypes for the req.library for use with Lattice. NO! WITH AZTEC 5.0 !!*/ /* WARNING: Not all of the req.library functions are defined here (e.g. SimpleRequest and TwoGadRequest are not, because they are in fact only assembly language stubs that call TextRequest), so if the linker gives you a "(17)Undefined Symbol: " error, you should link with reqglue.o */ void SimpleRequest (char *,...); int TwoGadRequest (char *,...); int FileRequester (struct ReqFileRequester *); void Center (struct NewWindow *,int,int); short SetSize(long,long); short SetLocation(long,long,long); short ReadLocation(long,long,long); long ReqFormat(char*,void*,char**); void DrawBox(struct RastPort*,short,short,short,short); void PurgeFiles (struct ReqFileRequester *); int ColorRequester (long); long TextRequest (struct TRStructure *); char RawKeyToAscii (long,long,APTR); void MakeButton (struct TwoImageGadget *,char *,char *,long,long,long,long); void MakeScrollBar (struct ScrollBlock *,long,long,long,long); void MakeString (char *,char *,char *,ULONG,ULONG,long,long); void MakeProp (char *,ULONG,ULONG,ULONG); void MakeGadget (char *,char *,ULONG,ULONG); void LinkGadget (struct GadgetBlock *,char *,struct NewWindow *,ULONG,ULONG); void LinkStringGadget (char *,char *,char *,struct NewWindow *,short,short, short, short); void LinkPropGadget (char *,struct NewWindow *,short, short, short,short,short); BOOL GetString (char *,char *, struct Window *, long, long); BOOL GetLong (struct GetLongStruct *); BOOL NewGetString (struct GetStringStruct *); void RealTimeScroll (struct ReqScrollStruct *); int ExtendedColorRequester (struct ExtendedColorRequester *); #ifndef __NO_PRAGMAS #pragma amicall(ReqBase, 0x1e, Center(a0,d0,d1)) #pragma amicall(ReqBase, 0x24, SetSize(d0,d1)) #pragma amicall(ReqBase, 0x2a, SetLocation(d0,d1,d2)) #pragma amicall(ReqBase, 0x30, ReadLocation(d0,d1,d2)) #pragma amicall(ReqBase, 0x36, ReqFormat(a0,a1,a2)) #pragma amicall(ReqBase, 0x54, FileRequester(a0)) #pragma amicall(ReqBase, 0x5a, ColorRequester(d0)) #pragma amicall(ReqBase, 0x60, DrawBox(a1,d0,d1,d2,d3)) #pragma amicall(ReqBase, 0x66, MakeButton(a0,a1,a2,d0,d1,d2)) #pragma amicall(ReqBase, 0x6c, MakeScrollBar(a0,d0,d1,d2,d3)) #pragma amicall(ReqBase, 0x72, PurgeFiles(a0)) #pragma amicall(ReqBase, 0x7e, MakeGadget(a0,a1,d0,d1)) #pragma amicall(ReqBase, 0x84, MakeString(a0,a1,a2,d0,d1,d2,d3)) #pragma amicall(ReqBase, 0x8a, MakeProp(a0,d0,d1,d2)) #pragma amicall(ReqBase, 0x90, LinkGadget(a0,a1,a3,d0,d1)) #pragma amicall(ReqBase, 0x96, LinkStringGadget(a0,a1,a2,a3,d0,d1,d2,d3)) #pragma amicall(ReqBase, 0x9c, LinkPropGadget(a0,a3,d0,d1,d2,d3,d4)) #pragma amicall(ReqBase, 0xa2, GetString(a0,a1,a2,d0,d1)) #pragma amicall(ReqBase, 0xa8, RealTimeScroll(a0)) #pragma amicall(ReqBase, 0xae, TextRequest(a0)) #pragma amicall(ReqBase, 0xb4, GetLong(a0)) #pragma amicall(ReqBase, 0xba, RawKeyToAscii(d0,d1,a0)) #pragma amicall(ReqBase, 0xc0, ExtendedColorRequester(a0)) #pragma amicall(ReqBase, 0xc6, NewGetString(a0)) /***********************************************************************/ /* LinkString and LinkProp have been omitted, as they require too many */ /* parameters for pragging. However, new versions of these functions */ /* are planned, to take care of this. Stay tuned. */ /* C.W. Fox */ /***********************************************************************/ /**************************************************************************/ /* Also, GetFontHeightAndWidth has been left out, as it returns values in */ /* two registers, which is difficult to manage from C. */ /* C.W. Fox */ /**************************************************************************/ #endif