replace u_xxxx style, defined <sys/types.h>

replace:
	u_char -> unsigned char
	u_short -> unsigned short
	u_int -> unsigned int
	u_long (not used)

include <sys/types.h> is kept.

dicttool.h:
	fix include guard DICTTOLL -> DICTTOOL

addelcmn.c:unsigned int addel_arg()
deldic.c:unsigned int deldic()
	change u_short err -> unsigned int err (used for return value)

Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
This commit is contained in:
SASANO Takayoshi 2023-12-10 16:28:22 +09:00 • committed by Masanori Ogino
commit a9a6c86f12
99 changed files with 1711 additions and 1709 deletions

10
sjrc.c
View file

@ -193,7 +193,7 @@ getword (s, word)
char *s;
struct wordent word[];
{
u_char c, cc;
unsigned char c, cc;
char *p;
int i, wcount;
@ -280,28 +280,28 @@ struct wordent word[];
int
IsTerminator (c)
u_char c;
unsigned char c;
{
return (c == '\n') ? 1 : 0;
}
int
isTerminator (c)
u_char c;
unsigned char c;
{
return (c == '#') ? 1 : 0;
}
int
IsEscape (c)
u_char c;
unsigned char c;
{
return (c == '\\') ? 1 : 0;
}
int
IsDelimitor (c)
u_char c;
unsigned char c;
{
return (c == ' ' || c == '\t' || c == '.') ? 1 : 0;
}