Lines Matching refs:freeptr
50 static ANTLR3_INT32 antlr3HashPut (pANTLR3_HASH_TABLE table, void * key, void * element, void (ANTLR3_CDECL *freeptr)(void *));
57 static ANTLR3_INT32 antlr3HashPutI (pANTLR3_HASH_TABLE table, ANTLR3_INTKEY key, void * element, void (ANTLR3_CDECL *freeptr)(void *));
74 static ANTLR3_INT32 antlr3ListPut (pANTLR3_LIST list, ANTLR3_INTKEY key, void * element, void (ANTLR3_CDECL *freeptr)(void *));
75 static ANTLR3_INT32 antlr3ListAdd (pANTLR3_LIST list, void * element, void (ANTLR3_CDECL *freeptr)(void *));
84 static ANTLR3_BOOLEAN antlr3StackPush (pANTLR3_STACK stack, void * element, void (ANTLR3_CDECL *freeptr)(void *));
95 static ANTLR3_UINT32 antlr3VectorAdd (pANTLR3_VECTOR vector, void * element, void (ANTLR3_CDECL *freeptr)(void *));
96 static ANTLR3_UINT32 antlr3VectorSet (pANTLR3_VECTOR vector, ANTLR3_UINT32 entry, void * element, void (ANTLR3_CDECL *freeptr)(void *), ANTLR3_BOOLEAN freeExisting);
110 static ANTLR3_BOOLEAN intTrieAdd (pANTLR3_INT_TRIE trie, ANTLR3_INTKEY key, ANTLR3_UINT32 type, ANTLR3_INTKEY intType, void * data, void (ANTLR3_CDECL *freeptr)(void *));
523 antlr3HashPutI(pANTLR3_HASH_TABLE table, ANTLR3_INTKEY key, void * element, void (ANTLR3_CDECL *freeptr)(void *))
577 entry->free = freeptr; /* Function that knows how to release the entry */
594 antlr3HashPut(pANTLR3_HASH_TABLE table, void * key, void * element, void (ANTLR3_CDECL *freeptr)(void *))
648 entry->free = freeptr; /* Function that knows how to release the entry */
929 static ANTLR3_INT32 antlr3ListAdd (pANTLR3_LIST list, void * element, void (ANTLR3_CDECL *freeptr)(void *))
934 return list->put(list, key, element, freeptr);
958 antlr3ListPut (pANTLR3_LIST list, ANTLR3_INTKEY key, void * element, void (ANTLR3_CDECL *freeptr)(void *))
960 return list->table->putI(list->table, key, element, freeptr);
1047 antlr3StackPush (pANTLR3_STACK stack, void * element, void (ANTLR3_CDECL *freeptr)(void *))
1050 return (ANTLR3_BOOLEAN)(stack->vector->add(stack->vector, element, freeptr));
1145 if (vector->elements[entry].freeptr != NULL)
1147 vector->elements[entry].freeptr(vector->elements[entry].element);
1149 vector->elements[entry].freeptr = NULL;
1170 if (vector->elements[entry].freeptr != NULL)
1172 vector->elements[entry].freeptr(vector->elements[entry].element);
1174 vector->elements[entry].freeptr = NULL;
1205 if (vector->elements[entry].freeptr != NULL)
1207 vector->elements[entry].freeptr(vector->elements[entry].element);
1208 vector->elements[entry].freeptr = NULL;
1271 vector->elements[entry].freeptr = NULL;
1331 static ANTLR3_UINT32 antlr3VectorAdd (pANTLR3_VECTOR vector, void * element, void (ANTLR3_CDECL *freeptr)(void *))
1343 vector->elements[vector->count].freeptr = freeptr;
1355 antlr3VectorSet (pANTLR3_VECTOR vector, ANTLR3_UINT32 entry, void * element, void (ANTLR3_CDECL *freeptr)(void *), ANTLR3_BOOLEAN freeExisting)
1369 && vector->elements[entry].freeptr != NULL // And the existing element has a free pointer
1372 vector->elements[entry].freeptr(vector->elements[entry].element);
1377 vector->elements[entry].freeptr = freeptr;
1396 void (ANTLR3_CDECL *freeptr)(void *);
1408 freeptr = vector->elements[entry1].freeptr;
1412 vector->elements[entry1].freeptr = vector->elements[entry2].freeptr;
1415 vector->elements[entry2].freeptr = freeptr;
1912 intTrieAdd (pANTLR3_INT_TRIE trie, ANTLR3_INTKEY key, ANTLR3_UINT32 type, ANTLR3_INTKEY intVal, void * data, void (ANTLR3_CDECL *freeptr)(void *))
1977 newEnt->freeptr = freeptr;
2134 newEnt->freeptr = freeptr;
2225 if (thisEntry->type == ANTLR3_HASH_TYPE_STR && thisEntry->freeptr != NULL)
2227 thisEntry->freeptr(thisEntry->data.ptr);