ctxstep.c

来自「the vxworks system kernel souce packeg.t」· C语言 代码 · 共 61 行

C
61
字号
/* ctxstep.c  - xdr rtn for coding/decoding the WDB_CTX_STEP_DESC structure *//* Copyright 1994-1998 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------01g,22jan98,c_c  Removed EXT_FUNC references.01f,30jan96,elp added windll.h, changed xdr_TGT_ADDR_T in macro.01e,10jun95,pad Included rpc/rpc.h01d,04apr95,ms  new data types.01c,06nov94,tpr added comments.		changed xdr function of the context field.01b,26oct94,tpr changed all CONTEXT_SOURCE_STEP by WDB_CTX_STEP_DESC.01a,03oct94,tpr	written.*//*DESCRIPTIONThis module contains the eXternal Data Representation (XDR) routinefor the WDB_CTX_STEP_DESC structure of the WDB protocol.*//* includes */#include <rpc/rpc.h>#include "wdbP.h"/********************************************************************************* xdr_WDB_CTX_STEP_DESC - code, decode or free the WDB_CTX_STEP_DESC structure.** This function codes, decodes or frees the WDB_CTX_STEP_DESC structure of* the protocol WDB.** RETURNS: TRUE if it succeeds, FALSE otherwise.*/BOOL xdr_WDB_CTX_STEP_DESC    (    XDR *		xdrs,		/* xdr handle */    WDB_CTX_STEP_DESC *	objp		/* pointer to WDB_CTX_STEP_DESC */    )    {    if (!xdr_WDB_CTX (xdrs, &objp->context))	return (FALSE);    if (!xdr_TGT_ADDR_T (xdrs, &objp->startAddr))	return (FALSE);    if (!xdr_TGT_ADDR_T (xdrs, &objp->endAddr))	return (FALSE);    return (TRUE);    }

⌨️ 快捷键说明

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