//########################################### CPAGE_FUNC(void) CPAGE_DeletePage(Handle page) { PROLOG; SetReturnCode_cpage(IDS_ERR_NO); Page.Del(page); if(hCurPage == page) hCurPage = NULL; EPILOG; }
//########################################### CPAGE_FUNC(Handle) CPAGE_CreatePage(Handle type,void * lpdata, uint32_t size) { PROLOG; BACKUPPAGE tail; SetReturnCode_cpage(IDS_ERR_NO); Handle hPage = Page.AddTail(tail); if(hPage) { if(!Page.GetItem(hPage).SetData(type,lpdata,size)) { Page.Del(hPage); hPage = NULL; if(hCurPage == hPage) hCurPage = NULL; } else hCurPage = hPage; } EPILOG; return hPage; }