home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13350 < prev    next >
Encoding:
Internet Message Format  |  1992-09-14  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!cbnewsl!att-out!pacbell.com!pacbell!oracle!unrepliable!bounce
  2. Newsgroups: comp.sys.amiga.programmer
  3. From: dnavas@oracle.uucp (David Navas)
  4. Subject: Re: TagItem tricks
  5. Message-ID: <1992Sep14.180846.7104@oracle.us.oracle.com>
  6. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  7. Nntp-Posting-Host: mailseq.us.oracle.com
  8. Organization: Oracle Corporation, Redwood Shores CA
  9. References: <FsLEr*iY1@swinjm.UUCP> <paulk.1gtc@terapin.com>
  10. Date: Mon, 14 Sep 1992 18:08:46 GMT
  11. X-Disclaimer: This message was written by an unauthenticated user
  12.               at Oracle Corporation.  The opinions expressed are those
  13.               of the user and not necessarily those of Oracle.
  14. Lines: 26
  15.  
  16. In article <paulk.1gtc@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
  17. >Many taglists, especially ones that are pushed on the stack by stub
  18. >functions that have varargs prototypes (Like OpenScreenTags for
  19. >OpenScreenTagList) DO NOT have an extra empty word after the
  20. >TAG_DONE.  If you overwrite the corresponding ti_Data field you will
  21. >clobber memory used for something else.
  22.  
  23. Good point.  Either you must be writing code for your OWN application, or
  24. you have to be careful.
  25. However, chaining is easier to accomplish the other way around -- ie:
  26. putting your OWN additions in the front, and adding the passed tags at
  27. the end.  You should worry about duplication of ti_Tag values in either
  28. case, although it's probably more important in this instance....
  29.  
  30. If you want to chain by first finding the TAG_DONE, go -back- a level
  31. (and no, that's NOT tag = tag -1, you'll have to keep track of the last
  32. tag as you search for the TAG_DONE -- ick), save off the previous item in the
  33. front of your addition, and add your addition thereafter....
  34.  
  35. Query:  Does DuplicateTags (or whatever) create the extra longword after the
  36. TAG_DONE?
  37.  
  38.                         -Dave
  39.  
  40. David C. Navas                        dnavas@oracle.com
  41. Working for, but not speaking on behalf of, Oracle Corp.
  42.