Lines Matching refs:BINDING
144 typedef struct binding {
146 struct binding *nextTagBinding;
147 struct binding *prevPrefixBinding;
152 } BINDING;
156 BINDING *binding;
188 BINDING *bindings;
353 TAG_NAME *tagNamePtr, BINDING **bindingsPtr);
356 const XML_Char *uri, BINDING **bindingsPtr);
534 BINDING *m_inheritedBindings;
535 BINDING *m_freeBindingList;
914 moveToFreeBindingList(XML_Parser parser, BINDING *bindings)
917 BINDING *b = bindings;
1104 because this would overwrite existing prefix->binding pointers in
1117 destroyBindings(BINDING *bindings, XML_Parser parser)
1120 BINDING *b = bindings;
2456 BINDING *bindings = NULL;
2482 BINDING *b = bindings;
2488 b->prefix->binding = b->prevPrefixBinding;
2519 tag->name.str, since this points to the binding->uri
2537 BINDING *b = tag->bindings;
2543 b->prefix->binding = b->prevPrefixBinding;
2700 BINDING **bindingsPtr)
2712 BINDING *binding;
2910 const BINDING *b;
2914 b = id->prefix->binding;
2987 for (binding = *bindingsPtr; binding; binding = binding->nextTagBinding)
2988 binding->attId->name[-1] = 0;
2995 binding = elementType->prefix->binding;
2996 if (!binding)
3002 else if (dtd->defaultPrefix.binding) {
3003 binding = dtd->defaultPrefix.binding;
3009 if (ns_triplets && binding->prefix->name) {
3010 for (; binding->prefix->name[prefixLen++];)
3014 tagNamePtr->uriLen = binding->uriLen;
3015 tagNamePtr->prefix = binding->prefix->name;
3019 n = i + binding->uriLen + prefixLen;
3020 if (n > binding->uriAlloc) {
3025 binding->uriAlloc = n + EXPAND_SPARE;
3026 memcpy(uri, binding->uri, binding->uriLen * sizeof(XML_Char));
3028 if (p->name.str == binding->uri)
3030 FREE(binding->uri);
3031 binding->uri = uri;
3034 uri = binding->uri + binding->uriLen;
3040 memcpy(uri + 1, binding->prefix->name, prefixLen * sizeof(XML_Char));
3042 tagNamePtr->str = binding->uri;
3046 /* addBinding() overwrites the value of prefix->binding without checking.
3051 const XML_Char *uri, BINDING **bindingsPtr)
3077 BINDING *b;
3132 b = (BINDING *)MALLOC(sizeof(BINDING));
3148 b->prevPrefixBinding = prefix->binding;
3149 /* NULL binding when default namespace undeclared */
3151 prefix->binding = NULL;
3153 prefix->binding = b;
3159 prefix->binding ? uri : 0);
5499 if (dtd->defaultPrefix.binding) {
5504 len = dtd->defaultPrefix.binding->uriLen;
5508 if (!poolAppendChar(&tempPool, dtd->defaultPrefix.binding->uri[i]))
5521 if (!prefix->binding)
5530 len = prefix->binding->uriLen;
5534 if (!poolAppendChar(&tempPool, prefix->binding->uri[i]))
5661 p->defaultPrefix.binding = NULL;
5700 p->defaultPrefix.binding = NULL;