(svn r907) Sprinkle holy ANSI water:

- "inline" must before the return type (and after "static")
- Initialise all struct members, not just some of them
- Remove (one) spurious semicolon
This commit is contained in:
tron
2004-12-03 07:43:00 +00:00
parent 9a900c0f30
commit ecf1c35849
12 changed files with 38 additions and 31 deletions

View File

@@ -434,7 +434,7 @@ typedef struct {
// called after a new element was added in the queue at the last index.
// move it down to the proper position
static void inline HeapifyUp(NewTrackPathFinder *tpf)
static inline void HeapifyUp(NewTrackPathFinder *tpf)
{
StackedItem si;
int i = ++tpf->nstack;
@@ -448,7 +448,7 @@ static void inline HeapifyUp(NewTrackPathFinder *tpf)
}
// called after the element 0 was eaten. fill it with a new element
static void inline HeapifyDown(NewTrackPathFinder *tpf)
static inline void HeapifyDown(NewTrackPathFinder *tpf)
{
StackedItem si;
int i = 1, j;