Changeset 44290 in vbox for trunk/src/VBox/GuestHost/OpenGL/util
- Timestamp:
- Jan 14, 2013 9:49:11 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 83199
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/hash.c
r44193 r44290 24 24 } FreeElem; 25 25 26 typedef struct CRHashIdPool Rec{26 typedef struct CRHashIdPool { 27 27 RTLISTNODE freeList; 28 28 } CRHashIdPool; … … 44 44 45 45 46 staticCRHashIdPool *crAllocHashIdPool( void )46 CRHashIdPool *crAllocHashIdPool( void ) 47 47 { 48 48 CRHashIdPool *pool = (CRHashIdPool *) crCalloc(sizeof(CRHashIdPool)); … … 55 55 } 56 56 57 staticvoid crFreeHashIdPool( CRHashIdPool *pool )57 void crFreeHashIdPool( CRHashIdPool *pool ) 58 58 { 59 59 FreeElem *i, *next; … … 65 65 crFree(pool); 66 66 } 67 68 static GLboolean crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id );69 67 70 68 #ifdef DEBUG_misha … … 122 120 * Return 0 if we fail. 123 121 */ 124 staticGLuint crHashIdPoolAllocBlock( CRHashIdPool *pool, GLuint count )122 GLuint crHashIdPoolAllocBlock( CRHashIdPool *pool, GLuint count ) 125 123 { 126 124 FreeElem *f, *next; … … 157 155 * Free a block of <count> IDs starting at <first>. 158 156 */ 159 staticvoid crHashIdPoolFreeBlock( CRHashIdPool *pool, GLuint first, GLuint count )157 void crHashIdPoolFreeBlock( CRHashIdPool *pool, GLuint first, GLuint count ) 160 158 { 161 159 FreeElem *f; … … 249 247 * Mark the given Id as being allocated. 250 248 */ 251 staticGLboolean crHashIdPoolAllocId( CRHashIdPool *pool, GLuint id )249 GLboolean crHashIdPoolAllocId( CRHashIdPool *pool, GLuint id ) 252 250 { 253 251 FreeElem *f, *next; … … 315 313 * Determine if the given id is free. Return GL_TRUE if so. 316 314 */ 317 staticGLboolean crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id )315 GLboolean crHashIdPoolIsIdFree( const CRHashIdPool *pool, GLuint id ) 318 316 { 319 317 FreeElem *f;
Note:
See TracChangeset
for help on using the changeset viewer.