Ignore:
Timestamp:
Oct 23, 2001, 11:25:46 PM (24 years ago)
Author:
umoeller
Message:

Misc updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/xml.c

    r106 r113  
    522522                    // remove from parent's attributes map
    523523                    treeDelete(&pDomNode->pParentNode->AttributesMap,
     524                               NULL,
    524525                               (TREE*)pNode);
    525526                else
     
    619620                // add to parent's attributes list
    620621                if (treeInsert(&pParentNode->AttributesMap,
     622                               NULL,
    621623                               &pNewNode->NodeBase.Tree,
    622624                               CompareXStrings))
     
    648650
    649651        lstInit(&pNewNode->llChildren, FALSE);
    650         treeInit(&pNewNode->AttributesMap);
     652        treeInit(&pNewNode->AttributesMap, NULL);
    651653    }
    652654
     
    883885            pNew->fHasInternalSubset = fHasInternalSubset;
    884886
    885             treeInit(&pNew->ElementDeclsTree);
    886             treeInit(&pNew->AttribDeclBasesTree);
     887            treeInit(&pNew->ElementDeclsTree, NULL);
     888            treeInit(&pNew->AttribDeclBasesTree, NULL);
    887889
    888890            *ppNew = pNew;
     
    929931            xstrcpy(&pParticle->NodeBase.strNodeName, pModel->name, 0);
    930932            treeInsert(ppElementNamesTree,
     933                       NULL,
    931934                       &pParticle->NodeBase.Tree,
    932935                       CompareXStrings);
     
    10201023    if (!arc)
    10211024    {
    1022         treeInit(&pNew->ParticleNamesTree);
     1025        treeInit(&pNew->ParticleNamesTree, NULL);
    10231026
    10241027        // set up the "particle" member and recurse into sub-particles
     
    20282031                // add this to the doctype's declarations tree
    20292032                if (treeInsert(&pDocType->ElementDeclsTree,
     2033                               NULL,
    20302034                               (TREE*)pNew,
    20312035                               CompareXStrings))
     
    20612065    if (!arc)
    20622066        treeInsert(&pDecl->ValuesTree,
     2067                   NULL,
    20632068                   (TREE*)pNew,
    20642069                   CompareXStrings);
     
    21532158                    {
    21542159                        // initialize the subtree
    2155                         treeInit(&pThis->AttribDeclsTree);
     2160                        treeInit(&pThis->AttribDeclsTree, NULL);
    21562161
    21572162                        treeInsert(&pDocType->AttribDeclBasesTree,
     2163                                   NULL,
    21582164                                   (TREE*)pThis,
    21592165                                   CompareXStrings);
     
    21762182                if (!pDom->arcDOM)
    21772183                {
    2178                     treeInit(&pNew->ValuesTree);
     2184                    treeInit(&pNew->ValuesTree, NULL);
    21792185
    21802186                    // check the type... expat is too lazy to parse this for
     
    22422248
    22432249                        if (treeInsert(&pThis->AttribDeclsTree,
     2250                                       NULL,
    22442251                                       (TREE*)pNew,
    22452252                                       CompareXStrings))
Note: See TracChangeset for help on using the changeset viewer.