Convert K&R definitions to ANSI C

This commit is contained in:
Nishi 2026-06-18 14:01:01 +09:00
commit a2161ba1b0
45 changed files with 521 additions and 1073 deletions

26
conv.c
View file

@ -121,13 +121,13 @@ extern int master;
extern wchar16_t Ukey[UKEYNUM][SEQLEN + 1];
extern int Uvalue[];
extern int Unumber;
convert_stat() {
int convert_stat(void)
{
stat_init();
stat_conv();
}
inputprocess() {
int inputprocess(void)
{
int c;
wchar16_t obuf[2];
@ -164,8 +164,8 @@ wchar16_t pars_seq[KEYBUFSIZ];
int buf_count = 0;
int pars_n;
static int escape = 0;
inkey() {
int inkey(void)
{
Conversion* cv;
int i, j;
wchar16_t c;
@ -217,10 +217,7 @@ inkey() {
}
return (c);
}
sequence(buf, count)
wchar16_t* buf;
int* count;
int sequence(wchar16_t * buf, int * count)
{
int n;
@ -258,11 +255,7 @@ int* count;
}
}
}
parse_escape(s, count, more)
wchar16_t* s;
int* count;
int more;
int parse_escape(wchar16_t * s, int * count, int more)
{
int i, j;
wchar16_t temp[KEYBUFSIZ];
@ -335,8 +328,7 @@ int more;
return (KEY_OTHER);
}
}
write_pseq(mod) int mod;
int write_pseq(int mod)
{
if(mod == 3) {