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:
parent
f5d94e3e41
commit
a9a6c86f12
99 changed files with 1711 additions and 1709 deletions
|
|
@ -44,7 +44,7 @@
|
|||
#include "kanakan.h"
|
||||
|
||||
int
|
||||
euc_codesize (u_char c)
|
||||
euc_codesize (unsigned char c)
|
||||
{
|
||||
if ((c & KanjiModeMask) == 0x90) {
|
||||
return 1;
|
||||
|
|
@ -58,9 +58,9 @@ euc_codesize (u_char c)
|
|||
}
|
||||
|
||||
int
|
||||
hzstrlen (u_char *ptr, int len)
|
||||
hzstrlen (unsigned char *ptr, int len)
|
||||
{
|
||||
u_char *head;
|
||||
unsigned char *head;
|
||||
head = ptr;
|
||||
while (len-- > 0) ptr += euc_codesize(*ptr);
|
||||
return (ptr - head);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue