diff options
Diffstat (limited to 'chinese/hanzim/files/patch-hanzim.c')
-rw-r--r-- | chinese/hanzim/files/patch-hanzim.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/chinese/hanzim/files/patch-hanzim.c b/chinese/hanzim/files/patch-hanzim.c deleted file mode 100644 index 55ad0c3a701e..000000000000 --- a/chinese/hanzim/files/patch-hanzim.c +++ /dev/null @@ -1,35 +0,0 @@ ---- ./hanzim.c.orig 2002-03-20 14:34:31.000000000 +0800 -+++ ./hanzim.c 2007-11-08 16:33:14.000000000 +0800 -@@ -204,6 +204,16 @@ - main(int argc, char *argv[]) { - Tcl_Interp *interp; - -+/* hanzim need a running XFree to do its initial setup, rectify */ -+ if (argc>1 && !(strcmp(argv[1], "-port-install"))) -+ { -+ char *portdatadir = "%%PREFIX%%/lib/hanzim"; -+ init_vars(portdatadir); -+ kanzi(portdatadir); -+ kanhe(portdatadir); -+ exit(0); -+ } -+ - /* do an initial parse of the command-line options so that help message */ - /* can be printed and we can set some global flags */ - interp = Tcl_CreateInterp(); -@@ -460,10 +470,14 @@ - struct _timeb tp; - _ftime(&tp); - #else -+/* - struct timeb tp; - ftime(&tp); -+*/ -+ time_t t; -+ time(&t); - #endif -- srand(tp.millitm); -+ srand(t); - - if (!quiet) { - printf("\n\nWelcome to Hanzi Master, where YOU will master the hanzi.\n"); |