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

@@ -49,8 +49,7 @@ char xerror[] = "ERROR" ;
/* Outputs entity definitions */
#define ENTFILENAME 12
void entout(fname)
char *fname ;
void entout(char *fname)
{
char efilename[ENTFILENAME] ;
int count = 1 ;
@@ -173,15 +172,13 @@ void entout(fname)
/* Entptr is called by m_dumptrie to output the value stored with a
particular entity in the entity trie */
void entptr(data)
M_ENTITY *data ;
void entptr(M_ENTITY *data)
{
fprintf(entfile, "(M_TRIE *) &m_entities[%d]", data->index - 1) ;
}
/* Typetype returns a string indicating the type of the nth entity.*/
char *typetype(n)
int n ;
char *typetype(int n)
{
switch(n) {
case M_GENERAL: return(xgeneral) ;