* src/sanity/style.test: Check the iface/ tree too.

* iface/gspn/gspn.cc, iface/gspn/ssp.cc: Fix style.
This commit is contained in:
Alexandre Duret-Lutz 2004-05-21 11:55:36 +00:00
parent da2d2e19b1
commit 3e968a3c9d
4 changed files with 67 additions and 61 deletions

View file

@ -1,5 +1,8 @@
2004-05-21 Alexandre Duret-Lutz <adl@src.lip6.fr>
* src/sanity/style.test: Check the iface/ tree too.
* iface/gspn/gspn.cc, iface/gspn/ssp.cc: Fix style.
* src/sanity/80columns.test: Check the iface/ tree too.
* iface/gspn/dcswaveltl.test, iface/gspn/dcswavefm.test,
iface/gspn/dcswaveeltl.test, iface/gspn/udcsltl.test,

View file

@ -201,7 +201,7 @@ namespace spot
assert(successors_);
// GSPN is expected to return a looping "dead" transition where
// there is no successor.
assert(size_> 0);
assert(size_ > 0);
}
virtual

View file

@ -40,7 +40,7 @@ namespace spot
assert(new_size);
bdd* tmp = new bdd[new_size];
for(int i = 0; i < size; i++)
for (int i = 0; i < size; i++)
tmp[i] = t[i];
delete[] t;
@ -195,7 +195,7 @@ namespace spot
~tgba_succ_iterator_gspn_ssp()
{
for(size_t i = 0; i < size_states_; i++)
for (size_t i = 0; i < size_states_; i++)
delete state_array_[i];
delete[] bdd_array_;
@ -216,8 +216,8 @@ namespace spot
virtual void
first()
{
if(!successors_)
return ;
if (!successors_)
return;
current_succ_=0;
}
@ -385,10 +385,10 @@ namespace spot
state_array = (state**) realloc(state_array,
(size_states + 1) * sizeof(state*));
state_array[size_states] = i->current_state();
props_[nb_arc_props].arc->curr_state = size_states ;
props_[nb_arc_props].arc->curr_state = size_states;
size_states++;
while (all_conds_ != bddfalse )
while (all_conds_ != bddfalse)
{
cond = bdd_satone(all_conds_);
cond = bdd_simplify(cond, cond | outside_);
@ -444,7 +444,7 @@ namespace spot
for (j = 0; j < nb_arc_props; j++)
{
for (conj = 0 ; conj < props_[j].nb_conj ; conj++)
for (conj = 0; conj < props_[j].nb_conj; conj++)
free(props_[j].prop[conj]);
free(props_[j].prop);
}
@ -672,7 +672,7 @@ namespace spot
if (old_state->left()
&& new_state->left()
&& spot_inclusion(new_state->left(),old_state->left()))
&& spot_inclusion(new_state->left(), old_state->left()))
break;
}
}
@ -715,7 +715,7 @@ namespace spot
if (old_state->left()
&& new_state->left()
&& spot_inclusion(new_state->left(),old_state->left()))
&& spot_inclusion(new_state->left(), old_state->left()))
break;
}
}

View file

@ -21,9 +21,11 @@ export GREP_COLOR
tmp=incltest.tmp
find "${INCDIR-..}" \( -name "${1-*}.hh" -o -name "${1-*}.cc" \) \
for dir in "${INCDIR-..}" "${INCDIR-..}"/../iface; do
find "$dir" \( -name "${1-*}.hh" -o -name "${1-*}.cc" \) \
-a -type f -a -print |
while read file; do
while read file; do
if grep 'GNU Bison' "$file" >/dev/null ||
grep 'generated by flex' "$file" >/dev/null ; then
continue
@ -94,6 +96,7 @@ while read file; do
diag 'No space before semicolon.'
$fail && echo "$file" >>failures
done
done
if test -f failures; then