luke@citycs.UUCP (Luke Whitaker) (06/26/89)
I have just started reading Gary Bond's "XCMD's for HyperCard". While it doesn't seem too bad in general, it assumes you either use MPW Pascal, or Lightspeed C. There doesn't seem to be any info on compiling MPW C, despite the fact that MPW C header and glue files are included as an appendix. What I need to know is 1) Do I need any #define __SEG__ thing in my code? The MPW Pascal appears to explicitly name its code segment, but I've no idea why. 2) Should the entry point to the XCMD be main()? It is in the LSC examples, but in Pascal the routine is called ENTRYPOINT, at least in one example. 3) What are the arguments to "C" and "link". I am still using MPW v2.0.2 if thats relevant :-( Also, I would be very grateful if someone could mail me the MPW C glue and header files, BUT only if your sure Apple won't mind. I assume its OK because they are included in Gary Bond's book, Gary Bond works for Apple, and he explicitly tells you to type them in to your machine. Thanks very much, Luke Whitaker, Computer Science, City University, London, EC1V OHB, England. JANET: l.whitaker@uk.ac.city.cs BITNET: l.whitaker%uk.ac.city.cs@ac.uk ARPA: l.whitaker@cs.city.ac.uk (or l.whitaker%uk.ac.city.cs@nss.cs.ucl.ac.uk) Uucp: ...!mcvax!ukc!citycs!luke (or luke@citycs.uucp)