🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #16000

PPostEvent returns a ptr to QElem?

#16000
From: kkim
Date: Thu, 07 May 1987 18:36
37 lines
2000 bytes
    According to the Inside Mac, vol. 4, PPostEvent posts 
application-defined events into the event queue and returns 
a pointer to the created queue element.  And its syntax is

    FUNCTION PPostEvent(eventCode: INTEGER; eventMsg:LONGINT;
        VAR qEl: EvQEl) : OSErr
            ***  *****

1) My question is that, if qEl is a pointer to the created queue
element, qEl seems to have to be of type QElemPtr, not EvQEl
(as qHead field of type QHdr  and qLink field of type EvQEl
are of type QElemPtr).  BTW, is a variable of type EvQEl a
pointer at all?

2) Suppose that I want to change the evQModifiers field of the
created queue element.  Which of the following two expressions 
is proper?

    a) qEl.evQModifiers:=newvalue; {the fact that qEl if of type
        EvQEl seems to imply that this form is right.} OR
    b) eEl^.evQElem.evQModifiers:=newvaue; {the fact that PPostEvent
        returns a pointer to the created queue element seems to
	imply this form is correct.  If this form is correct, 
	qEl seems to have to be of type QElemPtr, not EvQEl}

3)  Also I would like to know where more information as to the above
problem can be found (I have already checked Inside Mac vols.1-4).

Please e-mail to me and I will post a summary.

Kyongsok KIM

Dept. of Computer Science; Univ. of Illinois at Urbana-Champaign

arpanet/csnet: kkim@a.cs.uiuc.edu
usenet/uucp  : {seismo, pur-ee, ihnp4}!uiucdcs!kkim
Technical Details
Message-ID: <164500027@uiucdcsb>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!lll-lcc!ptsfa!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!kkim

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!lll-lcc!ptsfa!ihnp4!inuxc!pur-ee!uiucdcs!uiucdcsb!kkim
From: kkim@uiucdcsb.UUCP
Newsgroups: comp.sys.mac
Subject: PPostEvent returns a ptr to QElem?
Message-ID: <164500027@uiucdcsb>
Date: Thu, 7-May-87 14:36:00 EDT
Article-I.D.: uiucdcsb.164500027
Posted: Thu May  7 14:36:00 1987
Date-Received: Sat, 9-May-87 08:28:29 EDT
Lines: 37
Nf-ID: #N:uiucdcsb:164500027:000:1417
Nf-From: uiucdcsb.cs.uiuc.edu!kkim    May  7 13:36:00 1987