CompuServe Thread

#ARP Includes

3 messages in this thread
#34751From: Scott BallantyneFeb 14, 1989 6:41 AM
A CPTR is just a ULONG (APTR done right). It's defined in new amiga includes (not so new actually, 1.2 or so).
#34870From: Jeff WilbournFeb 15, 1989 2:24 AM
Ah, so CPTR is in the new includes, good. Apparently the difference between an APTR and a CPTR is the number of significant bits? I had thought so but the name got to me, figured it could signify an extra level of indirection or something silly like that. To verify, the use of a CPTR member would be; MOVEA.L ArpBase,A6 MOVEA.L DosBase(A6),A6 SYSCALL Open or something to that effect. Thanks, for both the help and ARP. Also thanks to Don and Paul.
#35062From: Scott BallantyneFeb 16, 1989 11:50 AM
That's correct, I think the significant bits issue is only significant for InitStruct () (exec), mainly it's a C language issue, APTR comes down to a **char, when it should have been an unsigned long, or something like that, haven't actually looked at types.h for a long time. For assembly, of course, it's all just four bytes. Glad to be of service, any old time.