Ignore:
Timestamp:
Feb 21, 2002, 8:24:22 PM (23 years ago)
Author:
umoeller
Message:

misc. updates

File:
1 edited

Legend:

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

    r127 r142  
    343343 */
    344344
    345 int TREEENTRY CompareXStrings(ULONG ul1,
    346                               ULONG ul2)
     345static int TREEENTRY CompareXStrings(ULONG ul1,
     346                                     ULONG ul2)
    347347{
    348348    return (strhcmp(((PXSTRING)ul1)->psz,
     
    914914 */
    915915
    916 APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle,
    917                             PXMLCONTENT pModel,
    918                             TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree
    919                                                        // (passed to all recursions)
     916static APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle,
     917                                   PXMLCONTENT pModel,
     918                                   TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree
     919                                                              // (passed to all recursions)
    920920{
    921921    APIRET arc = NO_ERROR;
     
    10741074 */
    10751075
    1076 VOID ValidateElement(PXMLDOM pDom,
    1077                      PDOMNODE pNewElement,     // in: new element
    1078                      PCMELEMENTDECLNODE pParentElementDecl)
    1079                                                // in: element decl of element's parent
     1076static VOID ValidateElement(PXMLDOM pDom,
     1077                            PDOMNODE pNewElement,     // in: new element
     1078                            PCMELEMENTDECLNODE pParentElementDecl)
     1079                                                      // in: element decl of element's parent
    10801080{
    10811081    if (pDom && pNewElement)
     
    12331233 */
    12341234
    1235 VOID ValidateAttributeType(PXMLDOM pDom,
    1236                            PDOMNODE pAttrib,
    1237                            PCMATTRIBUTEDECLBASE *ppAttribDeclBase)
     1235static VOID ValidateAttributeType(PXMLDOM pDom,
     1236                                  PDOMNODE pAttrib,
     1237                                  PCMATTRIBUTEDECLBASE *ppAttribDeclBase)
    12381238{
    12391239    PDOMNODE pElement = pAttrib->pParentNode;
     
    12971297 */
    12981298
    1299 VOID ValidateAllAttributes(PXMLDOM pDom,
    1300                            PCMATTRIBUTEDECLBASE pAttribDeclBase,
    1301                            PDOMNODE pNewElement)
     1299static VOID ValidateAllAttributes(PXMLDOM pDom,
     1300                                  PCMATTRIBUTEDECLBASE pAttribDeclBase,
     1301                                  PDOMNODE pNewElement)
    13021302{
    13031303    PCMATTRIBUTEDECL pDeclThis
     
    13661366 */
    13671367
    1368 PDOMSTACKITEM PopElementStack(PXMLDOM pDom,
    1369                               PLISTNODE *ppListNode)
     1368static PDOMSTACKITEM PopElementStack(PXMLDOM pDom,
     1369                                     PLISTNODE *ppListNode)
    13701370{
    13711371    PDOMSTACKITEM   pStackItem = NULL;
     
    13961396 */
    13971397
    1398 VOID PushElementStack(PXMLDOM pDom,
    1399                       PDOMNODE pDomNode)
     1398static VOID PushElementStack(PXMLDOM pDom,
     1399                             PDOMNODE pDomNode)
    14001400{
    14011401    PDOMSTACKITEM pNew = (PDOMSTACKITEM)malloc(sizeof(*pNew));
     
    14361436 */
    14371437
    1438 int EXPATENTRY UnknownEncodingHandler(void *pUserData,   // in: out PXMLDOM really
    1439                                       const XML_Char *pcszName,
    1440                                       XML_Encoding *pEncoding)
     1438static int EXPATENTRY UnknownEncodingHandler(void *pUserData,   // in: out PXMLDOM really
     1439                                             const XML_Char *pcszName,
     1440                                             XML_Encoding *pEncoding)
    14411441{
    14421442    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    15011501 */
    15021502
    1503 void EXPATENTRY StartElementHandler(void *pUserData,      // in: our PXMLDOM really
    1504                                     const char *pcszElement,
    1505                                     const char **papcszAttribs)
     1503static void EXPATENTRY StartElementHandler(void *pUserData,      // in: our PXMLDOM really
     1504                                           const char *pcszElement,
     1505                                           const char **papcszAttribs)
    15061506{
    15071507    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    15961596 */
    15971597
    1598 void EXPATENTRY EndElementHandler(void *pUserData,      // in: our PXMLDOM really
    1599                                   const XML_Char *name)
     1598static void EXPATENTRY EndElementHandler(void *pUserData,      // in: our PXMLDOM really
     1599                                         const XML_Char *name)
    16001600{
    16011601    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    16321632 */
    16331633
    1634 void EXPATENTRY CharacterDataHandler(void *pUserData,      // in: our PXMLDOM really
    1635                                      const XML_Char *s,
    1636                                      int len)
     1634static void EXPATENTRY CharacterDataHandler(void *pUserData,      // in: our PXMLDOM really
     1635                                            const XML_Char *s,
     1636                                            int len)
    16371637{
    16381638    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    17431743 */
    17441744
    1745 void EXPATENTRY CommentHandler(void *pUserData,      // in: our PXMLDOM really
    1746                                const XML_Char *data)
     1745static void EXPATENTRY CommentHandler(void *pUserData,      // in: our PXMLDOM really
     1746                                      const XML_Char *data)
    17471747{
    17481748    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    17781778 */
    17791779
    1780 void EXPATENTRY StartDoctypeDeclHandler(void *pUserData,
    1781                                         const XML_Char *pcszDoctypeName,
    1782                                         const XML_Char *pcszSysid,
    1783                                         const XML_Char *pcszPubid,
    1784                                         int fHasInternalSubset)
     1780static void EXPATENTRY StartDoctypeDeclHandler(void *pUserData,
     1781                                               const XML_Char *pcszDoctypeName,
     1782                                               const XML_Char *pcszSysid,
     1783                                               const XML_Char *pcszPubid,
     1784                                               int fHasInternalSubset)
    17851785{
    17861786    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    18171817 */
    18181818
    1819 void EXPATENTRY EndDoctypeDeclHandler(void *pUserData)      // in: our PXMLDOM really
     1819static void EXPATENTRY EndDoctypeDeclHandler(void *pUserData)      // in: our PXMLDOM really
    18201820{
    18211821    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    18361836 */
    18371837
    1838 void EXPATENTRY NotationDeclHandler(void *pUserData,      // in: our PXMLDOM really
    1839                                     const XML_Char *pcszNotationName,
    1840                                     const XML_Char *pcszBase,
    1841                                     const XML_Char *pcszSystemId,
    1842                                     const XML_Char *pcszPublicId)
     1838static void EXPATENTRY NotationDeclHandler(void *pUserData,      // in: our PXMLDOM really
     1839                                           const XML_Char *pcszNotationName,
     1840                                           const XML_Char *pcszBase,
     1841                                           const XML_Char *pcszSystemId,
     1842                                           const XML_Char *pcszPublicId)
    18431843{
    18441844    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    19041904 */
    19051905
    1906 int EXPATENTRY ExternalEntityRefHandler(void *pUserData,      // in: our PXMLDOM really
    1907                                         XML_Parser parser,
    1908                                         const XML_Char *pcszContext,
    1909                                         const XML_Char *pcszBase,
    1910                                         const XML_Char *pcszSystemId,
    1911                                         const XML_Char *pcszPublicId)
     1906static int EXPATENTRY ExternalEntityRefHandler(void *pUserData,      // in: our PXMLDOM really
     1907                                               XML_Parser parser,
     1908                                               const XML_Char *pcszContext,
     1909                                               const XML_Char *pcszBase,
     1910                                               const XML_Char *pcszSystemId,
     1911                                               const XML_Char *pcszPublicId)
    19121912{
    19131913    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    19911991 */
    19921992
    1993 void EXPATENTRY ElementDeclHandler(void *pUserData,      // in: our PXMLDOM really
    1994                                    const XML_Char *pcszName,
    1995                                    XMLCONTENT *pModel)
     1993static void EXPATENTRY ElementDeclHandler(void *pUserData,      // in: our PXMLDOM really
     1994                                          const XML_Char *pcszName,
     1995                                          XMLCONTENT *pModel)
    19961996{
    19971997    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    20412041 */
    20422042
    2043 APIRET AddEnum(PCMATTRIBUTEDECL pDecl,
    2044                const char *p,           // in: start of name
    2045                const char *pNext)       // in: end of name (not included)
     2043static APIRET AddEnum(PCMATTRIBUTEDECL pDecl,
     2044                      const char *p,           // in: start of name
     2045                      const char *pNext)       // in: end of name (not included)
    20462046{
    20472047    // PSZ pszType = strhSubstr(p, pNext);
     
    20902090 */
    20912091
    2092 void EXPATENTRY AttlistDeclHandler(void *pUserData,      // in: our PXMLDOM really
    2093                                    const XML_Char *pcszElementName,
    2094                                    const XML_Char *pcszAttribName,
    2095                                    const XML_Char *pcszAttribType,
    2096                                    const XML_Char *pcszDefault,
    2097                                    int fIsRequired)
     2092static void EXPATENTRY AttlistDeclHandler(void *pUserData,      // in: our PXMLDOM really
     2093                                          const XML_Char *pcszElementName,
     2094                                          const XML_Char *pcszAttribName,
     2095                                          const XML_Char *pcszAttribType,
     2096                                          const XML_Char *pcszDefault,
     2097                                          int fIsRequired)
    20982098{
    20992099    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    22722272 */
    22732273
    2274 void EXPATENTRY EntityDeclHandler(void *pUserData,      // in: our PXMLDOM really
    2275                                   const XML_Char *pcszEntityName,
    2276                                   int fIsParameterEntity,
    2277                                   const XML_Char *pcszValue,
    2278                                   int iValueLength,
    2279                                   const XML_Char *pcszBase,
    2280                                   const XML_Char *pcszSystemId,
    2281                                   const XML_Char *pcszPublicId,
    2282                                   const XML_Char *pcszNotationName)
     2274static void EXPATENTRY EntityDeclHandler(void *pUserData,      // in: our PXMLDOM really
     2275                                         const XML_Char *pcszEntityName,
     2276                                         int fIsParameterEntity,
     2277                                         const XML_Char *pcszValue,
     2278                                         int iValueLength,
     2279                                         const XML_Char *pcszBase,
     2280                                         const XML_Char *pcszSystemId,
     2281                                         const XML_Char *pcszPublicId,
     2282                                         const XML_Char *pcszNotationName)
    22832283{
    22842284    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    29792979 */
    29802980
    2981 VOID WriteNodes(PXSTRING pxstr,
    2982                 PDOMNODE pDomNode)       // in: node whose children are to be written (initially DOCUMENT)
     2981static VOID WriteNodes(PXSTRING pxstr,
     2982                       PDOMNODE pDomNode)       // in: node whose children are to be written (initially DOCUMENT)
    29832983{
    29842984    PLISTNODE pListNode;
Note: See TracChangeset for help on using the changeset viewer.