This commit is contained in:
Nishi 2026-07-02 13:31:52 +09:00
commit 04e65f3f5e
112 changed files with 8 additions and 115 deletions

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef CONST_H #ifndef CONST_H
#define CONST_H #define CONST_H

View file

@ -27,7 +27,6 @@
* *
*/ */
#define SJ4SERV_VERSION_NO 2 #define SJ4SERV_VERSION_NO 2
#define SJ4_CONNECT 1 #define SJ4_CONNECT 1

View file

@ -27,7 +27,6 @@
* *
*/ */
#define SJ4_InternalError -1 #define SJ4_InternalError -1
#define SJ4_NormalEnd 0 #define SJ4_NormalEnd 0

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_CONST #ifndef _SJ_CONST
#define _SJ_CONST #define _SJ_CONST

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_EUC #ifndef _SJ_EUC
#define _SJ_EUC #define _SJ_EUC

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_HINSHI #ifndef _SJ_HINSHI
#define _SJ_HINSHI #define _SJ_HINSHI

View file

@ -27,7 +27,6 @@
* *
*/ */
#define VERSIONPOS 0 #define VERSIONPOS 0
#define PASSWDPOS 16 #define PASSWDPOS 16

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef STRUCT_H #ifndef STRUCT_H
#define STRUCT_H #define STRUCT_H

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef SJ4LOWLIB_H #ifndef SJ4LOWLIB_H
#define SJ4LOWLIB_H #define SJ4LOWLIB_H

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_CONNECT #ifndef _SJ_CONNECT
#define _SJ_CONNECT #define _SJ_CONNECT

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_CONST #ifndef _SJ_CONST
#define _SJ_CONST #define _SJ_CONST

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_DICT #ifndef _SJ_DICT
#define _SJ_DICT #define _SJ_DICT

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef SJ_GLOBAL_H #ifndef SJ_GLOBAL_H
#define SJ_GLOBAL_H #define SJ_GLOBAL_H

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdio.h> #include <stdio.h>
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_rename.h" #include "sj_rename.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_LEFT #ifndef _SJ_LEFT
#define _SJ_LEFT #define _SJ_LEFT

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_PRIORITY #ifndef _SJ_PRIORITY
#define _SJ_PRIORITY #define _SJ_PRIORITY

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_RENAME #ifndef _SJ_RENAME
#define _SJ_RENAME #define _SJ_RENAME

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_RIGHT #ifndef _SJ_RIGHT
#define _SJ_RIGHT #define _SJ_RIGHT

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_STRUCT #ifndef _SJ_STRUCT
#define _SJ_STRUCT #define _SJ_STRUCT

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_STUDY #ifndef _SJ_STUDY
#define _SJ_STUDY #define _SJ_STUDY

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_SUUJI #ifndef _SJ_SUUJI
#define _SJ_SUUJI #define _SJ_SUUJI

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_TABLE #ifndef _SJ_TABLE
#define _SJ_TABLE #define _SJ_TABLE

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_TYPEDEF #ifndef _SJ_TYPEDEF
#define _SJ_TYPEDEF #define _SJ_TYPEDEF

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_VAR #ifndef _SJ_VAR
#define _SJ_VAR #define _SJ_VAR

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _SJ_YOMICODE #ifndef _SJ_YOMICODE
#define _SJ_YOMICODE #define _SJ_YOMICODE

View file

@ -27,7 +27,6 @@
* *
*/ */
#define ZKATA1 0xa5 #define ZKATA1 0xa5
#define ZHIRA1 0xa4 #define ZHIRA1 0xa4
#define ZKATAF2 0xa1 #define ZKATAF2 0xa1

View file

@ -27,7 +27,6 @@
* *
*/ */
#if !defined(__sony_news) || (defined(__sony_news) && !defined(SVR4)) #if !defined(__sony_news) || (defined(__sony_news) && !defined(SVR4))
#ifndef __KCTYPE #ifndef __KCTYPE
#define __KCTYPE #define __KCTYPE

View file

@ -27,7 +27,6 @@
* *
*/ */
#define KEY_NORMAL 0 #define KEY_NORMAL 0
#define KEY_CONV 1 #define KEY_CONV 1
#define KEY_HENKAN 2 #define KEY_HENKAN 2

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef RK_H #ifndef RK_H
#define RK_H #define RK_H

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef _WCHARH #ifndef _WCHARH
#define _WCHARH #define _WCHARH

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <ctype.h> #include <ctype.h>

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include "sj_rename.h" #include "sj_rename.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_const.h" #include "sj_const.h"
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_const.h" #include "sj_const.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_connect.h" #include "sj_connect.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <string.h> #include <string.h>
#include "sj_kcnv.h" #include "sj_kcnv.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"
#include "sj_right.h" #include "sj_right.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_const.h" #include "sj_const.h"
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include "sj_rename.h" #include "sj_rename.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_const.h" #include "sj_const.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_right.h" #include "sj_right.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <string.h> #include <string.h>
#include "sj_kcnv.h" #include "sj_kcnv.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_yomi.h" #include "sj_yomi.h"
#include "sj_suuji.h" #include "sj_suuji.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"
#include "sj_right.h" #include "sj_right.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "Dict.h" #include "Dict.h"
#include "sj4err.h" #include "sj4err.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_const.h" #include "sj_const.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_right.h" #include "sj_right.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_dict.h" #include "sj_dict.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <string.h> #include <string.h>
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_const.h" #include "sj_const.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_yomi.h" #include "sj_yomi.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_kanakan.h" #include "sj_kanakan.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_const.h" #include "sj_const.h"
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_right.h" #include "sj_right.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_rename.h" #include "sj_rename.h"
#include "sj_typedef.h" #include "sj_typedef.h"
#include "sj_const.h" #include "sj_const.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_kcnv.h" #include "sj_kcnv.h"
#include "sj_right.h" #include "sj_right.h"
#include "sj_hinsi.h" #include "sj_hinsi.h"

View file

@ -16,7 +16,7 @@ struct sj4ime {
Sj4Kouho kouho; Sj4Kouho kouho;
unsigned int last; unsigned int last;
u_char romabuf[SJ4BUFSZ]; u_char romabuf[7];
u_char kanabuf[SJ4BUFSZ]; u_char kanabuf[SJ4BUFSZ];
u_char convbuf[SJ4BUFSZ]; u_char convbuf[SJ4BUFSZ];
}; };
@ -139,7 +139,7 @@ void sj4_ime_key(Sj4Ime* ime, int key) {
key = toupper(key); key = toupper(key);
if(ime->romabuf[strlen(ime->romabuf) - 1] == 'N' && !(key == 'A' || key == 'I' || key == 'U' || key == 'E' || key == 'O' || key == 'N')) { if(ime->romabuf[strlen(ime->romabuf) - 1] == 'N' && !(key == 'A' || key == 'I' || key == 'U' || key == 'E' || key == 'O' || key == 'Y' || key == 'N')) {
ime->romabuf[strlen(ime->romabuf) + 1] = 0; ime->romabuf[strlen(ime->romabuf) + 1] = 0;
ime->romabuf[strlen(ime->romabuf)] = 'N'; ime->romabuf[strlen(ime->romabuf)] = 'N';
} }
@ -158,9 +158,9 @@ void sj4_ime_key(Sj4Ime* ime, int key) {
n = strlen(kanatbl[i].roma) - strlen(kanatbl[i].roma2); n = strlen(kanatbl[i].roma) - strlen(kanatbl[i].roma2);
memmove(ime->romabuf - (n < 0 ? n : 0), ime->romabuf + (n > 0 ? n : 0), SJ4BUFSZ - n); memmove(ime->romabuf - (n < 0 ? n : 0), ime->romabuf + (n > 0 ? n : 0), sizeof(ime->romabuf) - n);
if(n > 0) { if(n > 0) {
for(j = SJ4BUFSZ - n; j < SJ4BUFSZ; j++) ime->romabuf[j] = 0; for(j = sizeof(ime->romabuf) - n; j < sizeof(ime->romabuf); j++) ime->romabuf[j] = 0;
} else { } else {
for(j = 0; j < -n; j++) ime->romabuf[j] = 0; for(j = 0; j < -n; j++) ime->romabuf[j] = 0;
} }
@ -172,6 +172,10 @@ void sj4_ime_key(Sj4Ime* ime, int key) {
goto reduce; goto reduce;
} }
} }
if(strlen(ime->romabuf) >= 4) {
ime->romabuf[0] = 0;
}
} }
} }

View file

@ -27,7 +27,6 @@
* *
*/ */
#ifndef lint #ifndef lint
static char rcsid[] = "$Header: /export/work/contrib/sj4/sj4rkcv/RCS/rk_conv.c,v 1.14 1994/06/03 07:42:16 notanaka Exp $"; static char rcsid[] = "$Header: /export/work/contrib/sj4/sj4rkcv/RCS/rk_conv.c,v 1.14 1994/06/03 07:42:16 notanaka Exp $";
#endif #endif

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View file

@ -27,7 +27,6 @@
* *
*/ */
#include <stdio.h> #include <stdio.h>
#include <locale.h> #include <locale.h>
#include "wchar16.h" #include "wchar16.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj_euc.h" #include "sj_euc.h"
#include "sj4_dict_const.h" #include "sj4_dict_const.h"

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj4mkdic.h" #include "sj4mkdic.h"
static struct gram_code { static struct gram_code {

View file

@ -27,7 +27,6 @@
* *
*/ */
#include "sj4mkdic.h" #include "sj4mkdic.h"
typedef struct filelist { typedef struct filelist {

Some files were not shown because too many files have changed in this diff Show more