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

18
char.c
View file

@ -39,9 +39,9 @@
int
cnvyomi(int code)
{
u_short hh;
u_char high;
u_char low;
unsigned short hh;
unsigned char high;
unsigned char low;
hh = ((code >> 16) & 0xffff);
high = ((code >> 8) & 0xff);
@ -96,9 +96,9 @@ cnvyomi(int code)
int
h2kcode(int code)
{
u_short hh;
u_char high;
u_char low;
unsigned short hh;
unsigned char high;
unsigned char low;
hh = ((code >> 16) & 0xffff);
high = ((code >> 8) & 0xff);
@ -118,7 +118,7 @@ h2kcode(int code)
int
codesize(u_char code)
codesize(unsigned char code)
{
switch (code&KanjiModeMask) {
case ZenHiraAssyuku:
@ -137,7 +137,7 @@ codesize(u_char code)
void
output_knj(FILE* fp, u_char* p, int l)
output_knj(FILE* fp, unsigned char* p, int l)
{
while (l > 0) {
switch (*p & KanjiModeMask) {
@ -258,7 +258,7 @@ yomi2zen(int code)
void
output_yomi(FILE* fp, u_char* p)
output_yomi(FILE* fp, unsigned char* p)
{
int i;