Fix -Wimplicit-int warning
Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
parent
5f25f23cbb
commit
2401fa476a
5 changed files with 21 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
void
|
||||
dictdisp(output)
|
||||
char *output;
|
||||
{
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ char *y, *k, *h;
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
dictmake(input)
|
||||
char *input;
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
#include <stdio.h>
|
||||
#include "sj3err.h"
|
||||
|
||||
void
|
||||
sj3error(fp, code)
|
||||
FILE *fp;
|
||||
int code;
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ static char *rcfile = ".sjrc";
|
|||
static int user_euc = 0;
|
||||
static int file_code = SYS_SJIS;
|
||||
|
||||
void setrc();
|
||||
int set_dict(), set_server();
|
||||
|
||||
struct functbl {
|
||||
|
|
@ -69,6 +70,7 @@ struct functbl {
|
|||
|
||||
#define TOLOWER(c) (isupper(c) ? tolower(c) : (c))
|
||||
|
||||
int
|
||||
sjset_code()
|
||||
{
|
||||
char *loc;
|
||||
|
|
@ -102,6 +104,7 @@ sjset_code()
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
getsjrc ()
|
||||
{
|
||||
FILE *fd;
|
||||
|
|
@ -136,6 +139,7 @@ getsjrc ()
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
setrc (file, fd)
|
||||
char *file;
|
||||
FILE *fd;
|
||||
|
|
@ -162,6 +166,7 @@ FILE *fd;
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
much(s1, s2)
|
||||
char *s1, *s2;
|
||||
{
|
||||
|
|
@ -179,6 +184,7 @@ char *s1, *s2;
|
|||
}
|
||||
|
||||
|
||||
int
|
||||
getword (s, word)
|
||||
register char *s;
|
||||
struct wordent word[];
|
||||
|
|
@ -268,36 +274,42 @@ struct wordent word[];
|
|||
return wcount;
|
||||
}
|
||||
|
||||
int
|
||||
IsTerminator (c)
|
||||
u_char c;
|
||||
{
|
||||
return (c == '\n') ? 1 : 0;
|
||||
}
|
||||
|
||||
int
|
||||
isTerminator (c)
|
||||
u_char c;
|
||||
{
|
||||
return (c == '#') ? 1 : 0;
|
||||
}
|
||||
|
||||
int
|
||||
IsEscape (c)
|
||||
u_char c;
|
||||
{
|
||||
return (c == '\\') ? 1 : 0;
|
||||
}
|
||||
|
||||
int
|
||||
IsDelimitor (c)
|
||||
u_char c;
|
||||
{
|
||||
return (c == ' ' || c == '\t' || c == '.') ? 1 : 0;
|
||||
}
|
||||
|
||||
int
|
||||
set_dict (word)
|
||||
struct wordent word[];
|
||||
{
|
||||
setdicname(word[1].word_str);
|
||||
}
|
||||
|
||||
int
|
||||
set_server(word)
|
||||
struct wordent word[];
|
||||
{
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@
|
|||
unsigned short sjis2euc(), euc2sjis();
|
||||
#endif
|
||||
|
||||
void sj_sjis2jis(), sj_jis2sjis();
|
||||
|
||||
int
|
||||
sj3_str_sjistoeuc(out, outlen, in, sjis_default, useflag)
|
||||
unsigned char *out, *in, *sjis_default;
|
||||
|
|
@ -203,6 +205,7 @@ int slen, elen;
|
|||
return sj3_str_euctosjis(s, slen, e, def_char, &dummy);
|
||||
}
|
||||
|
||||
void
|
||||
sj_euc2sjis (s)
|
||||
unsigned char *s;
|
||||
{
|
||||
|
|
@ -211,6 +214,7 @@ unsigned char *s;
|
|||
sj_jis2sjis (s);
|
||||
}
|
||||
|
||||
void
|
||||
sj_jis2sjis (s)
|
||||
unsigned char *s;
|
||||
{
|
||||
|
|
@ -233,6 +237,7 @@ unsigned char *s;
|
|||
s[1] = nl;
|
||||
}
|
||||
|
||||
void
|
||||
sj_sjis2euc (s)
|
||||
unsigned char *s;
|
||||
{
|
||||
|
|
@ -241,6 +246,7 @@ unsigned char *s;
|
|||
s[1] |= MSB;
|
||||
}
|
||||
|
||||
void
|
||||
sj_sjis2jis (s)
|
||||
unsigned char *s;
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue