nint_set.c

来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 37 行

C
37
字号
#ifndef	lint#ifdef sccsstatic	char sccsid[] = "@(#)nint_set.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif/* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Nint_set.c - Implement the nint_set_func private interface. */#include <sunwindow/ntfy.h>#include <sunwindow/ndet.h>#include <sunwindow/nint.h>pkg_private Notify_funcnint_set_func(cond, new_func)	register NTFY_CONDITION *cond;	Notify_func new_func;{	Notify_func old_func;	if (cond->func_count > 1) {		old_func = cond->callout.functions[cond->func_count-1];		cond->callout.functions[cond->func_count-1] = new_func;	} else {		old_func = cond->callout.function;		cond->callout.function = new_func;		cond->func_count = 1;	}	return(old_func);}

⌨️ 快捷键说明

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