home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / acorn / tech / 1216 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.1 KB  |  39 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!pipex!harlqn.co.uk!harlqn!jont
  3. From: jont@harlqn.co.uk (Jon Thackray)
  4. Subject: Objasm/Aasm conditional includes
  5. Message-ID: <JONT.93Jan11132146@ml.harlqn.co.uk>
  6. Lines: 28
  7. Sender: news@harlqn.co.uk (Usenet News Account)
  8. Organization: Harlequin Limited, Cambridge, England
  9. Date: Mon, 11 Jan 1993 13:21:46 GMT
  10.  
  11. Well no-one else seems to solved this problem, so here's a solution.
  12. The problem is to avoid multiple scanning of files acquired by GET,
  13. similar to the multiple include problem in C. Objasm and AAsm have an
  14. operator :DEF: for seeing if variables are defined yet. Thus one can
  15. write:-
  16.  
  17.  [ :LNOT:(:DEF:A)
  18.  GBLA A
  19. ;
  20. ; A is actually a variable whose name should be unique to this source
  21. ; file
  22. ;
  23. ; Insert your source here
  24. ;
  25.  ]
  26.  END
  27.  
  28. PS This may well be using an undocumented feature, it's a long time
  29. since I wrote the code to implement it. and even longer since I've
  30. seen the released documentation.
  31. --
  32.  
  33. Jon Thackray                    jont@uk.co.harlqn       44 223 872522 (voice)
  34. Harlequin Ltd.                  jgt1@uk.ac.cam.phx      44 223 872519 (fax)
  35. Barrington Hall
  36. Barrington
  37. Cambridge CB2 5RG
  38. England
  39.