📄 mfm40opendir.c
字号:
#ifdef FSS_FTR#define ACCESS_RIGHTS_INTERNAL_MFM#define MFM40OPENDIR_C#include "mFm.h"#undef FILE_NUMBER#define FILE_NUMBER 40 #undef PROCEDURE_NUMBER #define PROCEDURE_NUMBER 1void mFm40_01OpenDir( void * pp_LayerContext, void * pp_Param ){ t_fs_llOpenDir * pl_Param = (t_fs_llOpenDir *) pp_Param; /* Get memory to reserve the FM directory's context */ t_ObjectInfo * pl_ObjInfo = pl_Param->p_ObjInfo; t_DirFileInfo * pl_DirFileInfo = (t_DirFileInfo *) &pl_ObjInfo->a_LowLayerPrivate[0]; t_OpenedDirCtx * pl_DirCtx = (t_OpenedDirCtx *) MC_MFM_GET_MEMORY (sizeof (t_OpenedDirCtx) ); /* Update pointer of caller */ *pl_Param->p_FmPrivateDirInfo = (void *) pl_DirCtx; /* Initialize this context */ pl_DirCtx->v_Position = 0; pl_DirCtx->v_DirId = pl_ObjInfo->v_ObjID; pl_DirCtx->v_FileSize = pl_ObjInfo->v_FileSize; if ( pl_DirFileInfo->v_FileSize == 0 ) pl_DirCtx->v_EndOfFile = TRUE; else pl_DirCtx->v_EndOfFile = FALSE; /* Insert this context in double linked list of open directories */ mFm80_09InsertCtx( (t_mFmLayerContext *) pp_LayerContext, pl_DirCtx );}#endif /* FSS_FTR */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -