Add explicit function prototypes

This commit is contained in:
Nishi 2026-06-18 14:11:47 +09:00
commit b82d393de3
40 changed files with 162 additions and 103 deletions

32
sjrc2.c
View file

@ -35,6 +35,8 @@
#include "common.h"
#include "key.h"
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include "Paths.h"
int vflag = 1;
@ -99,12 +101,26 @@ extern wchar16_t *Key, *Escape, *Sjxkey, *Etckey, *Intr, *Bskey, *Delkey,
extern wchar16_t *Halpha, *Zalpha, *Hkata, *Zkata, *Hira;
extern wchar16_t *Shiftjis, *Sjis, *Euc, *Euc2, *Jis, *Jis2, *Kuten, *Kuten2;
int set_func(), set_etckeys(), set_intr(),
set_delkey(), set_goto(), set_trap(), set_init_mode(),
set_helpmenu(), set_defcode(), set_muhenkan(), set_muedit(),
set_m_toggle(), set_guide(), set_forkshell(), set_bstudy(),
set_silent(), set_flush_conversion(), set_rkebell(), set_server(),
set_dicts();
int set_func(struct wordent word[]);
int set_etckeys(struct wordent word[]);
int set_intr(struct wordent word[]);
int set_delkey(struct wordent word[]);
int set_goto(struct wordent word[]);
int set_trap(struct wordent word[]);
int set_init_mode(struct wordent word[]);
int set_helpmenu(struct wordent word[]);
int set_defcode(struct wordent word[]);
int set_muhenkan(struct wordent word[]);
int set_muedit(struct wordent word[]);
int set_m_toggle(struct wordent word[]);
int set_guide(struct wordent word[]);
int set_forkshell(struct wordent word[]);
int set_bstudy(struct wordent word[]);
int set_silent(struct wordent word[]);
int set_flush_conversion(struct wordent word[]);
int set_rkebell(struct wordent word[]);
int set_server(struct wordent word[]);
int set_dicts(void);
extern struct functbl funcs[];
extern struct valtbl mode_val[], code_val[];
@ -143,7 +159,6 @@ int sjrc_init(void)
int getsjrc(void)
{
char* p;
char* getenv();
sjset_code();
mk_cvtkey(term_name);
@ -176,7 +191,7 @@ int setrc(char * file)
char line[MAXLINE];
struct wordent word[WORDN];
struct functbl* functp;
FILE * fd, *fopen();
FILE* fd;
if(vflag > 1)
aprintf("sjrc file is %s\n", file);
@ -205,7 +220,6 @@ int getsjrk(int erase)
{
char* p;
int i;
char* getenv();
char RKfile[LONGLENGTH];
RKfile[0] = '\0';