home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18448 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.6 KB

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