⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win.c

📁 用于motorala 68K系列处理器的小实时多任务操作系统 The OMU Kernel was written to provide a cut-down Unix-like O/S for a
💻 C
字号:
/****************************************************************************** *	Win.c		Window hacks for window operation ****************************************************************************** */#ifdef	VIWINDOWS/* *	THIS IS A MAJOR HACK ! *	The window driver calls this routine on open to *	Set the address of functions to be called when the *	Kernal whishes to know which processes window a point *	is within. *	The kernal can now call these functions via winset() etc. */static int	(*posfunc)();static int	(*echofunc)();/* *	Initwin()	Initialise window functions to required addresses */initwin(pfunc, efunc)int	(*pfunc)();int	(*efunc)();{	posfunc = pfunc;	echofunc = efunc;	return 0;}/* *	Winset()	Calls window driver, if present, to see what process *			has the window given the reqired point co-ords. *			If the mode argument is 1 then the window is brought *			to the forground. *			The viinfo structure, pointed to by arg, is *			is filled with the required data. */winset(arg, mode)int	*arg;int	mode;{	if(posfunc)		return (*posfunc)(arg, mode);	else		return -1;}/* *	Winecho()	Calls window driver, to print the given character *			in the previously defined echo window. */winecho(buf, nbytes)char	*buf;int	nbytes;{	if(echofunc){		return (*echofunc)(buf, nbytes);	}	else		return -1;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -