File: setrounds.cc

package info (click to toggle)
simrisc 16.05.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,568 kB
  • sloc: cpp: 6,877; fortran: 665; makefile: 112; ansic: 112; sh: 107
file content (31 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#define XERR
#include "screening.ih"

void Screening::setRounds()
{
    d_base.back() = "round:";

    auto lines = Parser::any(d_base);           // obtain the 'round:' lines

    bool allOK = true;
    LineInfo noneLine;

    while (true)
    {
        LineInfo const *line = lines.get();
        if (line == 0)
            break;

                                                // add a round specification
        allOK = addRound(&noneLine, *line) and allOK;
    }

    if (d_roundVect.size() and not allOK)       // not all rounds were OK
    {
        Err::reset(noneLine);
        Err::msg(Err::ROUND_NONE) << noneLine.txt << endl;
    }
}