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

⟦8913719fd⟧ TextFile

    Length: 438 (0x1b6)
    Types: TextFile
    Notes: UNIX file
    Names: »jl21.c«

Derivation

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

TextFile

#include	<jlib.h>

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

extern	char	jtick;

int	G_Line(wid, pt)
int	wid;
POINT	pt;
{
	MsgReceiver = SMGR;
	MsgCmd = SM_LINE;
/*
	MsgWid = wid;
*/
	MsgData0 = (wid << 8) + (jtick++ & 0xff);
	MsgPt  = pt;
	sendmess( );
	return(0);
}
 
int	G_ToLine(wid, pt)
int	wid;
POINT	pt;
{
	MsgReceiver = SMGR;
	MsgCmd = SM_TOLINE;
	MsgWid = wid;
	MsgPt  = pt;
	sendmess( );
	return(0);
}