Changeset 142 for trunk/src/helpers/xml.c
- Timestamp:
- Feb 21, 2002, 8:24:22 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/xml.c
r127 r142 343 343 */ 344 344 345 int TREEENTRY CompareXStrings(ULONG ul1,346 ULONG ul2)345 static int TREEENTRY CompareXStrings(ULONG ul1, 346 ULONG ul2) 347 347 { 348 348 return (strhcmp(((PXSTRING)ul1)->psz, … … 914 914 */ 915 915 916 APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle,917 PXMLCONTENT pModel,918 TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree919 // (passed to all recursions)916 static APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle, 917 PXMLCONTENT pModel, 918 TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree 919 // (passed to all recursions) 920 920 { 921 921 APIRET arc = NO_ERROR; … … 1074 1074 */ 1075 1075 1076 VOID ValidateElement(PXMLDOM pDom,1077 PDOMNODE pNewElement, // in: new element1078 PCMELEMENTDECLNODE pParentElementDecl)1079 // in: element decl of element's parent1076 static VOID ValidateElement(PXMLDOM pDom, 1077 PDOMNODE pNewElement, // in: new element 1078 PCMELEMENTDECLNODE pParentElementDecl) 1079 // in: element decl of element's parent 1080 1080 { 1081 1081 if (pDom && pNewElement) … … 1233 1233 */ 1234 1234 1235 VOID ValidateAttributeType(PXMLDOM pDom,1236 PDOMNODE pAttrib,1237 PCMATTRIBUTEDECLBASE *ppAttribDeclBase)1235 static VOID ValidateAttributeType(PXMLDOM pDom, 1236 PDOMNODE pAttrib, 1237 PCMATTRIBUTEDECLBASE *ppAttribDeclBase) 1238 1238 { 1239 1239 PDOMNODE pElement = pAttrib->pParentNode; … … 1297 1297 */ 1298 1298 1299 VOID ValidateAllAttributes(PXMLDOM pDom,1300 PCMATTRIBUTEDECLBASE pAttribDeclBase,1301 PDOMNODE pNewElement)1299 static VOID ValidateAllAttributes(PXMLDOM pDom, 1300 PCMATTRIBUTEDECLBASE pAttribDeclBase, 1301 PDOMNODE pNewElement) 1302 1302 { 1303 1303 PCMATTRIBUTEDECL pDeclThis … … 1366 1366 */ 1367 1367 1368 PDOMSTACKITEM PopElementStack(PXMLDOM pDom,1369 PLISTNODE *ppListNode)1368 static PDOMSTACKITEM PopElementStack(PXMLDOM pDom, 1369 PLISTNODE *ppListNode) 1370 1370 { 1371 1371 PDOMSTACKITEM pStackItem = NULL; … … 1396 1396 */ 1397 1397 1398 VOID PushElementStack(PXMLDOM pDom,1399 PDOMNODE pDomNode)1398 static VOID PushElementStack(PXMLDOM pDom, 1399 PDOMNODE pDomNode) 1400 1400 { 1401 1401 PDOMSTACKITEM pNew = (PDOMSTACKITEM)malloc(sizeof(*pNew)); … … 1436 1436 */ 1437 1437 1438 int EXPATENTRY UnknownEncodingHandler(void *pUserData, // in: out PXMLDOM really1439 const XML_Char *pcszName,1440 XML_Encoding *pEncoding)1438 static int EXPATENTRY UnknownEncodingHandler(void *pUserData, // in: out PXMLDOM really 1439 const XML_Char *pcszName, 1440 XML_Encoding *pEncoding) 1441 1441 { 1442 1442 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1501 1501 */ 1502 1502 1503 void EXPATENTRY StartElementHandler(void *pUserData, // in: our PXMLDOM really1504 const char *pcszElement,1505 const char **papcszAttribs)1503 static void EXPATENTRY StartElementHandler(void *pUserData, // in: our PXMLDOM really 1504 const char *pcszElement, 1505 const char **papcszAttribs) 1506 1506 { 1507 1507 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1596 1596 */ 1597 1597 1598 void EXPATENTRY EndElementHandler(void *pUserData, // in: our PXMLDOM really1599 const XML_Char *name)1598 static void EXPATENTRY EndElementHandler(void *pUserData, // in: our PXMLDOM really 1599 const XML_Char *name) 1600 1600 { 1601 1601 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1632 1632 */ 1633 1633 1634 void EXPATENTRY CharacterDataHandler(void *pUserData, // in: our PXMLDOM really1635 const XML_Char *s,1636 int len)1634 static void EXPATENTRY CharacterDataHandler(void *pUserData, // in: our PXMLDOM really 1635 const XML_Char *s, 1636 int len) 1637 1637 { 1638 1638 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1743 1743 */ 1744 1744 1745 void EXPATENTRY CommentHandler(void *pUserData, // in: our PXMLDOM really1746 const XML_Char *data)1745 static void EXPATENTRY CommentHandler(void *pUserData, // in: our PXMLDOM really 1746 const XML_Char *data) 1747 1747 { 1748 1748 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1778 1778 */ 1779 1779 1780 void EXPATENTRY StartDoctypeDeclHandler(void *pUserData,1781 const XML_Char *pcszDoctypeName,1782 const XML_Char *pcszSysid,1783 const XML_Char *pcszPubid,1784 int fHasInternalSubset)1780 static void EXPATENTRY StartDoctypeDeclHandler(void *pUserData, 1781 const XML_Char *pcszDoctypeName, 1782 const XML_Char *pcszSysid, 1783 const XML_Char *pcszPubid, 1784 int fHasInternalSubset) 1785 1785 { 1786 1786 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1817 1817 */ 1818 1818 1819 void EXPATENTRY EndDoctypeDeclHandler(void *pUserData) // in: our PXMLDOM really1819 static void EXPATENTRY EndDoctypeDeclHandler(void *pUserData) // in: our PXMLDOM really 1820 1820 { 1821 1821 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1836 1836 */ 1837 1837 1838 void EXPATENTRY NotationDeclHandler(void *pUserData, // in: our PXMLDOM really1839 const XML_Char *pcszNotationName,1840 const XML_Char *pcszBase,1841 const XML_Char *pcszSystemId,1842 const XML_Char *pcszPublicId)1838 static 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) 1843 1843 { 1844 1844 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1904 1904 */ 1905 1905 1906 int EXPATENTRY ExternalEntityRefHandler(void *pUserData, // in: our PXMLDOM really1907 XML_Parser parser,1908 const XML_Char *pcszContext,1909 const XML_Char *pcszBase,1910 const XML_Char *pcszSystemId,1911 const XML_Char *pcszPublicId)1906 static 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) 1912 1912 { 1913 1913 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1991 1991 */ 1992 1992 1993 void EXPATENTRY ElementDeclHandler(void *pUserData, // in: our PXMLDOM really1994 const XML_Char *pcszName,1995 XMLCONTENT *pModel)1993 static void EXPATENTRY ElementDeclHandler(void *pUserData, // in: our PXMLDOM really 1994 const XML_Char *pcszName, 1995 XMLCONTENT *pModel) 1996 1996 { 1997 1997 PXMLDOM pDom = (PXMLDOM)pUserData; … … 2041 2041 */ 2042 2042 2043 APIRET AddEnum(PCMATTRIBUTEDECL pDecl,2044 const char *p, // in: start of name2045 const char *pNext) // in: end of name (not included)2043 static APIRET AddEnum(PCMATTRIBUTEDECL pDecl, 2044 const char *p, // in: start of name 2045 const char *pNext) // in: end of name (not included) 2046 2046 { 2047 2047 // PSZ pszType = strhSubstr(p, pNext); … … 2090 2090 */ 2091 2091 2092 void EXPATENTRY AttlistDeclHandler(void *pUserData, // in: our PXMLDOM really2093 const XML_Char *pcszElementName,2094 const XML_Char *pcszAttribName,2095 const XML_Char *pcszAttribType,2096 const XML_Char *pcszDefault,2097 int fIsRequired)2092 static 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) 2098 2098 { 2099 2099 PXMLDOM pDom = (PXMLDOM)pUserData; … … 2272 2272 */ 2273 2273 2274 void EXPATENTRY EntityDeclHandler(void *pUserData, // in: our PXMLDOM really2275 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)2274 static 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) 2283 2283 { 2284 2284 PXMLDOM pDom = (PXMLDOM)pUserData; … … 2979 2979 */ 2980 2980 2981 VOID WriteNodes(PXSTRING pxstr,2982 PDOMNODE pDomNode) // in: node whose children are to be written (initially DOCUMENT)2981 static VOID WriteNodes(PXSTRING pxstr, 2982 PDOMNODE pDomNode) // in: node whose children are to be written (initially DOCUMENT) 2983 2983 { 2984 2984 PLISTNODE pListNode;
Note:
See TracChangeset
for help on using the changeset viewer.