📄 def_msg.c
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * def_msg.c (libtkse) * * Message management * Message handler definitions, terminate message handler */#include <basic.h>#include <extension/extension.h>#include <sys/msghdr.h>/* * Terminate message handler */EXPORT ER tkse_ret_msg( W ret ){ if ( ret == 0 ) { /* Return to the position of message interruption. */ longjmp(_MsgHdrJmpBuf, 1); } else { /* Terminate message handler and continue. */ tkse_RetMsgHdr(1); /* If there are multiple message handler startup requests, Message handler starts again just after tkse_RetMsgHdr(). */ } return E_OK;}/* * Definitions of message handler */EXPORT ER tkse_def_msg( W t_mask, FUNCP msg_hdr ){ return ( t_mask <= 0 )? E_PAR : tkse_DefMsgHdr((W)((UW)t_mask << 1), msg_hdr, &_MsgHandlers[0]);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -