home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!mcsun!sunic!liuida!micja
- From: micja@ida.liu.se (Michael Jansson)
- Subject: Re: What is (APTR) ?
- Message-ID: <1992Sep14.130914.13505@ida.liu.se>
- Originator: micja@obel30
- Sender: news@ida.liu.se
- Organization: Department of Computer Science, University of Linkoping
- References: <9209140718.AA09878@teetot.acusd.edu> <copes.716466012@marsh> <1630@lysator.liu.se>
- Date: Mon, 14 Sep 1992 13:09:14 GMT
- Lines: 26
-
-
- In article <1630@lysator.liu.se>, boberg@lysator.liu.se (Stefan Boberg) writes:
-
- > Excerpt from `exec/types.h' :
- >
- > /* WARNING: APTR was redefined for the V36 Includes! APTR is a */
- > /* 32-Bit Absolute Memory Pointer. C pointer math will not */
- > /* operate on APTR -- use "ULONG *" instead. */
- > ^^^^^^^^^
- >
- > BTW: Why isn't this "UBYTE *" ?? Why on earth would anyone want ULONG
- > pointer arithmetic?
-
- Have you ever used Tags? Process a file like Font:CGTimes.otag and you will find
- several reasons for doing pointer maths (trust me) on ULONG:s.
-
- Beside, a (UBYTE *) pointer is a 8-bit memory pointer, i.e. can be none long word
- aligned and should *never* be declared as a APTR. Bad things happened if you do...
-
- - Michael
-
-
-
- --
- __________________________________________________________________________
- Michael Jansson mij@IDA.LIU.SE, uunet!liuida!mij, mij@SELIUI51.BITNET
-