revise sj_typedef.h

Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
This commit is contained in:
SASANO Takayoshi 2023-12-10 06:46:18 +09:00 • committed by Masanori Ogino
commit db373a736e
53 changed files with 759 additions and 776 deletions

View file

@ -43,8 +43,8 @@
#include "sj_dict.h"
#include "kanakan.h"
Int
euc_codesize (Uchar c)
int
euc_codesize (u_char c)
{
if ((c & KanjiModeMask) == 0x90) {
return 1;
@ -57,10 +57,10 @@ euc_codesize (Uchar c)
}
}
Int
hzstrlen (Uchar *ptr, Int len)
int
hzstrlen (u_char *ptr, int len)
{
Uchar *head;
u_char *head;
head = ptr;
while (len-- > 0) ptr += euc_codesize(*ptr);
return (ptr - head);