home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!chalmers.se!etek.chalmers.se!fy.chalmers.se!f92anha
- From: f92anha@fy.chalmers.se (Anders Hammarqvist)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Version Strings...
- Message-ID: <1993Jan10.173352.22592@fy.chalmers.se>
- Date: 10 Jan 93 17:33:52 GMT
- References: <Leon.0byx@abcd.Houghton.MI.US> <C0HyvD.D5z@DMI.USherb.CA> <1in6s9INNnhl@flop.ENGR.ORST.EDU>
- Organization: Chalmers University of Technology
- Lines: 28
-
- In article <1in6s9INNnhl@flop.ENGR.ORST.EDU> brindley@maxwell.ECE.ORST.EDU (Mike Brindley) writes:
- >In article <C0HyvD.D5z@DMI.USherb.CA> vailm00@DMI.USherb.CA (MARC VAILLANCOURT) writes:
- >>-> Can anyone give me a code fragment to insert a version string in
- >>-> my program so that the AmigaDOS version program will detect it?
- >>
- >> No problem, here is an example:
- >>
- >>static char *VerString = "$VER: Hyper-Snake 0.95 (29.10.92)";
- >
- >This may be obvious, but here goes anyway :)
- >
- >Please make sure that the version string is near the beginning of the
- >executable, so that the version command can quickly find it. This can
- >normally be achieved by placing the code above (or similar code) at
- >the top of one of the programs modules, and then making that module the
- >first one in the link command.
-
- That won't work if you use the (equivalent of SAS's blink) SMALLDATA
- option, since that merges all the data segments. You're better off
- putting it in a small assembler file and saying it is code, ie:
-
- csect code
- dc.b '$VER: Hyper-Snake 0.95 (29.10.92)',0
- end
-
- and linking that as the second module.
-
- Anders, f92anha@fy.chalmers.se
-