//########################################### CPAGE_FUNC(char *) CPAGE_GetNameInternalType(Handle type) { char * rc = NULL; PROLOG; SetReturnCode_cpage(IDS_ERR_NO); if(type != NULL) rc = NameData.GetItem(type); EPILOG; return rc; }
//########################################### 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; }