Lines Matching defs:bind

4511 			   xmlSchemaPSVIIDCBindingPtr bind)
4523 if (bind == NULL)
4528 bind->definition), bind->nbNodes);
4530 for (i = 0; i < bind->nbNodes; i++) {
4531 tab = bind->nodeTable[i];
4533 for (j = 0; j < bind->definition->nbFields; j++) {
4550 if (bind->dupls && bind->dupls->nbItems) {
4551 fprintf(output, "IDC: dupls (%d):\n", bind->dupls->nbItems);
4552 for (i = 0; i < bind->dupls->nbItems; i++) {
4553 tab = bind->dupls->items[i];
4555 for (j = 0; j < bind->definition->nbFields; j++) {
4573 bind = bind->next;
4574 } while (bind != NULL);
21860 * @bind: the IDC binding
21868 xmlSchemaIDCAppendNodeTableItem(xmlSchemaPSVIIDCBindingPtr bind,
21871 if (bind->nodeTable == NULL) {
21872 bind->sizeNodes = 10;
21873 bind->nodeTable = (xmlSchemaPSVIIDCNodePtr *)
21875 if (bind->nodeTable == NULL) {
21880 } else if (bind->sizeNodes <= bind->nbNodes) {
21881 bind->sizeNodes *= 2;
21882 bind->nodeTable = (xmlSchemaPSVIIDCNodePtr *)
21883 xmlRealloc(bind->nodeTable, bind->sizeNodes *
21885 if (bind->nodeTable == NULL) {
21891 bind->nodeTable[bind->nbNodes++] = ntItem;
21920 xmlSchemaPSVIIDCBindingPtr bind = NULL;
21922 bind = ielem->idcTable;
21924 if (bind->definition == matcher->aidc->def)
21925 return(bind);
21926 if (bind->next == NULL) {
21927 bind->next = xmlSchemaIDCNewBinding(matcher->aidc->def);
21928 if (bind->next == NULL)
21930 return(bind->next);
21932 bind = bind->next;
21933 } while (bind != NULL);
21968 xmlSchemaIDCFreeBinding(xmlSchemaPSVIIDCBindingPtr bind)
21970 if (bind->nodeTable != NULL)
21971 xmlFree(bind->nodeTable);
21972 if (bind->dupls != NULL)
21973 xmlSchemaItemListFree(bind->dupls);
21974 xmlFree(bind);
21979 * @bind: the first IDC binding in the list
21984 xmlSchemaIDCFreeIDCTable(xmlSchemaPSVIIDCBindingPtr bind)
21988 while (bind != NULL) {
21989 prev = bind;
21990 bind = bind->next;
22581 /* xmlSchemaPSVIIDCBindingPtr bind; */
22650 bind = xmlSchemaIDCAcquireBinding(vctxt, matcher);
22752 if (xmlSchemaIDCAppendNodeTableItem(bind, ntItem) == -1) {
22952 xmlSchemaPSVIIDCBindingPtr bind;
22983 bind = xmlSchemaIDCAcquireBinding(vctxt, matcher);
22985 if (! WXS_ILIST_IS_EMPTY(bind->dupls)) {
22986 dupls = (xmlSchemaPSVIIDCNodePtr *) bind->dupls->items;
22987 nbDupls = bind->dupls->nbItems;
22992 if (bind->nodeTable != NULL) {
22993 nbNodeTable = bind->nbNodes;
23002 bind->nodeTable =
23004 bind->sizeNodes = matcher->targets->sizeItems;
23005 bind->nbNodes = matcher->targets->nbItems;
23067 bind->nodeTable[j]->keys[0]->val);
23078 ntkeys = bind->nodeTable[j]->keys;
23095 if (bind->dupls == NULL) {
23096 bind->dupls = xmlSchemaItemListCreate();
23097 if (bind->dupls == NULL)
23100 if (xmlSchemaItemListAdd(bind->dupls, bind->nodeTable[j]) == -1)
23105 bind->nodeTable[j] = bind->nodeTable[bind->nbNodes -1];
23106 bind->nbNodes--;
23118 if (xmlSchemaIDCAppendNodeTableItem(bind, targets[i]) == -1)
23147 xmlSchemaPSVIIDCBindingPtr bind; /* IDC bindings of the current node. */
23153 bind = vctxt->inode->idcTable;
23154 if (bind == NULL) {
23164 while (bind != NULL) {
23166 if ((bind->nbNodes == 0) && WXS_ILIST_IS_EMPTY(bind->dupls))
23174 if (aidc->def == bind->definition) {
23192 if (parBind->definition == bind->definition)
23213 nbFields = bind->definition->nbFields;
23215 for (i = 0; i < bind->nbNodes; i++) {
23216 node = bind->nodeTable[i];
23359 parBind = xmlSchemaIDCNewBinding(bind->definition);
23367 if (bind->nbNodes != 0) {
23378 parBind->nodeTable = bind->nodeTable;
23379 bind->nodeTable = NULL;
23380 parBind->sizeNodes = bind->sizeNodes;
23381 bind->sizeNodes = 0;
23382 parBind->nbNodes = bind->nbNodes;
23383 bind->nbNodes = 0;
23389 xmlMalloc(bind->nbNodes *
23398 parBind->sizeNodes = bind->nbNodes;
23399 parBind->nbNodes = bind->nbNodes;
23400 memcpy(parBind->nodeTable, bind->nodeTable,
23401 bind->nbNodes * sizeof(xmlSchemaPSVIIDCNodePtr));
23404 if (bind->dupls) {
23410 parBind->dupls = bind->dupls;
23411 bind->dupls = NULL;
23422 bind = bind->next;
23441 xmlSchemaPSVIIDCBindingPtr bind;
23461 bind = vctxt->inode->idcTable;
23462 while (bind != NULL) {
23464 bind->definition)
23466 bind = bind->next;
23468 hasDupls = (bind && bind->dupls && bind->dupls->nbItems) ? 1 : 0;
23475 if (bind != NULL) {
23477 for (j = 0; j < bind->nbNodes; j++) {
23478 keys = bind->nodeTable[j]->keys;
23499 for (j = 0; j < bind->dupls->nbItems; j++) {
23501 bind->dupls->items[j])->keys;