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

View file

@ -41,7 +41,7 @@
#include "sj_hinsi.h"
#include "kanakan.h"
u_char*
unsigned char*
getstb(TypeGram hinsi)
{
if (hinsi < MEISI_1 || hinsi > TIMEI) return NULL;
@ -51,11 +51,11 @@ getstb(TypeGram hinsi)
void
setubi(JREC *rec, u_char *stbtbl)
setubi(JREC *rec, unsigned char *stbtbl)
{
u_char *stb;
u_char *yptr;
u_char *sptr;
unsigned char *stb;
unsigned char *yptr;
unsigned char *sptr;
int slen;
JREC *new;
int cmp;
@ -77,7 +77,7 @@ setubi(JREC *rec, u_char *stbtbl)
if (!(new = argjrec((int)(rec -> jlen + slen), rec))) continue;
new -> stbofs = (u_char)(stb - stbtbl);
new -> stbofs = (unsigned char)(stb - stbtbl);
new -> flags |= StbBakeru(stb) ? JFLAG_KA : 0;
}
}