[buddy] * examples/cmilner/cmilner.c (A, transitions, initial_state)
(reachable_states, has_deadlocks): Declare as static functions, to suppress a GCC warning.
This commit is contained in:
parent
f4ecb34275
commit
b535741a90
2 changed files with 43 additions and 37 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2011-06-07 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
* examples/cmilner/cmilner.c (A, transitions, initial_state)
|
||||
(reachable_states, has_deadlocks): Declare as static functions,
|
||||
to suppress a GCC warning.
|
||||
|
||||
2011-04-30 Alexandre Duret-Lutz <adl@lrde.epita.fr>
|
||||
|
||||
Inline the "is bdd constant" check performed in copies/constructors.
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ int *primvar; /* Next state variables */
|
|||
bdd normvarset;
|
||||
bddPair *pairs;
|
||||
|
||||
bdd A(bdd* x, bdd* y, int z)
|
||||
static bdd A(bdd* x, bdd* y, int z)
|
||||
{
|
||||
bdd res = bddtrue, tmp1, tmp2;
|
||||
int i;
|
||||
|
|
@ -30,7 +30,7 @@ bdd A(bdd* x, bdd* y, int z)
|
|||
}
|
||||
|
||||
|
||||
bdd transitions(bdd* t, bdd* tp, bdd* h, bdd* hp, bdd* c, bdd* cp)
|
||||
static bdd transitions(bdd* t, bdd* tp, bdd* h, bdd* hp, bdd* c, bdd* cp)
|
||||
{
|
||||
int i;
|
||||
bdd P, E, T = bddfalse;
|
||||
|
|
@ -127,7 +127,7 @@ bdd transitions(bdd* t, bdd* tp, bdd* h, bdd* hp, bdd* c, bdd* cp)
|
|||
}
|
||||
|
||||
|
||||
bdd initial_state(bdd* t, bdd* h, bdd* c)
|
||||
static bdd initial_state(bdd* t, bdd* h, bdd* c)
|
||||
{
|
||||
int i;
|
||||
bdd I, tmp1, tmp2, tmp3;
|
||||
|
|
@ -171,7 +171,7 @@ bdd initial_state(bdd* t, bdd* h, bdd* c)
|
|||
}
|
||||
|
||||
|
||||
bdd reachable_states(bdd I, bdd T)
|
||||
static bdd reachable_states(bdd I, bdd T)
|
||||
{
|
||||
bdd C, by, bx = bddfalse;
|
||||
bdd tmp1;
|
||||
|
|
@ -208,7 +208,7 @@ bdd reachable_states(bdd I, bdd T)
|
|||
}
|
||||
|
||||
#if 0
|
||||
int has_deadlocks(bdd R, bdd T)
|
||||
static int has_deadlocks(bdd R, bdd T)
|
||||
{
|
||||
bdd C = bddtrue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue