MCPcopy Create free account
hub / github.com/NetHack/NetHack / GetFMsg

Function GetFMsg

sys/amiga/amiwind.c:773–796  ·  view source on GitHub ↗

This routine adapted from AmigaMail IV-37 by Michael Sinz */

Source from the content-addressed store, hash-verified

771#ifdef AMIFLUSH
772/* This routine adapted from AmigaMail IV-37 by Michael Sinz */
773static struct Message *
774GetFMsg(struct MsgPort *port)
775{
776 struct IntuiMessage *msg, *succ, *succ1;
777
778 if (msg = (struct IntuiMessage *) GetMsg(port)) {
779 if (!sysflags.amiflush)
780 return ((struct Message *) msg);
781 if (msg->Class == RAWKEY) {
782 Forbid();
783 succ = (struct IntuiMessage *) (port->mp_MsgList.lh_Head);
784 while (succ1 = (struct IntuiMessage *) (succ->ExecMessage.mn_Node
785 .ln_Succ)) {
786 if (succ->Class == RAWKEY) {
787 Remove((struct Node *) succ);
788 ReplyMsg((struct Message *) succ);
789 }
790 succ = succ1;
791 }
792 Permit();
793 }
794 }
795 return ((struct Message *) msg);
796}
797#endif
798
799struct NewWindow *

Callers 1

amikbhitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected