home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13394 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!mcsun!sunic!liuida!isy!lysator.liu.se!boberg
  3. From: boberg@lysator.liu.se (Stefan Boberg)
  4. Subject: Re: What is (APTR) ?
  5. Message-ID: <1641@lysator.liu.se>
  6. Sender: news@isy.liu.se (Lord of the News)
  7. Organization: Lysator Academic Computer Society, Linkoping University, Sweden
  8. References: <9209140718.AA09878@teetot.acusd.edu> <copes.716466012@marsh> <1630@lysator.liu.se> <1992Sep14.130914.13505@ida.liu.se>
  9. Date: Tue, 15 Sep 1992 11:02:22 GMT
  10. Lines: 34
  11.  
  12. micja@ida.liu.se (Michael Jansson) writes:
  13. > boberg@lysator.liu.se (Stefan Boberg) writes:
  14.  
  15. >>   Excerpt from `exec/types.h' :
  16. >> 
  17. >>   /*  WARNING: APTR was redefined for the V36 Includes!  APTR is a   */
  18. >>  /*  32-Bit Absolute Memory Pointer.  C pointer math will not       */
  19. >> /*  operate on APTR --  use "ULONG *" instead.                     */
  20. >>                             ^^^^^^^^^
  21. >> 
  22. >>   BTW: Why isn't this "UBYTE *" ?? Why on earth would anyone want ULONG
  23. >> pointer arithmetic?
  24.  
  25. >Have you ever used Tags? Process a file like Font:CGTimes.otag and you will
  26. >find several reasons for doing pointer maths (trust me) on ULONG:s.
  27.  
  28.   Sure, but when working with tags you work with TagItem structures and
  29. the corresponding utility.library functions to obtain the taglist entries.
  30. You should never directly address a TagItem list by doing pointer
  31. arithmetic on the taglist pointer.
  32.  
  33.   My point was that since 680x0 memory is built up from bytes, the
  34. most natural pointer type would be `char *' (or UBYTE *, to use CBM 
  35. terminology).
  36.  
  37.   Anyway, I really don't care since I never use the types defined in 
  38. <exec/types.h> ...
  39.  
  40. >     Michael Jansson      mij@IDA.LIU.SE, uunet!liuida!mij, mij@SELIUI51.BITNET
  41. --
  42. Stefan Boberg - AP & EE student at Linkoping Institute of Technology, Sweden
  43.  Author of LhA, ArjA and LhArcA. Co-author of Alien Breed, Project X, Full
  44.   Contact and Miami Chase.
  45.     EMail: boberg@lysator.liu.se, lha@augs.se       FidoNet: 2:204/404
  46.