MCPcopy Create free account
hub / github.com/Kitware/CMake / XML_SetHashSalt

Function XML_SetHashSalt

Utilities/cmexpat/lib/xmlparse.c:2320–2333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2318}
2319
2320int XMLCALL
2321XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt) {
2322 if (parser == NULL)
2323 return 0;
2324
2325 const XML_Parser rootParser = getRootParserOf(parser, NULL);
2326 assert(! rootParser->m_parentParser);
2327
2328 /* block after XML_Parse()/XML_ParseBuffer() has been called */
2329 if (parserBusy(rootParser))
2330 return 0;
2331 rootParser->m_hash_secret_salt = hash_salt;
2332 return 1;
2333}
2334
2335enum XML_Status XMLCALL
2336XML_Parse(XML_Parser parser, const char *s, int len, int isFinal) {

Callers

nothing calls this directly

Calls 2

getRootParserOfFunction · 0.85
parserBusyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…