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

📄 nint_next.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#ifndef	lint#ifdef sccsstatic	char sccsid[] = "@(#)nint_next.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif/* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Nint_next.c - Implement the nint_next_callout private interface. */#include <sunwindow/ntfy.h>#include <sunwindow/ndet.h>#include <sunwindow/nint.h>pkg_private Notify_funcnint_next_callout(nclient, type)	Notify_client nclient;	NTFY_TYPE type;{	NTFY_CONDITION *stack_cond;	Notify_func func;	NTFY_BEGIN_CRITICAL;	/* Do error checking */	if (nint_stack_next < 1) {		ntfy_set_errno(NOTIFY_INVAL);		goto Error;	}	/* Get top stack condition */	stack_cond = &nint_stack[nint_stack_next-1];	/* Do further error and consistency checking */	if (stack_cond->func_count == 1 ||	    stack_cond->func_next > stack_cond->func_count ||	    stack_cond->func_next+1 > NTFY_FUNCS_MAX ||	    stack_cond->type != type ||	    stack_cond->data.an_u_int != (u_int) nclient) {		ntfy_set_errno(NOTIFY_INVAL);		goto Error;	}	/* Get next function */	func = stack_cond->callout.functions[stack_cond->func_next];	/* Increment function index */	stack_cond->func_next++;	NTFY_END_CRITICAL;	return(func);Error:	NTFY_END_CRITICAL;	return(NOTIFY_FUNC_NULL);}

⌨️ 快捷键说明

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