nSpans = s - span;
}
-void doGen(const Go *g, const State *s, uint *bm, uint f, uint m)
+static void doGen(const Go *g, const State *s, uint *bm, uint f, uint m)
{
Span *b = g->span, *e = &b[g->nSpans];
uint lb = 0;
}
}
-void prt(std::ostream& o, const Go *g, const State *s)
+static void prt(std::ostream& o, const Go *g, const State *s)
{
Span *b = g->span, *e = &b[g->nSpans];
uint lb = 0;
}
}
-bool matches(const Go *g1, const State *s1, const Go *g2, const State *s2)
+static bool matches(const Go *g1, const State *s1, const Go *g2, const State *s2)
{
Span *b1 = g1->span, *e1 = &b1[g1->nSpans];
uint lb1 = 0;
first = NULL;
}
-void genGoTo(std::ostream &o, uint ind, const State *from, const State *to, bool & readCh)
+static void genGoTo(std::ostream &o, uint ind, const State *from, const State *to, bool & readCh)
{
if (DFlag)
{
vUsedLabels.insert(to->label);
}
-void genIf(std::ostream &o, uint ind, const char *cmp, uint v, bool &readCh)
+static void genIf(std::ostream &o, uint ind, const char *cmp, uint v, bool &readCh)
{
o << indent(ind) << "if (";
if (readCh)
o << outputFileInfo;
}
-void doLinear(std::ostream &o, uint ind, Span *s, uint n, const State *from, const State *next, bool &readCh, uint mask)
+static void doLinear(std::ostream &o, uint ind, Span *s, uint n, const State *from, const State *next, bool &readCh, uint mask)
{
for (;;)
{
doLinear(o, ind, span, nSpans, from, next, readCh, mask);
}
-bool genCases(std::ostream &o, uint ind, uint lb, Span *s, bool &newLine, uint mask, const State *from, const State *to)
+static bool genCases(std::ostream &o, uint ind, uint lb, Span *s, bool &newLine, uint mask, const State *from, const State *to)
{
bool used = false;
}
}
-void doBinary(std::ostream &o, uint ind, Span *s, uint n, const State *from, const State *next, bool &readCh, uint mask)
+static void doBinary(std::ostream &o, uint ind, Span *s, uint n, const State *from, const State *next, bool &readCh, uint mask)
{
if (n <= 4)
{
action->emit(o, ind, readCh, condName);
}
-uint merge(Span *x0, State *fg, State *bg)
+static uint merge(Span *x0, State *fg, State *bg)
{
Span *x = x0, *f = fg->go.span, *b = bg->go.span;
uint nf = fg->go.nSpans, nb = bg->go.nSpans;
}
}
-const uint cInfinity = ~0u;
+static const uint cInfinity = ~0u;
class SCC
{
return false;
}
-uint maxDist(State *s)
+static uint maxDist(State *s)
{
if (s->depth != cInfinity)
{
return mm;
}
-void calcDepth(State *head)
+static void calcDepth(State *head)
{
State* s;
bUseStartLabel = false;
}
-void genGetStateGotoSub(std::ostream &o, uint ind, uint start_label, int cMin, int cMax)
+static void genGetStateGotoSub(std::ostream &o, uint ind, uint start_label, int cMin, int cMax)
{
if (cMin == cMax)
{