Convert K&R definitions to ANSI C

This commit is contained in:
Nishi 2026-06-18 14:01:01 +09:00
commit 6bea197400
45 changed files with 522 additions and 1074 deletions

View file

@ -30,9 +30,7 @@
#include "sj_kcnv.h"
void free_jrec(), free_clrec();
JREC* free_jlst(p)
JREC* p;
JREC* free_jlst(JREC * p)
{
JREC* jpk;
JREC* jp;
@ -61,10 +59,7 @@ JREC* p;
return jpk;
}
CLREC* free_clst(p, l)
CLREC* p;
int l;
CLREC* free_clst(CLREC * p, int l)
{
CLREC* cpk;
CLREC* cp;
@ -104,9 +99,7 @@ int l;
return cpk;
}
void free_clall(p)
CLREC* p;
void free_clall(CLREC * p)
{
CLREC* next;
@ -117,9 +110,7 @@ void free_clall(p)
p = next;
}
}
void free_jall(p)
JREC* p;
void free_jall(JREC * p)
{
JREC* next;
@ -129,8 +120,8 @@ void free_jall(p)
p = next;
}
}
void freework() {
void freework(void)
{
free_clall(maxclptr);
clt1st = maxclptr = NULL;