MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlParseCRNGDropTokens

Function xmlParseCRNGDropTokens

ThirdParty/libxml2/vtklibxml2/rngparser.c:398–411  ·  view source on GitHub ↗

* xmlParseCRNGDropTokens: * @ctxt: a compact RNG parser context * @nr: the number of token marked as read * * mark a number of token as read and consumed. * * Returns -1 in case of error and 0 otherwise */

Source from the content-addressed store, hash-verified

396 * Returns -1 in case of error and 0 otherwise
397 */
398static int
399xmlParseCRNGDropTokens(xmlCRelaxNGParserCtxtPtr ctxt, int nr) {
400 if ((nr <= 0) || (nr >= MAX_TOKEN)) return(-1);
401 while ((ctxt->nbTokens >0) && (nr > 0)) {
402 ctxt->firstToken++;
403 nr--;
404 ctxt->nbTokens--;
405 ctxt->totalToken++;
406 if (ctxt->totalToken == 384)
407 fprintf(stderr, "found\n");
408 }
409 ctxt->firstToken = ctxt->firstToken % MAX_TOKEN;
410 return(0);
411}
412
413static void
414xmlParseCRNGTokenize(xmlCRelaxNGParserCtxtPtr ctxt) {

Callers 12

xmlParseCRNGTokenizeFunction · 0.85
xmlParseCRNG_nameClassFunction · 0.85
xmlParseCRNG_datatypeFunction · 0.85
xmlParseCRNG_primaryFunction · 0.85
xmlParseCRNG_particleFunction · 0.85
xmlParseCRNG_patternFunction · 0.85
xmlParseCRNG_componentFunction · 0.85
xmlParseCRNG_declFunction · 0.85

Calls 1

fprintfFunction · 0.85

Tested by

no test coverage detected