Path: utzoo!utgpu!water!watmath!clyde!att!rutgers!cmcl2!nrl-cmf!ames!pasteur!helios.ee.lbl.gov!ux1.lbl.gov!beard From: beard@ux1.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: Copyright notices in code resources Message-ID: <631@helios.ee.lbl.gov> Date: 5 Aug 88 21:11:59 GMT References: <327@ncar.ucar.edu> <730034@hpcilzb.HP.COM> <7763@cup.portal.com> <15051@santra.UUCP> <11318@oberon.USC.EDU> <7509@cit-vax.Caltech.Edu> <5073@husc6.harvard.edu> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux1.lbl.gov (Patrick C Beard) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 34 In article <5073@husc6.harvard.edu> jjb@husc4.UUCP (Jeremy J. Bornstein) writes: >I'm writing bunches of XFCNs, and I'd like to include copyright notices >in the resources themselves, near the beginning. It would be easy enough to do by just saying: main(..args for XFCN..) { /* it would probably make sense to put the following into an include file like "Copyright.h" and #include it here. */ goto past_copyright; asm { dc.b 'C' dc.b 'o' dc.b 'p' dc.b 'y' dc.b 'r' ; etc... } past_copyright: /* code... */ } I know it's not pretty, but it would do it. It's true that you probably won't get this exactly at the beginning of the code resource since LSC puts glue there. If you switch to LSC 3.0 you can use a custom code resource header (see the manual for details) which would allow you to control everything I believe. Patrick Beard Lawrence Berkeley Laboratory beard@ux1.lbl.gov