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

20
kigou.c
View file

@ -40,8 +40,8 @@ static int lastcode = BEGIN_CODE;
static unsigned short row, col;
void input_kigou();
kigou() {
int kigou(void)
{
extern int keyvalue;
int increse, code, basecode;
int inc, ki, low;
@ -177,16 +177,14 @@ kigou() {
disp_mode();
return (rval);
}
IsRedraw(c) int c;
int IsRedraw(int c)
{
if(c == 0x0c)
return (1);
else
return (0);
}
IsCKey(inc) int inc;
int IsCKey(int inc)
{
switch(inc) {
case 'l':
@ -201,8 +199,7 @@ IsCKey(inc) int inc;
return (KEY_NORMAL);
}
}
guide_kigou(bcode, code, increse) int bcode, code, increse;
int guide_kigou(int bcode, int code, int increse)
{
int i;
extern wchar16_t Mguide[];
@ -232,8 +229,7 @@ guide_kigou(bcode, code, increse) int bcode, code, increse;
backspace(8 + (bcode + increse - code) * 2);
Flush();
}
pkigou(code) int code;
int pkigou(int code)
{
wchar16_t tmp[3];
unsigned short ccode;
@ -254,9 +250,7 @@ pkigou(code) int code;
SJ_print(tmp);
}
void
input_kigou(basecode, code, increse) int basecode,
code, increse;
void input_kigou(int basecode, int code, int increse)
{
wchar16_t s[2];
unsigned short ccode, svlen;