Lines Matching defs:map
7289 * @map: the ns-map
7291 * Frees the ns-map
7317 * @map: the ns-map
7329 xmlNsMapPtr map;
7335 map = *nsmap;
7337 if (map == NULL) {
7339 * Create the ns-map.
7341 map = (xmlNsMapPtr) xmlMalloc(sizeof(struct xmlNsMap));
7342 if (map == NULL) {
7343 xmlTreeErrMemory("allocating namespace map");
7346 memset(map, 0, sizeof(struct xmlNsMap));
7347 *nsmap = map;
7350 if (map->pool != NULL) {
7354 ret = map->pool;
7355 map->pool = ret->next;
7363 xmlTreeErrMemory("allocating namespace map item");
7369 if (map->first == NULL) {
7373 map->first = ret;
7374 map->last = ret;
7379 ret->prev = map->last;
7380 map->last->next = ret;
7381 map->last = ret;
7386 map->first->prev = ret;
7387 ret->next = map->first;
7388 map->first = ret;
7477 * TODO: Store the namespace map in the context.
7514 * @map: the namespace map
7517 * Puts in-scope namespaces into the ns-map.
7522 xmlDOMWrapNSNormGatherInScopeNs(xmlNsMapPtr *map,
7530 if ((map == NULL) || (*map != NULL))
7542 if (XML_NSMAP_NOTEMPTY(*map)) {
7546 XML_NSMAP_FOREACH(*map, mi) {
7557 mi = xmlDOMWrapNsMapAddItem(map, 0, NULL,
7619 xmlTreeErrMemory("alloc ns map item");
7629 xmlTreeErrMemory("realloc ns map item");
8017 * @nsMap: the ns-map
8330 * Aquire a normalized ns-decl and add it to the map.
8464 * Get the ns-map from the context if available.
8521 * the ns-decls need not be stored in the ns-map,
8612 * Aquire a normalized ns-decl and add it to the map.
8756 * Just cleanup the map but don't free.
8853 * Reuse the namespace map of the context.
9016 * the ns-decls need not be stored in the ns-map,
9151 * Aquire a normalized ns-decl and add it to the map.
9288 * Just cleanup the map but don't free.