/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to parse/tango-pull.d

  • Committer: Suren A. Chilingaryan
  • Date: 2009-10-08 03:17:59 UTC
  • Revision ID: csa@dside.dyndns.org-20091008031759-u5ys779huye7feni
LibXML Pull Parser, FAXPP Parser, Mono security benchmark, multiple fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
            case XmlTokenType.StartElement:
31
31
                res_attr[level] = 0;
32
32
                if (++level == MAX_LEVELS) {
33
 
                    Stdout.formatln("XML structure is too deep, only %i levels are supported\n", MAX_LEVELS);
 
33
                    Stdout.formatln("XML structure is too deep, only {} levels are supported\n", MAX_LEVELS);
34
34
                    throw new Exception("XML structure is too deep");
35
35
                }
36
36
                res_count[level]=0;
45
45
                }
46
46
            break;
47
47
            case XmlTokenType.EndElement:
 
48
            case XmlTokenType.EndEmptyElement:
48
49
                if (res_count[level] > 3) {
49
50
                    res_total += res_sum[level];
50
51
                }