BOOL IsStructFieldRedefinition(char *name, TypeStruct *t) { if(SearchListItem(name, t->fieldList)) return TRUE; else return FALSE; }
SIMPLE_LIST* GetListItem(void* key, SIMPLE_LIST** ppFirst, unsigned nSize) { SIMPLE_LIST* p; p = SearchListItem(key, ppFirst); if (p) return p; // if it was not found then alloc p = *ppFirst; *ppFirst = VirtualAlloc(NULL, nSize ? nSize : sizeof(SIMPLE_LIST), MEM_COMMIT, PAGE_READWRITE); (*ppFirst)->key = key; if (p){ p->prev = *ppFirst; (*ppFirst)->next = p; } return *ppFirst; }