Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xjdic22 patch




Craig,

Since it is smallish, I decided to post the patch to xjdic. To install
it:

	mkdir xjdic22
	cd xjdic22
	tar zxvf xjdic22.tar.gz
	cd ..
	patch < this.patch

	Compile it...

The patch fixes a problem with DEFAULT_DICDIR not being used in a
couple files, though it is define in xjdic.h. If you don't have a
.xjdicrc file, then xjdic cores when you startup. 

Let me know if you have any problems

Andy

diff -cr --exclude *.org xjdic22/Makefile xjdic22.1/Makefile
*** xjdic22/Makefile	Sun Jan 21 07:13:36 1996
--- xjdic22.1/Makefile	Sun Oct 13 16:09:55 1996
***************
*** 8,13 ****
--- 8,14 ----
  #	make xjdxgen - just makes the xjdxgen index generator
  #	make exjdxgen - just makes the exjdxgen extension file index generator
  #	make clean - just tidies up, removing the .o files.
+ #	make distclean - remove all generated files 
  #
  #	this Makefile is set to use the gcc compiler. If you want cc instead
  #	you will need to alter the "CC=gcc" below, or use CC=cc on the command 
***************
*** 27,37 ****
  #	For Sun and Linux, you may need to include the "unistd.h" file.
  #
  #
! CC=gcc
! all: xjdic22sa xjdic22cl xjdserver22 xjdxgen exjdxgen
  client: xjdic22cl
  server: xjdserver22
  stand: xjdic22sa
  #
  #	X J D X G E N
  #
--- 28,41 ----
  #	For Sun and Linux, you may need to include the "unistd.h" file.
  #
  #
! CC=gcc -g
! PROGS= xjdic22sa xjdic22cl xjdserver22 xjdxgen exjdxgen
! all: $(PROGS)
! 
  client: xjdic22cl
  server: xjdserver22
  stand: xjdic22sa
+ 
  #
  #	X J D X G E N
  #
***************
*** 90,96 ****
  $(SVOBJECTS): xjdic.h
  #
  clean:
! 	rm -f *.o
  #
  #    This program is free software; you can redistribute it and/or modify
  #    it under the terms of the GNU General Public License as published by
--- 94,104 ----
  $(SVOBJECTS): xjdic.h
  #
  clean:
! 	rm -f *.o 
! 
! distclean:
! 	rm -f *.o  $(PROGS) \#*\# *~
! 
  #
  #    This program is free software; you can redistribute it and/or modify
  #    it under the terms of the GNU General Public License as published by
diff -cr --exclude *.org xjdic22/exjdxgen.c xjdic22.1/exjdxgen.c
*** xjdic22/exjdxgen.c	Sat Jan 20 14:38:29 1996
--- xjdic22.1/exjdxgen.c	Mon Sep 23 02:08:38 1996
***************
*** 26,35 ****
  #include <ctype.h>
  #include <string.h>
  
! #define TRUE 1
! #define FALSE 0
  #define EXLIM 100
- #define DEFAULT_DICDIR ""    /* could be: "/usr/local/lib/xjdic"   */
  
  unsigned char *db;
  unsigned char ENVname[50];
--- 26,34 ----
  #include <ctype.h>
  #include <string.h>
  
! #include "xjdic.h"
! 
  #define EXLIM 100
  
  unsigned char *db;
  unsigned char ENVname[50];
diff -cr --exclude *.org xjdic22/xjdic.h xjdic22.1/xjdic.h
*** xjdic22/xjdic.h	Sat Jan 20 19:06:46 1996
--- xjdic22.1/xjdic.h	Mon Sep 23 01:39:14 1996
***************
*** 3,9 ****
  #define NRKANA 250*2   /*  size of the romaji to kana tables*/
  #define NOFILT 10      /* maximum number of general filters */
  #define VMAX 350       /* maximum entries in the verb table */
! #define DEFAULT_DICDIR ""    /* could be: "/usr/local/lib/xjdic"   */
  #define NOHITS 1000       /* size of hittab  */
  #define SPTAG '@'         /* character that flags priority entries */
  #define KFBUFFSIZE 2000   /* size of the KFlush buffer */
--- 3,9 ----
  #define NRKANA 250*2   /*  size of the romaji to kana tables*/
  #define NOFILT 10      /* maximum number of general filters */
  #define VMAX 350       /* maximum entries in the verb table */
! #define DEFAULT_DICDIR "/data/xjdic"    /* could be: "/usr/local/lib/xjdic"   */
  #define NOHITS 1000       /* size of hittab  */
  #define SPTAG '@'         /* character that flags priority entries */
  #define KFBUFFSIZE 2000   /* size of the KFlush buffer */
diff -cr --exclude *.org xjdic22/xjdxgen.c xjdic22.1/xjdxgen.c
*** xjdic22/xjdxgen.c	Sun Jan 21 07:15:39 1996
--- xjdic22.1/xjdxgen.c	Mon Sep 23 02:04:41 1996
***************
*** 26,38 ****
  /*#include <stdlib.h>*/
  #include <ctype.h>
  #include <string.h>
  
  #define TRUE 1
  #define FALSE 0
  #define SPTAG '@'
! #define EXLIM 100
! #define DEFAULT_DICDIR ""    /* could be: "/usr/local/lib/xjdic"   */
  
  unsigned char *db;
  unsigned char ENVname[50];
  unsigned char *dicenv;
--- 26,41 ----
  /*#include <stdlib.h>*/
  #include <ctype.h>
  #include <string.h>
+ #include "xjdic.h"
  
+ /* 
  #define TRUE 1
  #define FALSE 0
  #define SPTAG '@'
! #define DEFAULT_DICDIR "" */   /* could be: "/usr/local/lib/xjdic"   */
! 
  
+ #define EXLIM 100
  unsigned char *db;
  unsigned char ENVname[50];
  unsigned char *dicenv;
-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links