Changeset 113 for trunk/src/helpers/xml.c
- Timestamp:
- Oct 23, 2001, 11:25:46 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/xml.c
r106 r113 522 522 // remove from parent's attributes map 523 523 treeDelete(&pDomNode->pParentNode->AttributesMap, 524 NULL, 524 525 (TREE*)pNode); 525 526 else … … 619 620 // add to parent's attributes list 620 621 if (treeInsert(&pParentNode->AttributesMap, 622 NULL, 621 623 &pNewNode->NodeBase.Tree, 622 624 CompareXStrings)) … … 648 650 649 651 lstInit(&pNewNode->llChildren, FALSE); 650 treeInit(&pNewNode->AttributesMap );652 treeInit(&pNewNode->AttributesMap, NULL); 651 653 } 652 654 … … 883 885 pNew->fHasInternalSubset = fHasInternalSubset; 884 886 885 treeInit(&pNew->ElementDeclsTree );886 treeInit(&pNew->AttribDeclBasesTree );887 treeInit(&pNew->ElementDeclsTree, NULL); 888 treeInit(&pNew->AttribDeclBasesTree, NULL); 887 889 888 890 *ppNew = pNew; … … 929 931 xstrcpy(&pParticle->NodeBase.strNodeName, pModel->name, 0); 930 932 treeInsert(ppElementNamesTree, 933 NULL, 931 934 &pParticle->NodeBase.Tree, 932 935 CompareXStrings); … … 1020 1023 if (!arc) 1021 1024 { 1022 treeInit(&pNew->ParticleNamesTree );1025 treeInit(&pNew->ParticleNamesTree, NULL); 1023 1026 1024 1027 // set up the "particle" member and recurse into sub-particles … … 2028 2031 // add this to the doctype's declarations tree 2029 2032 if (treeInsert(&pDocType->ElementDeclsTree, 2033 NULL, 2030 2034 (TREE*)pNew, 2031 2035 CompareXStrings)) … … 2061 2065 if (!arc) 2062 2066 treeInsert(&pDecl->ValuesTree, 2067 NULL, 2063 2068 (TREE*)pNew, 2064 2069 CompareXStrings); … … 2153 2158 { 2154 2159 // initialize the subtree 2155 treeInit(&pThis->AttribDeclsTree );2160 treeInit(&pThis->AttribDeclsTree, NULL); 2156 2161 2157 2162 treeInsert(&pDocType->AttribDeclBasesTree, 2163 NULL, 2158 2164 (TREE*)pThis, 2159 2165 CompareXStrings); … … 2176 2182 if (!pDom->arcDOM) 2177 2183 { 2178 treeInit(&pNew->ValuesTree );2184 treeInit(&pNew->ValuesTree, NULL); 2179 2185 2180 2186 // check the type... expat is too lazy to parse this for … … 2242 2248 2243 2249 if (treeInsert(&pThis->AttribDeclsTree, 2250 NULL, 2244 2251 (TREE*)pNew, 2245 2252 CompareXStrings))
Note:
See TracChangeset
for help on using the changeset viewer.