DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦aa7b9cc50⟧ TextFile

    Length: 1210 (0x4ba)
    Types: TextFile
    Notes: UNIX file
    Names: »jl5.c«

Derivation

└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦2d53db1df⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »hr/src/jlib/jl5.c« 

TextFile

#include	<jlib.h>

extern	int	myfd;
extern	struct	jqueue	sendq,
			runq,
			s_replyq;

POINT	S_GetXClip(wid)
int	wid;
{
	MsgReceiver = SMGR;
	MsgCmd    = SM_GETXCLIP;
	MsgWid    = wid;
	sendmess();
	jdoze(&s_replyq);
	Msg = runq.jq_head->j_m;
	if( MsgWid != wid)
		warn("S_GetXClip: bad wid");
	return MsgPt;
}

POINT	S_GetYClip(wid)
int	wid;
{
	MsgReceiver = SMGR;
	MsgCmd    = SM_GETYCLIP;
	MsgWid    = wid;
	sendmess();
	jdoze(&s_replyq);
	Msg = runq.jq_head->j_m;
	if(MsgWid != wid)
		warn("S_GetYClip: bad wid");
	return MsgPt;
}

int	S_SetXClip(wid, xo, xc)
int	wid;
int	xo, xc;
{
	MsgReceiver = SMGR;
	MsgCmd    = SM_SETXCLIP;
	MsgWid    = wid;
	MsgData1  = xo;
	MsgData2  = xc;
	sendmess();
	return(0);
}

int	S_SetYClip(wid, yo, yc)
int	wid;
int	yo, yc;
{
	MsgReceiver = SMGR;
	MsgCmd    = SM_SETYCLIP;
	MsgWid    = wid;
	MsgData1  = yo;
	MsgData2  = yc;
	sendmess();
	return(0);
}

int	S_SetClip(wid, rect)
int	wid;
RECT	rect;
{
	MsgReceiver = SMGR;
	MsgCmd = SM_SETXCLIP;
	MsgWid = wid;
	MsgData1 = rect.origin.x;
	MsgData2 = rect.corner.x;
	sendmess();
	MsgReceiver = SMGR;
	MsgCmd   = SM_SETYCLIP;
	MsgWid   = wid;
	MsgData1 = rect.origin.y;
	MsgData2 = rect.corner.y;
	sendmess();
	return(0);
}