Add explicit function prototypes
This commit is contained in:
parent
6bea197400
commit
b82d393de3
40 changed files with 162 additions and 103 deletions
13
rk_conv.c
13
rk_conv.c
|
|
@ -35,9 +35,8 @@ static char rcsid[] = "$Header: /export/work/contrib/sj3/sj3rkcv/RCS/rk_conv.c,v
|
|||
#include "wchar16.h"
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#ifdef SVR4
|
||||
#include <string.h>
|
||||
#else
|
||||
#ifndef SVR4
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#ifdef __sony_news
|
||||
|
|
@ -454,16 +453,18 @@ int sj3_rkinit_mb(char * rkfile)
|
|||
return sj3_rkinit_sub(rkfile, rcode_sjis_init);
|
||||
}
|
||||
|
||||
int sj3_rkinit_sub(char* rkfile, int (*mbfunc)())
|
||||
int sj3_rkinit_sub(char* rkfile, int (*mbfunc)(void))
|
||||
{
|
||||
char* p;
|
||||
int len, klen, rlen, retv;
|
||||
FILE * fp, *fopen();
|
||||
FILE* fp;
|
||||
char line[MAXLEN + 1];
|
||||
wchar16_t rkey[MAXWLEN + 1], rstr[MAXWLEN + 1];
|
||||
unsigned short kstr[MAXWLEN + 1];
|
||||
char * strcpy(), *getkey(), *rkgetyomi();
|
||||
RkTablW16 * rktp, *mktable();
|
||||
char* getkey(char * istr, wchar16_t * ostr, int * len);
|
||||
char* rkgetyomi(char * istr, wchar16_t * ostr, int * len);
|
||||
RkTablW16 * rktp;
|
||||
RkTablW16* mktable(wchar16_t * key, int len);
|
||||
|
||||
if(rkfile == NULL || *rkfile == NSTR)
|
||||
fp = stdin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue