dthelp: Convert all K&R function definitions to ANSI (C90) standard

This commit is contained in:
Peter Howkins
2018-06-24 00:50:56 +01:00
parent f89139dd84
commit 5aa1fed48b
172 changed files with 547 additions and 1308 deletions

View File

@@ -40,9 +40,7 @@ void printval(FILE *file, void *value);
/* Count the descendants of a node in order to generate declarations for
the packed form of a trie*/
void countdown(parent, count)
M_TRIE *parent ;
int *count ;
void countdown(M_TRIE *parent, int *count)
{
M_TRIE *child ;
@@ -54,12 +52,8 @@ void countdown(parent, count)
/* Output descendants of a node for the declaration of a trie, in packed
or normal format*/
void dumpnode(first, file, trieptr, count, proc)
LOGICAL *first ;
FILE *file ;
M_TRIE *trieptr ;
int *count ;
void (*proc) (FILE *file, void *value) ;
void dumpnode(LOGICAL *first, FILE *file, M_TRIE *trieptr, int *count,
void (*proc) (FILE *file, void *value))
{
M_TRIE *p ;
int savecount ;
@@ -89,9 +83,7 @@ void dumpnode(first, file, trieptr, count, proc)
/* Most common procedure passed to dumpptrie */
void printval(file, value)
FILE *file ;
void *value ;
void printval(FILE *file, void *value)
{
fprintf(file, ", %ld", (long) value) ;
}