Prepare to build sj3

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
Masanori Ogino 2023-12-07 15:29:59 +09:00
commit 80ef531e04
31 changed files with 31 additions and 15 deletions

View file

@ -55,6 +55,10 @@ SJ3RKCV_OBJS = rk_conv.o sj3_rkcv.o wc16_str.o
# Client applications
CLIENT_APPS = sj3dic sj3mkdic sj3stat
SJ3_OBJS = code.o common.o conv.o display.o douon.o edit.o etc.o \
eucmessage.o funckey.o henkan.o kigou.o libif.o nmttyslot.o \
romaji.o screen.o sj3.o sj3ver.o sjgetchar.o sjrc2.o \
stat_conv.o term.o toroku.o version2.o
SJ3DIC_OBJS = codecnv.o dictdisp.o dictmake.o hinsi.o sj3dic.o sj3err.o \
sjrc.o
SJ3MKDIC_OBJS = char.o cnvhinsi.o file.o global.o hindo.o knjcvt.o makedict.o \
@ -64,8 +68,8 @@ SJ3STAT_OBJS = sj3stat.o
# Server daemon
SJ3SERV_OBJS = comuni.o error.o execute.o main.o setup.o time_stamp.o version.o
ALL_OBJS = $(SJ3LIB_OBJS) $(KANAKAN_OBJS) $(SJ3RKCV_OBJS) $(SJ3DIC_OBJS) \
$(SJ3MKDIC_OBJS) $(SJ3STAT_OBJS) $(SJ3SERV_OBJS)
ALL_OBJS = $(SJ3LIB_OBJS) $(KANAKAN_OBJS) $(SJ3RKCV_OBJS) $(SJ3_OBJS) \
$(SJ3DIC_OBJS) $(SJ3MKDIC_OBJS) $(SJ3STAT_OBJS) $(SJ3SERV_OBJS)
all: $(PUBLIC_LIBS) $(PRIVATE_LIBS) $(CLIENT_APPS) sj3serv
@ -79,8 +83,8 @@ install: all
$(INSTALL_PROGRAM) sj3serv $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) sj3stat $(DESTDIR)$(BINDIR)
$(INSTALL_LIB) libsj3lib.a $(DESTDIR)$(LIBDIR)
$(INSTALL_LIB) libsj3lib.so $(DESTDIR)$(LIBDIR)
$(INSTALL_LIB) libsj3lib.so.$(LIBVER) $(DESTDIR)$(LIBDIR)
ln -sf libsj3lib.so.$(LIBVER) $(DESTDIR)$(LIBDIR)/libsj3lib.so
$(INSTALL_DATA) sj3lib.h $(DESTDIR)$(INCLUDEDIR)
$(INSTALL_DATA) serverrc $(DESTDIR)/etc/sj3
@ -89,7 +93,6 @@ libsj3lib.a: $(SJ3LIB_OBJS) compats.o
libsj3lib.so.$(LIBVER): $(SJ3LIB_OBJS) compats.o
$(CC) -shared -o $@ $(SJ3LIB_OBJS) compats.o $(LDFLAGS) -Wl,${LINKER_SONAME},$@ $(LDLIBS)
ln -sf $@ `basename $@ .$(LIBVER)`
libkanakan.a: $(KANAKAN_OBJS) compats.o
$(AR) crs $@ $(KANAKAN_OBJS) compats.o
@ -97,6 +100,9 @@ libkanakan.a: $(KANAKAN_OBJS) compats.o
libsj3rkcv.a: $(SJ3RKCV_OBJS) compats.o
$(AR) crs $@ $(SJ3RKCV_OBJS) compats.o
sj3: $(SJ3_OBJS) libsj3lib.a libsj3rkcv.a compats.o
$(CC) -static -o $@ $(SJ3_OBJS) compats.o $(LDFLAGS) $(LDLIBS) -ltermcap -lsj3lib -lsj3rkcv
sj3dic: $(SJ3DIC_OBJS) libsj3lib.a compats.o
$(CC) -static -o $@ $(SJ3DIC_OBJS) compats.o $(LDFLAGS) $(LDLIBS) -lsj3lib

View file

View file

View file

@ -180,7 +180,8 @@ strtocode()
}
}
ChangeCode ()
void
ChangeCode (void)
{
if (cur_code == CODE_KUTEN2)
cur_code = CODE_SJIS;

View file

View file

@ -212,7 +212,7 @@ cont:
if (select (master + 1, &ifds, 0, 0, &t) > 0) {
if (FD_ISSET (STDIN, &ifds))
if (ThroughIntr ())
return;
return 1;
if (FD_ISSET (master, &ifds))
output_master ();
} else if (errno == EINTR) {

View file

@ -45,6 +45,8 @@ static int Dpoint;
static struct douon_sj3 HenkanDouon[DOUON_N];
static wchar16_t Dkanji[BUFFLENGTH * 2];
void go_gakusyuu();
SJ_getdouon (s, d, n, choice, reconv)
wchar16_t *s;
struct douon_sj3 *d;
@ -496,6 +498,7 @@ int m, n;
}
}
void
go_gakusyuu (n)
int n;
{

View file

@ -38,7 +38,7 @@
#include "common.h"
#include "key.h"
void Chain();
static wchar16_t *jpoint;
static int iedit, jedit;
@ -237,7 +237,7 @@ int small;
}
void
Bdelete ()
{
register Conversion *cv;
@ -288,7 +288,7 @@ Bdelete ()
}
void
Chain (n, len)
register int n;
register int len;

View file

@ -43,6 +43,8 @@ static char rehname[SHORTLENGTH * 2];
extern char *cur_serv;
static int dcflag = 0;
void disp_version();
exec_etc (key)
int key;
{
@ -241,6 +243,7 @@ helplevel ()
guide_print_pause (WCGHelp, wtmp);
}
void
disp_version (c)
int c;
{

View file

@ -40,7 +40,7 @@
#include "wchar16.h"
#include "kctype.h"
void Rdisp();
int i_point;
@ -705,7 +705,7 @@ Bdisp (redraw)
}
void
Rdisp ()
{
register Conversion *cv;
@ -804,7 +804,7 @@ register int Total;
}
void
Bright ()
{
register Conversion *cv;
@ -827,7 +827,7 @@ Bright ()
}
void
Bleft ()
{
register Conversion *cv;
@ -850,7 +850,7 @@ Bleft ()
}
void
Blast ()
{
register Conversion *cv;
@ -868,7 +868,7 @@ Blast ()
}
void
Btop ()
{
register Conversion *cv;

View file

@ -47,6 +47,8 @@ static int lastcode = BEGIN_CODE;
static u_short row, col;
void input_kigou();
kigou ()
{
extern int keyvalue;
@ -267,6 +269,7 @@ register int code;
SJ_print (tmp);
}
void
input_kigou (basecode, code, increse)
register int basecode, code, increse;
{

View file

View file

View file

View file