[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:
Alexandre Duret-Lutz 2011-06-07 14:50:07 +02:00
parent f4ecb34275
commit b535741a90
2 changed files with 43 additions and 37 deletions

View file

@ -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> 2011-04-30 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Inline the "is bdd constant" check performed in copies/constructors. Inline the "is bdd constant" check performed in copies/constructors.

View file

@ -10,7 +10,7 @@ int *primvar; /* Next state variables */
bdd normvarset; bdd normvarset;
bddPair *pairs; bddPair *pairs;
bdd A(bdd* x, bdd* y, int z) static bdd A(bdd* x, bdd* y, int z)
{ {
bdd res = bddtrue, tmp1, tmp2; bdd res = bddtrue, tmp1, tmp2;
int i; 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; int i;
bdd P, E, T = bddfalse; 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; int i;
bdd I, tmp1, tmp2, tmp3; 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 C, by, bx = bddfalse;
bdd tmp1; bdd tmp1;
@ -208,7 +208,7 @@ bdd reachable_states(bdd I, bdd T)
} }
#if 0 #if 0
int has_deadlocks(bdd R, bdd T) static int has_deadlocks(bdd R, bdd T)
{ {
bdd C = bddtrue; bdd C = bddtrue;