Lines Matching refs:pV
71 static void SVect_Free(SIMPLEVECTOR *pV) in SVect_Free() argument
73 if (pV->mem) in SVect_Free()
74 LocalFree(pV->mem); in SVect_Free()
75 pV->mem = NULL; in SVect_Free()
78 static void* SVect_Add(SIMPLEVECTOR *pV) in SVect_Add() argument
81 if (pV->mem) in SVect_Add()
83 p = LocalReAlloc(pV->mem, pV->itemsize * (pV->count + 1), LMEM_FIXED | LMEM_MOVEABLE); in SVect_Add()
86 pV->mem = p; in SVect_Add()
87 p = (char*)p + (pV->count * pV->itemsize); in SVect_Add()
88 pV->count++; in SVect_Add()
93 p = pV->mem = LocalAlloc(LMEM_FIXED, pV->itemsize); in SVect_Add()
96 pV->count = 1; in SVect_Add()
102 #define SVect_Delete(pV, pItem) ( (pV), (pItem) ) /* Should not be required for global items */ argument
104 static void* SVect_Get(SIMPLEVECTOR *pV, UINT i) in SVect_Get() argument
106 return pV->mem && i < pV->count ? (char*)pV->mem + (i * pV->itemsize) : NULL; in SVect_Get()