Lines Matching refs:pool
129 xmlDictStringsPtr pool;
133 pool = dict->strings;
134 while (pool != NULL) {
135 if (pool->end - pool->free > namelen)
137 if (pool->size > size) size = pool->size;
138 pool = pool->next;
143 if (pool == NULL) {
148 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size);
149 if (pool == NULL)
151 pool->size = size;
152 pool->nbStrings = 0;
153 pool->free = &pool->array[0];
154 pool->end = &pool->array[size];
155 pool->next = dict->strings;
156 dict->strings = pool;
159 ret = pool->free;
160 memcpy(pool->free, name, namelen);
161 pool->free += namelen;
162 *(pool->free++) = 0;
181 xmlDictStringsPtr pool;
189 pool = dict->strings;
190 while (pool != NULL) {
191 if (pool->end - pool->free > namelen)
193 if (pool->size > size) size = pool->size;
194 pool = pool->next;
199 if (pool == NULL) {
204 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size);
205 if (pool == NULL)
207 pool->size = size;
208 pool->nbStrings = 0;
209 pool->free = &pool->array[0];
210 pool->end = &pool->array[size];
211 pool->next = dict->strings;
212 dict->strings = pool;
215 ret = pool->free;
216 memcpy(pool->free, prefix, plen);
217 pool->free += plen;
218 *(pool->free++) = ':';
220 memcpy(pool->free, name, namelen);
221 pool->free += namelen;
222 *(pool->free++) = 0;
501 xmlDictStringsPtr pool, nextp;
542 pool = dict->strings;
543 while (pool != NULL) {
544 nextp = pool->next;
545 xmlFree(pool);
546 pool = nextp;
866 xmlDictStringsPtr pool;
870 pool = dict->strings;
871 while (pool != NULL) {
872 if ((str >= &pool->array[0]) && (str <= pool->free))
874 pool = pool->next;