12006-06-09  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2
3	* Namazu.xs: Fixed segfault bug on perl 5.005_03.
4	  (Patched by Tadamasa Teranishi, thank you)
5
6	* Version 0.96.
7
82006-06-06  NOKUBI Takatsugu  <knok@daionet.gr.jp>
9
10	* Namazu.xs: Defined SvPV_nolen if it is not defined.
11
12	* Version 0.95.
13
142006-05-30  NOKUBI Takatsugu  <knok@daionet.gr.jp>
15
16	* Namazu.xs: Added workaround for perl 5.6.0
17
18	* Released as 0.94.
19
202006-04-03  NOKUBI Takatsugu  <knok@daionet.gr.jp>
21
22	* Namazu.xs: Added 5 methods in ResultXS:
23	 score(), rank(), date(), docid(), idxid().
24
252006-03-30  NOKUBI Takatsugu  <knok@daionet.gr.jp>
26
27	* Namazu.pm (Search): Added "sortField" method.
28	  //Fixed constants. - reverted
29	  Changed value check.
30
31	* Namazu.xs (call_search_main): Fixed half of results bug.
32	  (Reported by Tadamasa Teranishi, thank you)
33
342006-03-29  NOKUBI Takatsugu  <knok@daionet.gr.jp>
35
36	* Namazu.{xs,pm}: Added "fields" parameter.
37	  Added default fields "score", "date" and "rank" in ResultXS.
38
392006-03-28  NOKUBI Takatsugu  <knok@daionet.gr.jp>
40
41	* Namazu.{xs,pm}: Added maxget parameter.
42	  Added a new class: Search::Namazu::ResultXS.
43
442006-03-27  NOKUBI Takatsugu  <knok@daionet.gr.jp>
45
46	* Namazu.pm (Search): Add a new parameter 'returnas'.
47
48	* Namazu.xs: Fixed prototype.
49	  Splitted common code from call_search_main.
50	  (call_search_main_ref): New native function to return
51	  an array as a reference.
52
532006-03-24  NOKUBI Takatsugu  <knok@daionet.gr.jp>
54
55	* Namazu.{xs,pm}: Removed errono.
56	  Added a global variable "status".
57	  Added nmz_getstatus() func.
58
592006-03-23  NOKUBI Takatsugu  <knok@daionet.gr.jp>
60
61	* Namazu.{xs,pm} : Added errno check.
62
632006-03-16  NOKUBI Takatsugu  <knok@daionet.gr.jp>
64
65	* t/01-mkindex.t: Removed some environment variables.
66
67	* Namazu.pm (Search): Fixed default order.
68	  Reported by Tadamasa Terasnishi, thanks.
69
70	* Namazu.xs: Fixed wrong array access.
71	  Reported by Tadamasa Teranishi, thanks.
72
732006-03-14  NOKUBI Takatsugu  <knok@daionet.gr.jp>
74
75	* Namazu.{xs,pm} : Added size attribute.
76	  Added maxhit paramater.
77
78	* Namazu.pm: Added more error status.
79
802003-03-10  NOKUBI Takatsugu  <knok@daionet.gr.jp>
81
82	* Version 0.93.
83
84	* Namazu.xs: Fixed bad sorting orders.
85	(Reported by Yo[u]ichi ISOZAKI, thank you.)
86
872002-06-19  NOKUBI Takatsugu  <knok@daionet.gr.jp>
88
89	* Version 0.92.
90
91	* Namazu.pm: Applied title, author and summary support patch.
92	(Contributed by Jun Kuriyama, thank you.)
93
94	* Namazu.pod.ja: Ditto.
95
96	* Namazu.xs: Ditto.
97
982002-02-19  NOKUBI Takatsugu  <knok@daionet.gr.jp>
99
100	* Version 0.91.
101
102	* Makefile.PL: Changed to use nmz-config.
103
104	* Namazu.xs: Changed include path of libnmz header files.
105
106	* Version 0.90.
107
108	* Namazu.xs (call_search_main): Added perl version check on
109	workaround routine.
110
111	* Makefile.PL: Added clean target.
112
113	* t/02-search.t: Added lang paramater.
114	Added more test.
115
1162002-02-18  NOKUBI Takatsugu  <knok@daionet.gr.jp>
117
118	* t/0[1-2]-*.t: Added 2 test scripts.
119
120	* Fixed copyright.
121
122	* t/*: Added some data for test suite.
123
1242001-08-01  NOKUBI Takatsugu  <knok@daionet.gr.jp>
125
126	* Namazu.xs: s/na/PL_na/
127
1282001-04-25  NOKUBI Takatsugu  <knok@daionet.gr.jp>
129
130	* Namazu.xs: Defined na and sv_undef for new perl.
131
1322001-01-19  NOKUBI Takatsugu  <knok@daionet.gr.jp>
133
134	* Namazu.pm: Version 0.13.
135	0.12 was not fixed no-result return bug.
136
1372001-01-17  NOKUBI Takatsugu  <knok@daionet.gr.jp>
138
139	* Namazu.pm: Version 0.12.
140
141	* Namazu.xs: Fixed no-result return bug when query hits only
142	one staff.
143
1442000-11-06  NOKUBI Takatsugu  <knok@daionet.gr.jp>
145
146	* Namazu.pm : Fixed bad example code.
147
1482000-08-24  NOKUBI Takatsugu  <knok@daionet.gr.jp>
149
150	* Namazu.pm (Search): Removed checking return value of
151	nmz_setlang().
152
1532000-05-25  NOKUBI Takatsugu  <knok@daionet.gr.jp>
154
155	* Version 0.11.
156
157	* Added Namazu.pod.ja.
158
159	* Changed default order of results (descending -> ascending).
160
1612000-01-31  Ryuji Abe  <raeva@t3.rim.or.jp>
162
163	* nmz/util.[ch] (nmz_commas): Moved to src/result.c as commas.
164	(nmz_subst): Moved to src/form.c as subst.
165
166	* src/result.c (commas): Be static.
167
168	* src/form.c (subst): Likewise.
169
1702000-01-29  Kenji Suzuki  <kenji@po.ganseki.ne.jp>
171
172	* filter/hnf.pl: s/SUMMARY_LENGTH/MAX_FIELD_LENGTH/
173
1742000-01-29  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
175
176	* src/namazu-cmd.c (main): Fix default index bug.
177	[namazu-dev 1398]
178
179	* src/namazu-cgi.c (main): Ditto.
180
181	* conf/namazurc-sample: Modify comments.
182
183	* src/namazu-cgi.c (main): Fix load_rcfiles() timing bug.
184
185	* src/rcfile.c (process_rc_lang): It workd only if LANG is not
186	set.
187
188	* nmz/i18n.c (nmz_set_lang): Set enviromental variables for
189	gettext() only if LANG is not set.
190
191	* src/rcfile.c (show_config): Modify display formats.
192
193	* src/output.c (get_emphasis_tag_start): New function.
194	(get_emphasis_tag_end): Ditto.
195
196	* nmz/replace.c (nmz_show_replaces): Abolished.
197	(nmz_get_replaces): New function.
198
199	* nmz/alias.c (nmz_show_aliases): Abolished.
200
201	* nmz/replace.c (nmz_get_replaces): New function.
202
203	* src/rcfile.c (add_loaded_rcfile): New function.
204
205	* scripts/mknmz.pl.in (load_rcfiles): Renamed to be same name in
206	used in namazu command.
207
208	* src/rcfile.c (set_namazurc): Be void.
209
210	* src/namazu-cgi.c (conjuct_pathname): New function derived from
211	set_pathname in rcfile.c.
212
213	* src/rcfile.c (show_config): Renamed from show_rcfile and modified.
214	(set_pathname): Abolished.
215
216	* src/namazu-cmd.c (main): Change timing of loding rcfile.
217
218	* src/namazu-cgi.c (main): Ditto.
219
220	* nmz/util.c (nmz_is_file_exists): New function.
221
222	* src/rcfile.c (getenv_namazurc): Change behaviour.
223	(load_rcfile): Change behaviour.
224	(load_rcfiles): New function derived from open_rcfile.
225	(open_rcfile): Abolished.
226
227	* scripts/mknmz.pl.in (show_usage): Gettextized.
228
229	* pl/usage.pl: Gettextized.
230
231	* scripts/mknmz.pl.in (parse_options): Abolish --lang option.
232
233	* src/namazu-cmd.c (parse_options): Abolish --lang option.
234
235	* src/usage.c (show_usage): Ditto.
236
2372000-01-29  Ryuji Abe  <raeva@t3.rim.or.jp>
238
239	* acinclude.m4 (AM_PATH_LISPDIR): Do not AC_SUBST(emacsdir).
240
241	* scripts/Makefile.am: Revert to verbose configuration process.
242	(TAGS_DEPENDENCIES): Set $(SCRIPTS).
243
244	* lisp/Makefile.am (lisp_LISP): Comment out.
245
246	* configure.in (AM_PATH_LISPDIR): Likewise.
247
248	* templade/Makefile.am (EXTRA_DIST): Fixed wrong entries.
249
250	* src/rcfile.c: Include <errno.h>.
251
2522000-01-28  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
253
254	* pl/Makefile.am (perllib_DATA): Remove find.pl.
255	(EXTRA_DIST): Simplified.
256
257	* scripts/mknmz.pl.in (put_log): Getteztized.
258	s/Files/Documents/g.
259
260	* pl/gettext.pl.in (N_): New function.
261
262	* scripts/mknmz.pl.in (find_target): Change a message.
263	(load_modules): Do not require find.pl.
264
265	* pl/find.pl: Removed.
266
267	* scripts/mknmz.pl.in (find_target): Use File::Find's find()
268	instead of one in pl/find.pl.
269	(wanted): Abolished and transformed to $wanted_closure in
270	find_target().
271
272	* template/Makefile.am (template_DATA): Add
273	NMZ.result.{normal,short}.ja
274	(EXTRA_DIST): Simplified.
275
276	* configure.in (COPYRIGHT): Add "Copyright (C) 1997-1999 Satoru
277	Takabayashi All rights reserved.\n"
278
279	* pl/var.pl.in: Make $COPYRIGHT double-quoted string.
280
281	* src/output.c (print_hlist): Fix a bug.
282
283	* template/NMZ.result.normal.ja: New file.
284
285	* template/NMZ.result.short.ja: Ditto.
286
287	* src/output.c (load_nmz_result): New function.
288	(load_nmz_result): Handle lang suffix such as ".ja".
289
290	* configure.in: Fix OPT_ADMIN_EMAIL handling bug.
291
292	* scripts/mknmz.pl.in (init): Overwrite $TEMPLATEDIR if
293	../template/NMZ.head exists. This is for executing mknmz in
294	scripts directory.
295
296	* configure.in: Aboslish --with-admin=EMAIL option.
297
298	* pl/var.pl.in: Fix $MAILING_ADDRESS quotation bug.
299
300	* scripts/mknmz.pl.in (make_headfoot): Handle <!-- ADDRESS -->.
301
302	* template/NMZ.foot.ja.in: Add <!-- ADDRESS --> marks.
303
304	* template/NMZ.foot.in: Ditto.
305
306	* pl/conf.pl.in: Add $ADDRESS and change commenting style.
307
308	* conf/namazurc-sample: Add comments for Template directive.
309
310	* src/rcfile.c (process_rc_template): New function.
311
312	* src/namazu.c (get_templatedir): New function.
313	(set_templatedir): Ditto.
314	(make_fullpathname_msg): Use templatedir.
315
316	* src/result.c (compose_result): Be const 3rd parameter.
317
318	* src/namazu.c (namazu_core): Abolish 3rd parameter. All callers
319	changed.
320	* src/usage.c (show_usage): Use MAILING_ADDRESS macro.
321
322	* pl/var.pl.in: Define $MAILING_ADDRESS.
323
324	* pl/usage.pl: Use $var::MAILING_ADDRESS.
325
326	* configure.in: Define MAILING_ADDRESS.
327
328	* acconfig.h: Add MAILING_ADDRESS.
329
330	* configure.in (OPT_NMZ_URI): Change URI of Namazu Website.
331
3322000-01-28  Ryuji Abe  <raeva@t3.rim.or.jp>
333
334	* src/Makefile.am (noinst_PROGRAMS): Changed libexec_PROGRAMS.
335
3362000-01-27  Ryuji Abe  <raeva@t3.rim.or.jp>
337
338	* lib/alloca.c: New file (taken from GNU grep-2.4).
339
340	* lib/Makefile.am (EXTRA_DIST): Added alloca.c.
341
342	* nmz/Makefile.am (libnmz_la_LDFLAGS): Set -version-info to 2:0:0.
343
3442000-01-27  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
345
346	* pl/var.pl.in: Set $COPYRIGHT to "@COPYRIGHT@".
347
348	* src/usage.c (show_version): Use COPYRIGHT macro.
349
350	* configure.in: Define COPYRIGHT.
351
352	* acconfig.h: Add #undef COPYRIGHT
353
354	* src/output.c (set_emphasis_tags): New function.
355
356	* src/rcfile.c (process_rc_emphasistags): New function.
357
358	* conf/namazurc-sample: Comments modified.
359
360	* src/em.h: Removed.
361
362	* src/output.h: Import enum from em.h.
363
364	* src/rcfile.c (process_rc_base): Abolished.
365
366	* src/cgi.c (get_query_string): Remove unnecessary cast.
367
368	* src/rcfile.c: Gettextized.
369
370	* src/usage.c (show_usage): Simplfied.
371
372	* src/cgi.c (get_query_string): Abolish POST method support.
373
374	* src/cgi.c (apply_cgifunc): Simplfy calling a pointed function.
375
376	* src/rcfile.c (apply_rc): Simplfy calling a pointed function.
377
378	* pl/util.pl (cp): Abolished.
379
380	* scripts/mknmz.pl.in: Use File::Copy's copy instead of
381	util::cp. All callers changed.
382
383	* src/namazu-cmd.c (main): Print a help message if invoked as CGI.
384	[namazu-dev 1339]
385
386	* src/Makefile.am (namazu_cgi_SOURCES): Add cgi.c and cgi.h.
387	(common_SOURCES): Remove cgi.c and cgi.h.
388
389	* src/output.c (is_cgimode): Be static.
390
391	* src/rcfile.c: Make directive_tab static.
392
393	* src/Makefile.am (common_SOURCES): Renamed from namazu_SOURCES
394	(namazu_SOURCES): Use $(common_SOURCES) and namazu-cmd.c
395	(namazu_cgi_SOURCES): Use $(common_SOURCES) and namazu-cgi.c
396
397	* src/namazu-cmd.c: New file derived from namazu.c
398
399	* src/namazu-cgi.c: Ditto.
400
401	* src/namazui.c (suicide): Removed.
402	(main): Ditto.
403	(parse_options): Ditto.
404	(ck_atoi): Ditto.
405	(stdio2file): Ditto.
406
407	* src/namazu.c (main): Change position of calling nmz_set_lang()
408	and load_rcfile().
409
410  	* configure.in (AM_INIT_AUTOMAKE): Bumped version number to 1.9.14.
411
4122000-01-26  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
413
414  	* Namazu: Version 1.9.13 released.
415
416	* src/rcfile.c (process_rc_lang): Call nmz_set_lang() in anytime
417	for workaround. (temporary change)
418
419	* src/namazu.c (main): Fix a security hole in CGI mode which
420	allows malicious person to put a garbage file on a Web server's
421	directory such as /tmp. -- reported by Motoyuki Kasahara
422	<m-kasahr@sra.co.jp>
423
424	* src/form.c (replace_query_value): Use html_print() to print the
425	query instead of print().
426
427	* pl/codeconv.pl (toeuc): Fix codeconv bug. [namazu 1316]
428
4292000-01-25  Ryuji Abe  <raeva@t3.rim.or.jp>
430
431	* nmz/util.h: (nmz_iskanji): Moved to wakati.c as iskanji.
432	(iskanji1st): Moved to codeconv.c.
433	(iskanji2nd): Likewise.
434
435	* nmz/util.c: Removed #include "message.h".
436	(nmz_strerror): Replaced MSG_TOO_LONG_QUERY -> "Too long query".
437
438	* nmz/codeconv.[ch] (nmz_iskatakana): Moved to wakati.c as
439	iskatakana.
440	(nmz_ishiragana): Moved to wakati.c as ishiragana.
441
442	* nmz/wakati.c (iskatakana): Private function.
443	(ishiragana): Likewise.
444
4452000-01-23  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
446
447	* src/rcfile.c (process_rc_lang): Call nmz_set_lang only if
448	environmental variable LANG is not set. [namazu-dev 1277]
449
450	* src/rcfile.c (show_rcfile): Follow Fujiwara's sugesstion.
451	[namazu-dev 1298]
452
4532000-01-22  Masao Takaku  <masao@ulis.ac.jp>
454
455	* nmz/search.c (parse_access): Fix a bug [namazu-dev 1290].
456	Keep nmz_perm to use it later.
457
4582000-01-21  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
459
460	* TODO: Edit it.
461
4622000-01-20  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
463
464	* src/namazu.c (namazu_core): Use nmz_free_internal() instead of
465	calling nmz_free_idxnames(), nmz_free_aliases() and
466	nmz_free_replaces() respectively.
467
468	* nmz/libnamazu.c (nmz_free_internal): New function.
469
470	* scripts/mknmz.pl.in (load_modules): Modify textdomain calling.
471
472	* pl/gettext.pl.in (choose_catalog): New function.
473	(textdomain): Take the second parameter LANG.
474
475	* scripts/mknmz.pl.in (show_mini_usage): gettextized.
476
477	* pl/usage.pl: Remove $USAGE_MINI.
478
479	* scripts/mknmz.pl.in (muda): Add $var::USE_NKF_MODULE.
480
481	* configure.in: Fix --with-pmdir handling.
482
483	* nmz/query.c (nmz_make_query): Call nmz_codeconv_query().
484
485	* src/namazu.c (namazu_core): Do not call nmz_codeconv_query().
486
487	* src/rcfile.ch (set_namazurc): Remove prefix "nmz_" and all
488	callers changed.
489	(load_rcfile): Ditto.
490	(show_rcfile): Ditto.
491
492	* src/rcfile.c: Moved from ../nmz directory.
493
494	* src/rcfile.h: Ditto.
495
496	* nmz/Makefile.am (libnmz_la_SOURCES): Remove rcfile.c and rcfile.h.
497
498	* src/Makefile.am (namazu_SOURCES): Add rcfile.c and rcfile.h.
499
5002000-01-20  Ryuji Abe  <raeva@t3.rim.or.jp>
501
502	* Makefile.am (COMMON_DIRS): New Variable.
503	(install-data-local): Handled $(COMMON_DIRS), never tknamazu.
504
5052000-01-19  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
506
507  	* configure.in (AM_INIT_AUTOMAKE): Bumped version number to 1.9.13.
508
509  	* Namazu: Version 1.9.12 released.
510
511	* src/usage.c (show_usage): s/no-encode-uri/no-decode-uri/
512
513	* src/namazu.c (parse_options): Insert set_uridecode(0) at proper
514	positions.
515	(main): Ditto.
516	long_options[]: s/no-encode-uri/no-decode-uri/
517
518	* src/result.c (replace_field): Fix the bug [namazu-dev 1250].
519	Change the default value of uridecode.
520
5212000-01-18  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
522
523	* configure.in: Restore AC_SUBST(OPT_NMZ_URI).
524
525	* nmz/search.c (nmz_search): Fix a serious bug. [namazu-dev 1233]
526
527	* src/namazu.c (namazu_core): Change a little.
528
5292000-01-16  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
530
531	* scripts/mknmz.pl.in (write_message): Do not convert character
532	encoding. (Fix the bug reported in [namazu-dev 1209])
533	(make_headfoot): Ditto.
534
5352000-01-16  Ryuji Abe  <raeva@t3.rim.or.jp>
536
537	* configure.in: Use BUILD_TKNAMAZU conditional instead of
538	AC_SUBST(TKNAMAZU).
539
540	* Makefile.am: Likewise.
541	(BUILT_TKNAMAZU): Set tknamazu if BUILD_TKNAMAZU.
542	(DIST_TKNAMAZU): Set tknamazu if not BUILD_TKNAMAZU.
543	(SUBDIRS): Use $(BUILT_NAMAZU) instead of tknamazu.
544	(DIST_SUBDIRS): Likewise. Forgotten scripts has added.
545	(EXTRA_DIST): Remove pxgettext.
546	(EXTRA_DIRS): Removed template and added $(DIST_TKNAMAZU).
547	(dist-hook): Remove .cvsignore and autogen.sh if exist.
548
5492000-01-14  NOKUBI Takatsugu  <knok@daionet.gr.jp>
550
551	* pl/find.pl : More gettextize.
552
5532000-01-14  Ryuji Abe  <raeva@t3.rim.or.jp>
554
555	* lib/Makefile.am (EXTRA_DIST): Added forgotten easy-vsnprintf.c.
556
557	[Removed unnessesary includes, here is the list.]
558
559	* nmz/field.c: src/result.h.
560
561	* nmz/libnamazu.c: lib/getopt.h, src/cgi.h, src/form.h, src/output.h,
562	and src/usage.h.
563
564	* nmz/search.c: src/output.h and src/result.h.
565
566	* nmz/wakati.c: src/message.h and src/output.h.
567
5682000-01-13  Kenji Suzuki  <kenji@po.ganseki.ne.jp>
569
570        * filter/hnf.pl: New file.
571
5722000-01-13  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
573
574	* configure.in: Abolish --with-scoring option.
575
576	* nmz/hlist.c (nmz_get_hlist): Modify the way to handle tfidf.
577
578	* nmz/search.c (nmz_do_searching): Abolish tfidf handling in the func.
579
580	* nmz/idxname.c (nmz_set_defaultidx): New function.
581	(nmz_get_defaultidx): Ditto.
582
583	* nmz/rcfile.c (namazurcdir): Move from var.c.
584
585	* nmz/search.c (nmz_set_tfidfmode): New function.
586	(nmz_is_tfidfmode): Ditto.
587	(nmz_search_sub): Do not check nmz_is_tfidfmode() to call
588	nmz_set_docnum().
589
590	* nmz/var.c (TfIdf): Abolished. All users changed.
591	(CONFDIR): Abolished. All users changed.
592	(BASE_URI): Abolished. All users changed.
593	(DEFAULT_INDEX): Abolished. All users changed.
594
595	* src/output.c (set_template): Make parameter(s) be const.
596
5972000-01-12  Ryuji Abe  <raeva@t3.rim.or.jp>
598
599	* po/POTFILES.in: Added scripts/mknmz.pl.in.
600
6012000-01-12  NOKUBI Takatsugu  <knok@daionet.gr.jp>
602
603	* scripts/mknmz.pl.in (load_modules): Modified to call textdomain().
604
605	* pl/gettext.pl.in (mo_format_value): Modified to use private
606	variables.
607
6082000-01-12  Ryuji Abe  <raeva@t3.rim.or.jp>
609
610	* configure.in(AC_CHECK_FUNCS): Checking for __vsnprintf.
611
612	* lib/easy-vsnprintf: Derived from gnome-libs support file.
613
614	* nmz/util.h: Removed HAVE__VSNPRINTF conditional.
615
6162000-01-11  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
617
618	* nmz/libnamazu.h (nmz_set_dyingmsg): Use __PRETTY_FUNCTION__ if
619	#ifdef __GNUC__.
620
621	* configure.in: Fix a message.
622
6232000-01-11  Ryuji Abe  <raeva@t3.rim.or.jp>
624
625	* nmz/util.h: Added prefix macro difinitions.
626	s/iseuc/nmz_iseuc/g.
627	s/iskanji/nmz_iskanji/g.
628	(ischoon): Removed unused macro.
629
630	* nmz/codeconv.c: Likewise.
631
632	* nmz/search.c: Likewise.
633
634	* nmz/util.c: Likewise.
635
636	* nmz/wakati.c: Likewise.
637
6382000-01-10  Ryuji Abe  <raeva@t3.rim.or.jp>
639
640	* configure.in: Many Changes. Abolished --with-COMMAND=PATH style
641	options except --with-emacs and --with-perl5.
642	(AC_CHECK_SIZEOF): New macro. checking for int, long, long long.
643	(--with-included-file-mmagic): Use instead of --without-file-mmagic.
644	(AM_CONDITIONAL): New Macro.
645	(--without-tknamazu): Revert to --with-tknamazu, but changed not to
646	be built by default.
647
648	* Makefile.am (SUBDIRS): Added template. if BUILD_FILE_MMAGIC defined,
649	File-MMagic will be built.
650	(DIST_SUBDIRS): Added template.
651	(DISTCLEANFILES): Removed.
652	(DISTCLEANDIRS): LIkewise.
653	(pkgdatadir): Likewise.
654
6552000-01-10  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
656
657	* nmz/rcfile.c (parse_rcfile): Fix memory leak bug.
658
659	* nmz/idxname.c: Inclued "util.h".
660
661	* nmz/rcfile.h: Inclued "util.h".
662
663	* nmz/search.c (open_index_files): Cleaned up.
664	(is_locked): Renamed from check_lockfile().
665
666	* src/output.c (print): New function derived from nmz_print().
667
668	* nmz/util.c (nmz_print): Abolished.
669
670	* nmz/re.c (nmz_regex_grep): prefix nmz added.
671
672	* nmz/hlist.c (struct str_num): Abolished.
673
674	* nmz/libnamazu.h (enum nmz_searchmethod): Renamed from enum
675	nmz_searchmethod.
676
677	* nmz/rcfile.c (get_rc_args): Be static.
678
679	* nmz/util.h (struct nmz_strlist): Moved from libnamazh.h
680
681	* src/namazu.c (parse_options): Call nmz_load_rcfile() in 'f' option.
682
683	* nmz/search.c (nmz_search): Fix error state handling.
684	(do_prefix_match_search): Fix serious bug. (cannot catch too much
685	match).
686
687	* nmz/rcfile.c (nmz_load_rcfile): Handle a line ending with `\' to
688	concatenate the next line.
689	(parse_rcfile): Fix bug.
690
691	* nmz/parser.c (factor): Use temporary variable to simplify codes.
692	(andop): Ditto.
693	(orop): Ditto.
694
695	* nmz/idxname.c (nmz_add_index): Add warning message.
696
697	* nmz/parser.c (factor): Handle an invalid query as error.
698
699	* nmz/rcfile.c (process_rc_blank): New function.
700	(process_rc_comment): Ditto.
701	(process_rc_debug): Ditto.
702	(process_rc_index): Ditto.
703	(process_rc_base): Ditto.
704	(process_rc_alias): Ditto.
705	(process_rc_replace): Ditto.
706	(process_rc_logging): Ditto.
707	(process_rc_scoring): Ditto.
708	(process_rc_lang): Ditto.
709	(is_valid_argnum): Abolished.
710	(parse_rcfile): Modified.
711	(apply_rc): Ditto.
712
713	* src/cgi.c (apply_cgifunc): Remove unused variable i.
714
715	* nmz/util.c (free_strlist): New function.
716	(push_strlist): New function.
717
718	* nmz/libnamazu.h (struct nmz_strlist): New data structure.
719
720	* src/namazu.c (main): Remove debug codes.
721	(main): Change parse_options() calling position.
722
7232000-01-09  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
724
725	* configure.in (ALL_LINGUAS): Remove ja_JP.ISO-2022-JP.
726	(AC_OUTPUT): Remove po/make_iso-2022-jp_po.
727
728	* nmz/Makefile.am: Move add-prefix to maintMakefile
729
730	* nmz/maintMakefile: New file.
731
732	* nmz/re.h (ALLOC_N): Use nmz_xmalloc() instead of xmalloc()
733	(ALLOC): Ditto.
734
735	* nmz/util.c: Changed function names.
736	s/xrealloc/nmz_xrealloc/g
737	s/xmalloc)/nmz_xmalloc/g
738	s/scan_hex/nmz_scan_hex/g
739	s/scan_oct/nmz_scan_oct/g
740
741	* nmz/regex.[ch]: Generated from Ruby 1.4.3's regex.[ch].
742	Add prefix to all extern functions. All callers	changed.
743
744	* nmz/hlist.[ch]: Changed function names.
745	s/andmerge/nmz_andmerge/g
746	s/notmerge/nmz_notmerge/g
747	s/ormerge/nmz_ormerge/g
748	s/malloc_hlist/nmz_malloc_hlist/g
749	s/realloc_hlist/nmz_realloc_hlist/g
750	s/free_hlist/nmz_free_hlist/g
751	s/copy_hlist/nmz_copy_hlist/g
752	s/set_idxid_hlist/nmz_set_idxid_hlist/g
753	s/merge_hlist/nmz_merge_hlist/g
754	s/do_date_processing/nmz_do_date_processing/g
755	s/get_hlist/nmz_get_hlist/g
756	s/sort_hlist/nmz_sort_hlist/g
757	s/reverse_hlist/nmz_reverse_hlist/g
758	s/set_docnum/nmz_set_docnum/g
759	s/set_sortfield/nmz_set_sortfield/g
760	s/get_sortfield	/nmz_get_sortfield/g
761
762	* nmz/i18n.[ch]: Changed function names.
763	s/is_lang_ja/nmz_is_lang_ja/g
764	s/set_lang/nmz_set_lang/g
765	s/get_lang/nmz_get_lang/g
766	s/choose_msgfile_suffix/nmz_choose_msgfile_suffix/g
767
768	* nmz/parser.[ch]: Changed function names.
769	s/init_parser/nmz_init_parser/g
770	s/expr/nmz_expr/g
771	s/isop/nmz_is_query_op/g
772
773	* nmz/wakati.[ch]: Changed function names.
774	s/wakati/nmz_wakati/g
775
776	* nmz/field.[ch]: Changed function names.
777	s/isfield/nmz_isfield/g
778	s/get_field_name/nmz_get_field_name/g
779	s/get_field_data/nmz_get_field_data/g
780
781	* nmz/query.[ch]: Changed function names.
782	s/make_query/nmz_make_query/g
783	s/get_querytokennum/nmz_get_querytokennum/g
784	s/get_querytoken/nmz_get_querytoken/g
785
786	* nmz/rcfile.[ch]: Changed function names.
787	s/set_namazurc/nmz_set_namazurc/g
788	s/load_rcfile/nmz_load_rcfile/g
789	s/show_rcfile/nmz_show_rcfile/g
790
791	* nmz/codeconv.[ch]: Changed function names.
792	s/conv_ja_any_to_eucjp/nmz_conv_ja_any_to_eucjp/g
793	s/zen2han/nmz_zen2han/g
794	s/ishiragana/nmz_ishiragana/g
795	s/iskatakana/nmz_iskatakana/g
796	s/conv_ext/nmz_conv_ext/g
797
798	* nmz/alias.[ch]: Changed function names.
799	s/add_alias/nmz_add_alias/g
800	s/get_aliases/nmz_get_aliases/g
801	s/show_aliases/nmz_show_aliases/g
802
803	* nmz/replace.[ch]: Changed function names.
804	s/replace_uri/nmz_replace_uri/g
805	s/add_replace/nmz_add_replace/g
806	s/show_replaces/nmz_show_replaces/g
807
808	* nmz/idxname.[ch]: Changed function names.
809	s/add_index/nmz_add_index/g
810	s/get_idxnum/nmz_get_idxnum/g
811	s/uniq_idxnames/nmz_uniq_idxnames/g
812	s/expand_idxname_aliases/nmz_expand_idxname_aliases/g
813	s/complete_idxnames/nmz_complete_idxnames/g
814	s/get_idxname/nmz_get_idxname/g
815	s/get_idx_totalhitnum/nmz_get_idx_totalhitnum/g
816	s/set_idx_totalhitnum/nmz_set_idx_totalhitnum/g
817	s/get_idx_hitnumlist/nmz_get_idx_hitnumlist/g
818	s/set_idx_hitnumlist/nmz_set_idx_hitnumlist/g
819
820	* nmz/searc.[ch]: Changed function names.
821	s/free_hitnums/nmz_free_hitnums/g
822	s/binsearch/nmz_binsearch/g
823	s/do_search/nmz_do_searching/g
824
825	* nmz/hlist.c (sort_hlist): Change a parameter name.
826
827	* nmz/libnamazu.h (enum nmz_sortmethod): Renamed.
828	(enum nmz_sortorder): Renamed.
829
830	* nmz/libnamazu.[ch]: Changed function names.
831	s/free_aliases/nmz_free_aliases/g
832	s/free_replaces/nmz_free_replaces/g
833	s/codeconv_query/nmz_codeconv_query/g
834	s/set_sortmethod/nmz_set_sortmethod/g
835	s/set_sortorder/nmz_set_sortorder/g
836	s/set_debugmode/nmz_set_debugmode/g
837	s/is_debugmode/nmz_is_debugmode/g
838	s/set_loggingmode/nmz_set_loggingmode/g
839	s/get_sortorder/nmz_get_sortorder/g
840	s/get_sortmethod/nmz_get_sortmethod/g
841
842	* src/usage.c (show_mini_usage): Use fputs() instead of printf()
843	to avoid mojibake in LANG=ja_JP.ISO-2022-JP.
844
8452000-01-09  Ryuji Abe <raeva@t3.rim.or.jp>
846
847	* po/make_iso-2022-jp_po.in: Quit replace % -> %%.
848
8492000-01-08  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
850
851	* nmz/rcfile.c (load_rcfile): Fix bug.
852	(is_valid_argnum): Handle unknown directive as an error.
853
854	* nmz/libnamazu.h (nmz_set_dyingmsg): New macro.
855
856	* nmz/libnamazu.c (nmz_get_dyingmsg): Renamed from get_dyingmsg.
857	(nmz_set_dyingmsg_func_sub): Derived from set_dyingmsg.
858	(nmz_msg): New function.
859
860	* src/namazu.c (die): New function.
861	All callers changes to use die() instead of nmz_die().
862
863	* nmz/util.c (nmz_die): Abolished.
864
865	* src/form.c (replace_query_value): Use strerror().
866
867	* src/output.c (print_hlist): Use strerror().
868
869	* src/namazu.h (main): Abolish unused enums DIE_ERROR and
870	DIE_NOERROR.
871
872	* nmz/util.c (nmz_strerror): Renamed from nmz_get_errnmsg().
873	(nmz_strerror): Use assert().
874	All callers changed.
875	(nmz_die): Modified a bit.
876
877	* nmz/rcfile.c (is_valid_argnum): Use assert(0) instead of
878	MUST_NOT_BE_HERE() macro.
879
880	* nmz/libnamazu.h: Abolish MUST_NOT_BE_HERE macro().
881
8822000-01-07  Ryuji Abe <raeva@t3.rim.or.jp>
883
884	* nmz/util.c (nmz_strlower): Modified commentations.
885
8862000-01-07  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
887
888	* nmz/codeconv.c: Include <errno.h>
889
890	* nmz/hlist.c (realloc_hlist): Use strerror().
891
892	* nmz/search.c (normalize_idxnames): Make it not call nmz_die().
893	(nmz_search): Check a return value of normalize_idxnames().
894
895	* src/namazu.c (stdio2file): Die if freopen() failed.
896
897	* nmz/rcfile.c (is_valid_argnum): Use nmz_die() instead of
898	set_dyingmsg();
899
900	* nmz/hlist.c (field_sort): Use strerror().
901
902	* nmz/codeconv.c: Use strerror().
903	(conv_ext): Ditto.
904
905	* nmz/field.c (get_field_data): Use nmz_warn_printf() instead of
906	nmz_debug_printf() and use strerror().
907	Include <errno.h>
908	Add copyright notice.
909
910	* nmz/search.c (do_logging): Use strerror().
911	Include <errno.h>
912	(do_regex_search): Use nmz_warn_printf() instead of
913	nmz_debug_printf() and use strerror().
914
915	* src/output.c (print_errmsg): Prepare prototype.
916
917	* nmz/search.c (normalize_idxnames): Prepare prototype.
918
919	* nmz/query.c: Include "query.h"
920
921	* nmz/var.h: Remove prototypes of unused variable.
922
923	* nmz/search.c (open_phrase_index_files): Use strerror().
924	Include <errno.h>
925
926	* src/output.c (print_msgfile): Use strerror().
927	Include <errno.h>
928	Add copyright notice.
929
930	* src/form.c (read_headfoot): Use strerrnor().
931	Include <errno.h>
932
933	* src/namazu.c (stdio2file): Use strerror().
934	Include <errno.h>
935
936	* nmz/hlist.c (do_date_processing): Use strerror().
937	(malloc_hlist): Use strerror().
938	Include <errno.h>
939
940	* nmz/idxname.c (expand_idxname_aliases): Use strerror().
941	(complete_idxnames): Ditto.
942	(push_hitnum): Ditto.
943	Include <errno.h>
944
945	* nmz/search.c (cmp_phrase_hash): Use strerror().
946	Include <errno.h>
947
948	* nmz/replace.c (add_replace): Use strerror().
949	Include <errno.h>
950
951	* nmz/alias.c (add_alias): Use strerror().
952	Include <string.h>
953	Include <errno.h>
954
955	* configure.in (AC_REPLACE_FUNCS): Add strerror.
956
957	* lib/strerror.c: Imported from NDTPD-2.3.6.
958	<http://www.sra.co.jp/people/m-kasahr/ndtpd/>
959
960	* nmz/util.c (nmz_cat): Abolished.
961	Include <errno.h>
962	(nmz_readfile): Use strerror().
963
964	* src/output.c (print_listing): Return error status.
965	(print_hlist): Ditto.
966	(print_errmsg): New function.
967
968	* nmz/util.c (nmz_get_errmsg): Handle
969	ERR_CANNOT_OPEN_RESULT_FORMAT_ FILE.
970
971	* nmz/libnamazu.h (enum nmz_stat): Add
972	ERR_CANNOT_OPEN_RESULT_FORMAT_ FILE.
973
974	* src/namazu.c (main): Do not call expand_idxname_aliases(),
975	complete_idxnames() and uniq_idxnames(). They are called in
976	normalize_idxnames().
977
978	* nmz/search.c (normalize_idxnames): New function.
979	(nmz_search): Use normalize_idxnames().
980
981	* nmz/field.c (get_field_name): Change interface. All callers
982	changed.
983
984	* nmz/util.c (nmz_get_errmsg): Handle ERR_FIELD_SEARCH_FAILED.
985
986	* nmz/search.c (do_field_search): Use ERR_CANNOT_OPEN_INDEX.
987
988	* nmz/libnamazu.h (enum nmz_stat): Add ERR_FIELD_SEARCH_FAILED.
989
9902000-01-07  NOKUBI Takatsugu  <knok@daionet.gr.jp>
991
992	* pl/find.pl (find,finddir): Fixed `(-d _)' expression.
993
994	* pl/{util,wakati,find}.pl: Gettextized.
995
996	* pl/conf.pl.in: Modified some comments refering to
997	required software version.
998
9992000-01-06  NOKUBI Takatsugu  <knok@daionet.gr.jp>
1000
1001	* scripts/mknmz.pl.in: Moved location of requiring gettext.pl.
1002
10032000-01-06  Ryuji Abe <raeva@t3.rim.or.jp>
1004
1005	* acinclude.m4: Removed libtool related macros.
1006
10072000-01-06  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1008
1009	* src/form.c (read_headfoot): Fix a memory leak bug.
1010
1011	* src/output.c (print_msgfile): Ditto.
1012
1013	* **/*.c, **/*.pl{,in}: Change copyright notice:
1014	1997-1999 -> 1997-2000
1015
1016	* pl/usage.pl ($VERSION_INFO): Use $var::COPYRIGHT.
1017
1018	* nmz/query.c: Use static struct nmz_query query = {0}
1019	instead of Query.
1020
1021	* nmz/var.c (struct nmz_query Query): Removed.
1022
1023	* nmz/parser.c: Use get_querytoken() and get_querytokennum()
1024	instead of accessing Query.tab[] directly.
1025	nmz/query.c: Ditto.
1026	nmz/search.c: Ditto.
1027	src/output.c: Ditto.
1028	src/result.c: Ditto.
1029
1030	* nmz/query.c: New file.
1031	(make_query): Derive from split_query() in wakati.c.
1032	(set_phrase_trick): Moved from wakati.c
1033	(set_regex_trick): Moved from wakati.c
1034	(get_querytokennum): New function.
1035	(get_querytoken): New function.
1036
1037	* nmz/query.h: New file.
1038
1039	* nmz/search.c (do_search): Turn tf idf off if query contains only
1040	one keyword.
1041
1042	* nmz/hlist.c (get_hlist): Change array opperations.
1043
1044	* nmz/parser.c (andop): Change a condition style.
1045
1046	* nmz/libnamazu.h (struct nmz_query): Add new member: int num.
1047
1048	* nmz/search.c (do_search): Fix wakati bug.
1049
1050	* nmz/wakati.c (split_query): Abolished.
1051
1052	* nmz/Makefile.am (pkginclude_HEADERS): Change order.
1053	(libnmz_la_SOURCES): Add query.c and query.h
1054
1055	* nmz/codeconv.c: Remove #include <namazu.h>
1056	nmz/field.c: Ditto.
1057	nmz/hlist.c: Ditto.
1058	nmz/i18n.c: Ditto.
1059	nmz/idxname.c: Ditto.
1060	nmz/libnamazu.c: Ditto.
1061	nmz/parser.c: Ditto.
1062	nmz/rcfile.c: Ditto.
1063	nmz/re.c: Ditto.
1064	nmz/util.c: Ditto.
1065	nmz/var.c: Ditto.
1066	nmz/wakati.c: Ditto.
1067
1068	* Makefile.am (EXTRA_DIST): Add INSTALL-ja.
1069
1070	* INSTALL-ja: New file.
1071	<http://www.sra.co.jp/people/m-kasahr/install/INSTALL-ja>
1072
1073	* nmz/libnamazu.h (struct nmz_indices): Change member names.
1074
1075	* nmz/idxname.c: Use static struct nmz_indices indices = {0}
1076	instead of Idx.
1077
1078	* nmz/var.c (struct nmz_indices Idx): Removed.
1079
1080	* nmz/search.c (do_phrase_search): Use get_idx_hitnumlist() and
1081	set_idx_hitnumlist().
1082	(nmz_search): Ditto.
1083	(do_search): Ditto.
1084
1085	* nmz/idxname.c (free_idxnames): Moved from libnamazu.c
1086	(uniq_idxnames): Ditto.
1087	(expand_idxname_aliases): Ditto.
1088	(complete_idxnames): Ditto.
1089	(get_idxnum): Renamed from getidxnum.
1090	(set_idx_totalhitnum): New function.
1091	(get_idx_totalhitnum): New function.
1092	(get_idx_hitnumlist): New function.
1093	(push_hitnum): Moved from search.c and change parameter order.
1094
1095	* src/namazu.c (main): Call set_refprint(1). bug fix.
1096
1097	* nmz/libnamazu.h (struct nmz_hitnumlist): Renamed from nmz_hitnum
1098
1099	* nmz/util.c (nmz_decode_uri): Chage a parameter name.
1100	(nmz_chomp): Ditto.
1101	(nmz_print): Ditto.
1102	(nmz_getidxptr): Ditto.
1103
1104	* nmz/search.c (lrget): Remove a unused paramter.
1105	(get_regex_part): Renamed from get_expr.
1106	(do_prefix_match_search): Make parameter(s) be const.
1107	(prefix_match): Ditto.
1108	(detect_search_mode): Ditto.
1109	(do_field_search): Ditto.
1110	(do_regex_search): Ditto.
1111	(get_file_size): Ditto.
1112	(do_word_search): Ditto.
1113	(hash): Ditto.
1114
1115	* nmz/field.c (get_field_name): Make parameter(s) be const.
1116	(get_field_data): Ditto.
1117
1118	* src/output.c (print_result): Make parameter(s) be const.
1119	(fputs_without_html_tag): Ditto.
1120
1121	* src/namazu.c (stdio2file): Make parameter(s) be const.
1122
1123	* src/form.c (check_checkbox): Change a parameter name.
1124
11252000-01-05  Ryuji Abe <raeva@t3.rim.or.jp>
1126
1127	* configure.in (AC_OUTPUT): Added template/Makefile.
1128
1129	* template/Makefile.am: New file.
1130
1131	* template/NMZ.body.ja: EUC-JP encoded. Replaced from ja_JP.JIS7 file.
1132
1133	* template/NMZ.foot.ja.in: Likewise.
1134
1135	* template/NMZ.head.ja.in: Likewise.
1136
1137	* template/NMZ.tips.ja: Likewise.
1138
11392000-01-05  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1140
1141	* nmz/util.c (nmz_subst): Make parameter(s) be const.
1142
1143	* nmz/search.c (do_search): Make parameter(s) be const.
1144	(nmz_search): Ditto.
1145	(binsearch): Ditto.
1146	(do_logging): Ditto.
1147	(push_hitnum): Ditto.
1148
1149	* nmz/rcfile.c (set_namazurc): Make parameter(s) be const.
1150	(load_rcfile): Ditto.
1151	(set_pathname): Ditto.
1152	(open_rcfile): Ditto.
1153	(get_rc_arg): Ditto.
1154	(get_rc_args): Ditto.
1155	(parse_rcfile): Ditto.
1156
1157	* nmz/re.c (regex_grep): Make parameter(s) be const.
1158
1159	* nmz/libnamazu.c (set_dyingmsg): Make parameter(s) be const.
1160
1161	* nmz/parser.c (isop): Make parameter(s) be const.p
1162
1163	* nmz/idxname.c (add_index): Make parameter(s) be const.
1164
1165	* nmz/hlist.c (set_sortfield): Make parameter(s) be const.
1166
1167	* nmz/i18n.c (set_lang): Make parameter(s) be const.
1168
1169	* nmz/field.c (get_field_data): Make parameter(s) be const.
1170	* nmz/field.c (isfield): Ditto.
1171
1172	* nmz/replace.c (add_replace): Make parameter(s) be const.
1173
1174	* nmz/alias.c (add_alias): Make parameter(s) be const.
1175
1176	* src/result.c (replace_field): Make parameter(s) be const.
1177
1178	* src/output.c (html_print): Make parameter(s) be const.
1179
1180	* src/cgi.c (validate_idxname): Make parameter(s) be const.
1181	(add_cgivar): Ditto.
1182	(apply_cgifunc): Ditto.
1183
1184	* src/cgi.c (remove_ending_slashes): New function.
1185
1186	* {src,nmz}/*.c: Change comment styles.
1187
1188	* nmz/codeconv.c: Fix ja_JP.JIS7 bug.
1189
1190	* template/NMZ.*.ja_JP.JIS7: Renamed to NMZ.*.ja
1191	and converted its character encoding to EUC-JP.
1192
1193	* src/namazu.c (main): Modify set_htmlmode(), set_pageindex(),
1194	set_formprint() callings.
1195
1196	* src/output.c: Set 0 to pageindex, formprint, refprint as default.
1197
1198	* nmz/util.c (nmz_die): Use get_dyingmsg().
1199	(nmz_die_with_msg): Abolished.	All callers changed.
1200
1201	* nmz/util.c (nmz_strprefixcasecmp): Make parameter(s) be const.
1202	(nmz_strprefixcmp): Ditto.
1203	(nmz_strsuffixcmp): Ditto.
1204	(nmz_readfile): Ditto.
1205	(nmz_cat): Ditto.
1206	(nmz_getenv): Ditto.
1207
1208	* src/form.c (replace_query_value): Make parameter(s) be const.
1209	(cmp_element): Ditto.
1210	(print_headfoot): Ditto.
1211	(read_headfoot): Ditto.
1212	(get_value): Ditto.
1213	(get_select_name): Ditto.
1214	(select_option): Ditto.
1215
1216	* nmz/codeconv.c (iskatakana): Make parameter(s) be const.
1217	(ishiragana): Ditto.
1218
1219	* nmz/codeconv.c (conv_ext): Returun a pointer of converted string.
1220	All callers changed.
1221
1222	* src/output.c: Use choose_msgfile_suffix.
1223
1224	* nmz/i18n.c (choose_msgfile_suffix): Derived from choose_msgfile.
1225	(choose_msgfile): Removed.
1226
1227	* nmz/util.c (nmz_pathcat): Make a first parameter be const.
1228
1229	* conf/namazurc-sample: New file.
1230
1231	* conf/namazurc: Removed.
1232
1233	* conf/Makefile.am: s/namazurc/namazurc-sample/g,
1234	s/mknmzrc/mknmzrc-sample/g
1235
1236	* po/ja_JP.ISO-2022-JP.po, po/make_iso-2022-jp_po,
1237	po/make_iso-2022-jp_po.in: New files.
1238
1239	* po/ja_JP.JIS7.po, po/make_jis7_po, po/make_jis7_po.in:
1240	Removed.
1241
1242	* configure.in (AC_OUTPUT): s/(NMZ\.(head|foot))\.ja_JP\.JIS7/$1.ja/g
1243	(AC_OUTPUT): s/make_jis7_po/make_iso-2022-jp_po/
1244	(ALL_LINGUAS): s/ja_JP.JIS7/ja_JP.ISO-2022-JP/
1245
1246	* scripts/mailutime.in: Fix Y2K bug. (handling 00)
1247
12482000-01-05  NOKUBI Takatsugu  <knok@daionet.gr.jp>
1249
1250	* scripts/mknmz.pl.in : Gettextized.
1251
12522000-01-04  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1253
1254	* filter/man.pl (filter): Make groff output one paragraph per one
1255	 line.  Thanks to Tatsuo SEKINE <tsekine@isoternet.org> for
1256	 his suggestion.
1257	 (filter): Fix jgroff/groff condition bug.
1258
1259	* maintMakefile (cxref-latex2e): New rule.
1260
1261	* acinclude.m4 (AM_WITH_CCMALLOC): Add "-ldl" to LIBS.
1262
12632000-01-04  Ryuji Abe <raeva@t3.rim.or.jp>
1264
1265	* configure.in (AM_MAINTAINER_MODE): Enabled maintainer mode.
1266
1267	* maintMakefile: New file. Some targets (snapshot, cxref,
1268	global, HTAGS, and GTAGS) moved from Makefile.
1269
1270	* Makefile.am (EXTRA_DIST): Added maintMakefile.
1271
12722000-01-04  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1273
1274	* {nmz,src}/*.c: Change C style (function definition).
1275
12762000-01-03  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1277
1278	* pl/Makefile.am (gettext.pl): Remove "chmod +x $@"
1279
12802000-01-03  Ryuji Abe <raeva@t3.rim.or.jp>
1281
1282	* acinclude.m4 (AM_WITH_CCMALLOC): Tiny Fix.
1283	(AM_PATH_LISPDIR): s/lookup/namazu/g.
1284
1285	* nmz/Makefile.am (AUTOMAKE_OPTIONS): Set 1.4.
1286	(libnmz_la_LDFLAGS): Set -version-info 1:0:0 for
1287	backward conpatibility.
1288
1289	* pl/Makefile.am (localedir): Set $(datadir)/locale.
1290	(gettext.pl): Generated when make all.
1291	(perllib_DATA): Added gettext.pl.
1292	(EXTRA_DIST): Added gettext.pl.in.
1293
1294	* pl/gettext/pl.in: Changed $(localedir) from
1295	@prefix@/share/locale to %LOCALEDIR%.
1296
12972000-01-03  NOKUBI Takatsugu  <knok@daionet.gr.jp>
1298
1299	* pl/gettext.pl.in: Added new file.
1300
13011999-12-31  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1302
1303	* scripts/mknmz.pl.in (setup_magic): Fix a regex pattern.
1304	[namazu-dev 1086]
1305
1306	* nmz/i18n.c: Include "i18n.h"
1307
1308	* filter/tex.pl (filter): Use \title{foo}, \author{bar},
1309	\begin{abstract} ... \end{abstract} information if available.
1310
1311	* scripts/mknmz.pl.in (put_field_index): Use MAX_FIELD_LENGTH to
1312	limit a field string.
1313	(make_summary): Ditto.
1314
1315	* pl/conf.pl.in: s/SUMMARY_LENGTH/MAX_FIELD_LENGTH/
1316	Add comments on MAX_FIELD_LENGTH.
1317
1318	* scripts/mknmz.pl.in (load_modules): Use ../filter/*.pl if
1319	exists. (for developing use)
1320	(load_modules): Allow `-' in a filter file name.
1321	(load_modules): Restore unshift @INC, "../filter".
1322
1323	* HACKING-ja: Attach [namazu-dev 1077] patch.
1324
1325	* Makefile.am (snapshot): New rule for making snapshot.
1326
1327	* man/Makefile.am (update-man): Fix mknmz's pathname.
1328	Replace " FSF$$" with "Namazu" in man files.
1329
13301999-12-30  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1331
1332	* pl/conf.pl.in: Add ".*\.tex" to $ALLOW_REGEX.
1333
1334	* scripts/mknmz.pl.in (load_modules): Remove:
1335	unshift @INC, "../filter"; Because it's useless.
1336
1337	* filter/Makefile.am (filter_DATA): Add tex.pl
1338
1339	* filter/tex.pl: New file. (derivated from pdf.pl)
1340
1341	* scripts/mknmz.pl.in (setup_magic): Add settings for TeX .
1342
1343
13441999-12-30  Ryuji Abe  <raeva@t3.rim.or.jp>
1345
1346	* nmz-config.in (--cflags): Revert to set @includedir@
1347	instead of @pkgincludedir@.
1348
1349	* pl/Makefile.am (perllib_DATA): Fixed typo.
1350	(EXTRA_DIST): Likewise.
1351
13521999-12-29  Ryuji Abe  <raeva@t3.rim.or.jp>
1353
1354	* filter/Makefile.am (AUTOMAKE_OPTIONS): 1.4.
1355	(ETAGS_ARGS): Handling perl scripts.
1356
1357	* pl/Makefile.am: Likewise.
1358	(COMMONDATA): Removed.
1359
13601999-12-28  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1361
1362	* pl/wakati.pl (wakatize_japanese_sub): Apply Makoto Fujiwara's
1363	patch. [namazu-dev 1070]
1364
1365
13661999-12-27  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1367
1368	* scripts/mknmz.pl.in: Set autoflush(1) to STDERR.
1369	(main): Add debug messaging.
1370
1371	* filter/man.pl (man_filter): Modify a regex to avoid exponential
1372	backtracking.
1373
13741999-12-24  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1375
1376	* nmz/search.c (do_prefix_match_search): Fix a bug occured when no
1377	documents are hit.
1378
1379	* scripts/bnamazu.in (main): Fix space-containing-argument bug.
1380	(cannot treat a phrase search query)
1381
13821999-12-24  Ryuji Abe <raeva@t3.rim.or.jp>
1383
1384	* acinclude.m4 (AM_WITH_CCMALLOC): New Macro.
1385
1386	* configure.in: add AM_WITH_CCMALLOC.
1387
13881999-12-23  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1389
1390	* nmz/libnamazu.h: Change QUERY_TOKEN_MAX: 16 -> 32.
1391
13921999-12-21  Makoto Fujiwara  <makoto@ki.nu>
1393
1394	* po/Makefile.in.in: Add $(srcdir)/ to let BSD make work.
1395
13961999-12-21  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1397
1398	* nmz/util.c (nmz_tolower): New function. substitute for tolower(3).
1399	(nmz_strlower): Use nmz_tolower instead of tolower(3) because of
1400	some system's poor implementation. maybe locale problem?
1401	[namazu-dev 1058]
1402
14031999-12-20  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1404
1405	* scripts/bnamazu.in (unlink_previous_netscape_tmpfile): New function.
1406	Since it is not good to remove a tmpfile immediately after
1407	invoking netscape (netscape requires the tmpfile to go back to
1408	it). we should remove a previous tmpfile at next bnamazu execution.
1409	(main): Use unlink_previous_netscape_tmpfile.
1410
14111999-12-20  Ryuji Abe  <raeva@t3.rim.or.jp>
1412
1413	* scripts/Makefile.am (ETAGS_ARGS): Handling perl scripts.
1414	(tags): Removed.
1415
14161999-12-19  Ryuji Abe  <raeva@t3.rim.or.jp>
1417
1418	* Makefile.am: Removed unnessesary `@SET_MAKE@'.
1419
1420	* src/Makefile.am (templatedir): Removed.
1421
1422	* scripts/Makefile.am (tags): Currently, target inserted as comment.
1423
14241999-12-19  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1425
1426	* configure.in (AC_OUTPUT): Add bnamazu.
1427
1428	* scripts/Makefile.am (bin_SCRIPTS): Add bnamazu.
1429
1430	* scripts/bnamazu.in: New file. Actually, it is revival.
1431
1432	* src/output.c (print_hitnum_all_idx): Fix a bug which occuered
1433	only if -h option is specified and multiple indices are specified.
1434
1435	* src/result.c (is_urireplace): Prepare its prototype declaration.
1436	(is_uridecode): Prepare its prototype declaration.
1437
1438	* Makefile.am (SUBDIRS): Add scripts.
1439
1440	* configure.in (AC_OUTPUT): Adjust to src/scripts exchanging.
1441
1442	* scripts/Makefile.am: New file for generating perl scripts.
1443	(noinst_SCRIPTS): Bring gtnmz from bin_SCRIPTS to here because
1444	gtnmz is a tool for mainly debugging.
1445
1446	* src/Makefile.am: Exclude perl scripts related codes.
1447
1448	* scripts/gcnmz.pl.in,gtnmz.in,kwnmz.pl.in,mailutime.in,
1449	mknmz.pl.in,nmzgrep.in vfnmz.in: Moved from src.
1450
1451	* scripts: New directory for containig mainly perl scripts.
1452
14531999-12-19  Makoto Fujiwara <makoto@ki.nu>
1454
1455	* src/mknmz.pl.in (find_target): $Scanned to count total # of files.
1456	(read_config) Neat output when -V is said.
1457	(prep): Check lock2 before find_target (new function check_lock).
1458	(parse_option): Add --mtime to give the similar func. as find(1).
1459	(wanted): Warn filename if $name contains \n\r.
1460
1461	* pl/usage.pl: add --mtime string.
1462
1463	* src/mknmz.pl.in (find_target): Add to show Elapsed time,
1464	If -V, print start and end time.
1465
1466	* AUTHORS: Add my address
1467
14681999-12-18  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1469
1470	* src/mknmz.pl.in (parse_options): Do not call read_config() when
1471	--config option is specified.
1472
1473	* conf/namazurc: Rewrited.
1474
1475	* src/mknmz.pl.in (require_modules): Require Text::ChaSen instead
1476	of Text::ChaSen1.
1477
1478	* configure.in: Detect Text::ChaSen instead of Text::ChaSen1.
1479
1480
14811999-12-17  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1482
1483	* src/mknmz.pl.in (wanted): Skip a file name containing LF/CR chars.
1484	(wanted): Fix a potential hazard. (Don't use $_ as default)
1485
14861999-12-16  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1487
1488	* src/mknmz.pl.in (read_config): Remove "mknmz.conf";
1489	(read_config): Modify a message slightly.
1490
1491	* filter/gfilter.pl (show_filter_debug_info): Fix a warning.
1492	"Use of uninitialized value at ../filter/gfilter.pl line 30"
1493
1494	* src/mknmz.pl.in (namazu_core): Use util::assert().
1495	(set_target_files()): Use util::assert().
1496
1497	* pl/util.pl (assert): New function like assert(3);
1498
1499	* src/mknmz.pl.in (find_target): Uniq @flist. [namazu-dev 1020]
1500	(find_target): Fix a syntax mistake.
1501	(check_file): Fix "is 0 size! skipped." condition. [namazu-dev 1023]
1502
15031999-12-15  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1504
1505	* nmz/Makefile.am (libnmz_la_LDFLAGS): Set -version-info to 0:1:0
1506
1507	* src/message.h (MSG_MIME_HEADER): Reindented to column 1.
1508
1509	* src/mknmz.pl.in: Apply Fujiwara-san's patch. [namazu-dev 1016]
1510
1511	* src/Makefile.am (noinst_PROGRAMS): New variable: namazu.cgi
1512	(namazu_cgi_SOURCES): New variable: $(namazu_SOURCES)
1513	(namazu_cgi_LDFLAGS): New variable defining: -static
1514	for supporting to make a static-linked namazu.cgi executable.
1515
1516	* nmz/util.h: Include libnamazu.h for resolving "enum nmz_stat".
1517
1518	* template/NMZ.head{,.ja_JP.JIS7}.in: s/field:title/field:subject/g
1519
15201999-12-14  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1521
1522	* nmz/search.c (do_phrase_search): Don't interrupt main loop
1523	halfway for storing hitnums of all words consist the phrase.
1524
1525	* src/output.c: Set pageindex to 1 as default. [namazu-dev 1001]
1526
1527	* configure.in (OPT_WAKATI_DEFAULT): Set default to
1528	"none". [namazu-dev 997]
1529
15301999-12-13  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1531
1532	* configure.in (AM_INIT_AUTOMAKE): Bumped version number to 1.9.12.
1533
1534	* pl/usage.pl: Use $var::VERSION in version info.
1535
15361999-12-12  Ryuji Abe <raeva@t3.rim.or.jp>
1537
1538	* util.[ch] : Changed function names.
1539	s/strcasestr/nmz_strcasestr/g
1540	s/strlower/nmz_strlower/g
1541	s/strprefixcasecmp/nmz_strprefixcasecmp/g
1542	s/strprefixcmp/nmz_strprefixcmp/g
1543	s/strsuffixcmp/nmz_strsuffixcmp/g
1544	s/isnumstr/nmz_isnumstr/g
1545	s/issymbol/nmz_issymbol/g
1546	s/safe_getenv/nmz_getenv/g
1547	s/commas/nmz_commas/g
1548	s/freadx/nmz_fread/g
1549	s/getidxptr/nmz_getidxptr/g
1550	s/decode_uri/nmz_decode_uri/g
1551	s/print/nmz_print/g
1552
1553	* nmz/field.c: Likewise.
1554
1555	* nmz/hlist.c: Likewise.
1556
1557	* nmz/i18n.c: Likewise.
1558
1559	* nmz/rcfile.c: Likewise.
1560
1561	* nmz/re.c: Likewise.
1562
1563	* nmz/search.c: Likewise.
1564
1565	* src/cgi.c: Likewise.
1566
1567	* src/form.c: Likewise.
1568
1569	* src/namazu.c: Likewise.
1570
1571	* src/output.c: Likewise.
1572
1573	* src/result.c: Likewise.
1574
1575
15761999-12-11  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1577
1578	* src/nmzgrep: Put /dev/null to egrep's argument.
1579
1580	* src/Makefile.am (bin_SCRIPTS): Add nmzgrep
1581
15821999-12-10  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1583
1584	* Namazu: Version 1.9.11 released.
1585
1586	* configure.in (AM_INIT_AUTOMAKE): Bumped version number to 1.9.11.
1587
1588	* src/cgi.h: Remove #ifdef __STDC__ related codes.
1589	src/output.h: Remove #ifdef __STDC__ related codes.
1590	src/result.h: Remove #ifdef __STDC__ related codes.
1591	nmz/alias.h: Remove #ifdef __STDC__ related codes.
1592	nmz/field.h: Remove #ifdef __STDC__ related codes.
1593	nmz/hlist.h: Remove #ifdef __STDC__ related codes.
1594	nmz/libnamazu.h: Remove #ifdef __STDC__ related codes.
1595	nmz/rcfile.h: Remove #ifdef __STDC__ related codes.
1596	nmz/regex.h: Remove #ifdef __STDC__ related codes.
1597	nmz/replace.h: Remove #ifdef __STDC__ related codes.
1598	nmz/search.h: Remove #ifdef __STDC__ related codes.
1599	nmz/util.h: Remove #ifdef __STDC__ related codes.
1600
1601	* configure.in (AC_OUTPUT): Add nmzgrep.in handling.
1602
1603	* src/nmzgrep.in: New file.
1604
1605	* src/mailutime.in: Modify comments.
1606
1607	* nmz/hlist.h: Remove badly made prototypes.
1608
1609	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.10.
1610
1611	* src/cgi.c (process_cgi_var_sort): Fix a serious CGI bug.
1612
1613	* nmz/hlist.c (set_sortfield): Renamed from set_sort_field.
1614	(get_sortfield): Renamed from get_sort_field.
1615
1616	* src/output.c (print_hlist): Fix --list mode bug.
1617
16181999-12-09  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1619
1620	* nmz/Makefile.am (libnmz_la_SOURCES): Add seed.h
1621
1622	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.9.
1623
1624	* src/mknmz.pl.in (make_summary): Fix a bug [namazu-dev 965]
1625
1626	* nmz/search.c (nmz_search): Modify error state handling.
1627
1628	* nmz/hlist.c (merge_hlist): Set vallue.stat to SUCCESS.
1629
1630	* src/output.c (print_result): Use nmz_get_errmsg().
1631	(print_hitnum_each): Use nmz_get_errmsg().
1632
1633	* nmz/util.c (nmz_get_errmsg): New function.
1634
1635	* nmz/search.c (nmz_search_sub): Renamed from search_sub().
1636
1637	* nmz/search.c (search_sub): Modify access permission handling.
1638
1639	* src/util.c: Abolish lastc();
1640
1641	* nmz/re.c, nmz/search.c, nmz/util.c, src/result.c: Abolish using
1642	lastc().
1643
1644	* nmz/util.c (nmz_debug_printf): Renamed from nmz_dprintf. (undo)
1645	(nmz_warn_printf): Renamed from nmz_wprintf. (undo) [namazu-dev 963]
1646
1647	* nmz/search.c (binsearch): Chomp term.
1648	(show_status): Chomp buf.
1649
1650	* nmz/util.c (nmz_drintf): Renamed from nmz_debug_printf.
1651	(nmz_wprintf): Renamed from nmz_warn_printf.
1652	(nmz_die): Modify LF treatment.
1653	(nmz_wprintf): Modify LF treatment.
1654	(nmz_dprintf): Modify LF treatment.
1655	(nmz_die_with_msg): Modify LF treatment.
1656
1657	* nmz/hlist.c: Renamed variables: DocNum -> document_number.
1658	Field -> field_for_sort.
1659
1660	* src/cgi.[ch]: Untypedef: CGIARG, CGIVAR and CGIVAR_FUNC.
1661
1662	* nmz/replace.c (struct nmz_replace *replaces): Be private.
1663
1664	* src/output.c (is_countmode): Be private.
1665	(is_listmode): Be private.
1666	(is_quietmode): Be private.
1667	(is_refprint): Be private.
1668	(print_hitnum): Be private.
1669	(print_hitnum_all_idx): Be private.
1670	(print_listing): Be private.
1671	(print_msgfile): Be private.
1672	(print_range): Be private.
1673
1674	* nmz/rcfile.c (load_rcfile): Fix a bug occurred when no rcfile exists.
1675
1676	* nmz/search.c (check_access): Renamed from is_access_ok. (undo)
1677
1678	* src/output.c (print_default_page): New function.
1679
1680	* src/output.c (print_result): New function.
1681
1682	* src/namazu.c (namazu_core): Move all output processings to
1683	output.c's print_result().
1684
1685	* src/output.c: Rename functions:
1686		s/put_query/print_query/
1687		s/put_page_index/print_page_index/
1688		s/put_query/print_query/
1689		s/put_current_range/print_current_range/
1690		s/put_page_index/print_page_index/
1691
1692	* Makefile.am (cxref): Change a dependency: stamp-h -> src/namazu
1693	(GTAGS): Change a dependency: stamp-h -> src/namazu
1694
1695	* src/result.c (is_urireplace): Be private.
1696	(is_uridecode): Be private.
1697
1698	* src/output.c (is_allresult): Be private.
1699	(is_pageindex): Be private.
1700	(print_hlist): Be private.
1701	(put_current_range): Be private.
1702	(put_page_index): Be private.
1703	(put_query): Be private.
1704
1705	* nmz/field.c (apply_field_alias): Be private.
1706
1707	* nmz/seed.h: New file.
1708
1709	* nmz/seed.c (nmz_seed): Renamed from Seed.
1710
1711	* nmz/util.c (decode_uri): Moved from cgi.c.
1712	(decode_uri_sub): Moved from cgi.c.
1713
1714	* src/output.c (print_hlist): Modify is_listmode handling.
1715
1716	* src/result.c (is_urireplace): Moved from output.c
1717	(set_urireplace): Moved from output.c
1718	(is_uridecode): Moved from output.c
1719	(set_uridecode): Moved from output.c
1720
1721	* src/output.c (make_fullpathname_result): Moved from result.c.
1722
1723	* nmz/field.c (get_field_data): Call decode_uri() if necessary.
1724
1725	* nmz/search.c (is_access_ok): Renamed from check_accessfile.
1726	(enum nmz_perm): Add tag "nmz_perm".
1727	(parse_access): Be nmz_perm type instead of void.
1728
1729	* nmz/var.h: Remove "extern char NAMAZURC[]".
1730
1731
17321999-12-08  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1733
1734	* Makefile.am (cxref): New command for using cxref.
1735	<http://www.gedanken.demon.co.uk/cxref/>
1736	(global): New command for using global.
1737	<http://www.tamacom.com/global/>
1738	(cxref): A tiny fix.
1739	(cxref): Use -warn-xref instead of -warn-all
1740
1741	* nmz/search.h: Add #include "namazu.h" for NmzResult type.
1742
1743	* nmz/parser.h: Add #include "namazu.h" for NmzResult type.
1744
1745	* nmz/util.c: Add comments.
1746
17471999-12-08  Ryuji Abe  <raeva@t3.rim.or.jp>
1748
1749	* nmz/util.[ch] (wprint): Removed.
1750	(delete_backslashes): Likewise.
1751	(strsuffixcasecmp): Likewise.
1752	(nmz_pathcat): s/pathcat/nmz_pathcat/g.
1753	(nmz_tr): s/tr/nmz_tr/g.
1754	(nmz_chomp): s/chomp/nmz_chomp/g.
1755	(nmz_cat): s/cat/nmz_cat/g.
1756	(nmz_subst): s/subst/nmz_subst/g.
1757	(nmz_readfile): s/readfile/nmz_readfile/g.
1758
1759	* nmz/search.c (nmz_pathcat): Likewise.
1760	(nmz_chomp): Likewise.
1761
1762	* nmz/field.c (nmz_pathcat): Likewise.
1763	(nmz_chomp): Likewise.
1764
1765	* nmz/hlist.c (nmz_chomp): Likewise.
1766
1767	* nmz/rcfile.c (nmz_chomp): Likewise.
1768
1769	* nmz/re.c (nmz_chomp): Likewise.
1770
1771	* nmz/wakati.c (nmz_chomp): Likewise.
1772
1773	* src/form.c (nmz_chomp): Likewise.
1774	(nmz_subst): Likewise.
1775	(nmz_readfile): Likewise.
1776
1777	* src/output.c (nmz_cat): Likewise.
1778	(nmz_readfile): Likewise.
1779
1780	* src/result.c (nmz_pathcat): Likewise.
1781	(nmz_tr): Likewise.
1782
17831999-12-07  Ryuji Abe  <raeva@t3.rim.or.jp>
1784
1785	* util.[ch] (nmz_debug_printf): s/debug_printf/nmz_debug_printf/g.
1786	(nmz_warn_printf): s/warnf/nmz_warn_printf/g.
1787	(nmz_get_unpackw): s/get_unpackw/nmz_get_unpackw/g.
1788	(nmz_read_unpackw): s/read_unpackw/nmz_read_unpackw/g.
1789	(nmz_die): s/die/nmz_die/g.
1790	(nmz_die_with_msg): s/diewithmsg/nmz_die_with_msg/g.
1791
1792	* nmz/search.c (nmz_debug_printf): Likewise.
1793	(nmz_warn_printf): Likewise.
1794	(nmz_get_unpackw): Likewise.
1795	(nmz_read_unpackw): Likewise.
1796
1797	* nmz/i18n.c (nmz_debug_printf): Likewise.
1798
1799	* nmz/field.c (nmz_debug_printf): Likewise.
1800
1801	* nmz/hlist.c (nmz_debug_printf): Likewise.
1802	(nmz_get_unpackw): Likewise.
1803	(nmz_read_unpackw): Likewise.
1804
1805	* nmz/re.c (nmz_debug_printf): Likewise.
1806
1807	* nmz/wakati.c (nmz_debug_printf): Likewise.
1808
1809	* src/namazu.c (nmz_die): Likewise.
1810	(nmz_die_with_msg): Likewise.
1811
1812	* src/cgi.c (nmz_warn_printf): Likewise.
1813
18141999-12-07  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1815
1816	* src/namazu.c: s/debug_printf/nmz_debug_printf/g.
1817
1818	* nmz/search.c (nmz_search): Renamed from search_main.
1819
1820	* nmz/rcfile.c (getenv_namazurc): Moved from libnamazu.c.
1821	(load_conf): Remove unnecessary codes: BASE_URI[0] = '\0';
1822	(open_conf_file): Call getenv_namazurc at the first.
1823	(set_namazurc): Moved from libnamazu.c.
1824	(rcfile_is_loaded): Renamed from ConfLoaded.
1825	(show_rcfile): Renamed from show_conf.
1826	(load_rcfile): Renamed from load_conf.
1827	(open_rcfile): Renamed from open_conf_file.
1828	(get_rc_args): Renamed from get_conf_args.
1829	(get_rc_arg): Renamed from get_conf_arg.
1830	(parse_rcfile): Renamed from parse_conf.
1831	(apply_rc): Renamed from apply_conf.
1832
1833	* nmz/Makefile.am: s/conf.([ch])/rcfile.$1/g;
1834
1835	* nmz/rcfile.c: Renamed from conf.c
1836
1837	* nmz/rcfile.h: Renamed from conf.h
1838
1839	* nmz/var.c: Remove a variable: char NAMAZURC[BUFSIZE] = "";
1840
1841	* src/namazu.c (main): Remove getenv_namazurc() calling.
1842
1843	* src/namazu.c (make_fullpathname_msg): Moved from libnamazu.c
1844
18451999-12-06  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1846
1847	* nmz/search.c (hash): Fix a 8 bit char handling bug.
1848
1849	* nmz/util.c (issymbol): Fix a 8 bit char handling bug.
1850
1851	* src/output.c (print_hitnum_each): Add phrase handling.
1852
1853	* nmz/search.c (push_hitnum): Add phrase handling.
1854	(free_hitnums): Add phrase handling.
1855	cur_idxnum: Renamed from CurrentIndexNumber.
1856	(do_phrase_search): Add phrase handling.
1857
1858	* nmz/libnamazu.h (nmz_hitnum): Add new member:
1859	struct nmz_hitnum *phrase for a result of a phrase search.
1860
1861	* nmz/libnamazu.h (nmz_indices): Abolish a useless member:
1862	int phrasehit[INDEX_MAX + 1];
1863
1864	* src/output.c (print_hitnum_each): Renamed from
1865	print_word_hit_count.
1866	(print_hitnum_all_idx): Renamed from print_hit_count.
1867
1868	* nmz/hlist.c, nmz/idxname.c, nmz/libnamazu.c, nmz/search.c,
1869	nmz/util.c, src/cgi.c: Remove unnecessary casts for malloc().
1870
1871	* src/cgi.c (init_cgi): Modify usage of add_index().
1872	(process_cgi_var_idxname): Modify usage of add_index().
1873
1874	* src/namazu.c (main): Modify usage of add_index().
1875
1876	* nmz/idxname.c (add_index): Change a return value and its type.
1877
1878	* nmz/idxname.h: Abolish enums:  ERR_INDEX_MAX, ERR_MALLOC.
1879
18801999-12-04  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1881
1882	* nmz/Makefile.am (libnmz_la_SOURCES): Add {alias,replace}.[ch].
1883
1884	* nmz/replace.[ch]: New file.
1885
1886	* nmz/alias.[ch]: New file.
1887
1888	* nmz/conf.c (is_valid_argnum): Renamed from check_argnum.
1889
1890	* nmz/libnamazu.h (enum nmz_sort_mode): Add tag.
1891	(enum nmz_sort_order): Add tag.
1892	(enum nmz_search_method): Add tag.
1893	(enum nmz_stat): Add tag.
1894
1895	* nmz/libnamazu.h (struct nmz_result): Renamed from hlist.
1896
1897	* nmz/libnamazu.h (struct nmz_data): Renamed from hlist_data.
1898
1899	* nmz/var.h: Remove useless variable declarations.
1900
1901	* nmz/search.c (push_hitnum): Renamed from push_phraseres.
1902	(free_hitnums): Renamed from free_phraseres.
1903
1904	* nmz/libnamazu.h (struct nmz_hitnum): Renamed from phraseres.
1905
1906	* nmz/search.c (do_word_search): set SUCCESS to val.stat.
1907
1908	* src/output.c (print_hit_count): Abolish special treatments for
1909	phrase search.
1910
1911	* nmz/libnamazu.h (struct indices): Abolish a "mode" member;
1912
1913	* nmz/search.c (do_phrase_search): Don't call push_phraseres.
1914	(do_search): Call push_phraseres anytime.
1915
1916	* nmz/libnamazu.h (enum search_mode): Unset ERROR_MODE.
1917
1918	* nmz/search.c (push_phraseres): Take `stat' parameter.
1919	(search_main): 	Remove "if (tmp[i].stat != SUCCESS) { ... }"
1920
1921	* nmz/libnamazu.h: Rearrange enum definitions.
1922
1923	* nmz/hlist.c (malloc_hlist): Set hlist->stat = SUCCESS.
1924
1925	* src/output.c (print_hit_count): Use pr->stat instead of hitnum.
1926
1927	* nmz/libnamazu.h (struct hlist): Change names of member:
1928	n -> num
1929	d -> data
1930
19311999-12-03  Masao Takaku  <masao@ulis.ac.jp>
1932
1933	* src/namazu.c: Don't print a form element at non-cgimode.
1934
1935	* nmz/parser.[ch], src/result.c (emphasize): Don't emphasize
1936	with operator strings (&,|,!,and,or,not).
1937
19381999-12-02  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1939
1940	* src/mknmz.pl.in (parse_options): Modify "config=s" handling.
1941	(main): Change a position of calling read_config(). [namazu-dev 910]
1942
19431999-11-29  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1944
1945	* pl/*.gmo: Removed. [namazu-dev 903]
1946
1947	* lib/Makefile.am (EXTRA_DIST): Add system.h
1948
19491999-11-24  Ryuji Abe  <raeva@t3.rim.or.jp>
1950
1951	* pxgettext: New file derived from gimp-perl.
1952
1953	* Makefile.am (EXTRA_DIST): Added pxgettext.
1954
19551999-11-24  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1956
1957	* nmz/util.c (reverse_byte_order): Be type-independent.
1958
19591999-11-23  Ken-ichi Hirose  <kenzo-@tama.or.jp>
1960
1961	* src/mknmz.pl.in: Modify make_summary function.
1962
1963	* pl/util.pl: Fix islang function bug.
1964
1965	* filter/pdf.pl: Add $fields->{'title'} before
1966        gfilter::show_filter_debug_info.
1967
19681999-11-23  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
1969
1970	* {src,nmz}/*.c: Modify error handling code with `stat' info.
1971
1972	* nmz/libnamazu.h (HLIST): Add a new member `stat'.
1973	(HLIST_DATA): Add a new member `stat'.
1974
1975	* **/*.c: Use EXIT_FAILURE or EXIT_SUCCESS for an argument of exit();
1976
1977	* lib/system.h: New file.
1978	Define EXIT_FAILURE, EXIT_SUCCESS if neccessary.
1979
1980	* nmz/hlist.c (init_data): Abolished.
1981
1982	* nmz/magic.h: Abolished.  (integrated to libnamazu.h)
1983
1984	* src/namazu.h: Import some named constans from libnamazu.h.
1985	    PAGE_MAX,RESULT_MAX,CGI_QUERY_MAX,CGI_INDEX_NAME_MAX
1986	    CGI_RESULT_NAME_MAX,SUICIDE_TIME
1987
1988	* nmz/critical.h: Abolished. (integrated to libnamazu.h)
1989
1990	* nmz/libnamazu.h: Modify notations for struct ... typedef.
1991
1992	* src/namazu.c: Use ck_atoi() for -n and -w option.
1993
1994	* nmz/util.c (die): Be independent from diewithmsg.
1995
1996	* {src,nmz}/*.[ch]: Clean up global variables. (to be continued...)
1997
1998	* nmz/libnamazu.c: Introduce new functions:
1999		get_namazurc, set_sortmethod, get_sortmethod,
2000		set_sortorder, get_sortorder, set_debugmode,
2001		is_debugmode, set_loggingmode, is_loggingmode,
2002		set_dyingmsg, get_dyingmsg
2003
2004	* src/output.c: Introduce new functions:
2005		set_htmlmode, is_htmlmode, set_cgimode,
2006		is_cgimode, set_quietmode, is_quietmode,
2007		is_countmode, set_countmode, set_listmode,
2008		is_listmode, set_allresult, is_allresult,
2009		set_pageindex, is_pageindex, set_formpr,
2010		is_formprint, set_refprint, is_refprint,
2011		set_urireplace, is_urireplace, set_uridecode,
2012		is_uridecode, set_maxresult, get_maxresult,
2013		set_listwhence, get_listwhence, set_template,
2014		get_template
2015
2016	* nmz/mode.[ch]: Abolished. (Integrated to libnamazu.[ch])
2017
2018	* nmz/util.c (diemsg): Abolished.
2019
2020	* nmz/search.c (search_sub): Abolish cgimode condition for
2021	check_accessfile();
2022	(check_accessfile): Add condition for searching from remote.
2023
2024	* nmz/util.c (diewithmsg): Abolish cgimode and htmlmode condition.
2025
20261999-11-23  Ryuji Abe  <raeva@t3.rim.or.jp>
2027
2028	* man/Makefile.am (EXTRA_DIST): Man pages are now available.
2029
2030	* nmz/util.c (is_little_endian): Removed.
2031	(freadx): Filled #ifndef WORDS_BIGENDIAN...#endif.
2032
20331999-11-22  Ken-ichi Hirose  <kenzo-@tama.or.jp>
2034
2035	* src/mknmz.pl.in: Add ole option and load_olemodule function.
2036
2037	* pl/util.pl: Fix checkcmd function problem for Win32 and OS2.
2038
2039	* File-MMagic/MMagic.pm: Fix new function problem.
2040    Added binmode($fh) for Win32 and OS2.
2041
20421999-11-19  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2043
2044	* nmz/var.c: Abolish global values:
2045	SortMethod, SortOrder, HtmlOutput, Debug, Quiet
2046
2047	* nmz/libnamazu.c (set_sortbydate): Abolished.
2048	(set_sortbyscore): Abolished.
2049	(set_sortbyfield): Abolished.
2050	(set_sort_descending): Abolished.
2051	(set_sort_ascending): Abolished.
2052	(set_debug): Abolished.
2053
2054	* nmz/mode.[ch]: New files.
2055
2056	* nmz/codeconv.c (ishiragana): Be simple.
2057	(iskatakana): Be simple.
2058
2059	* pl/usage.pl (USAGE_MINI): s/options/information/.
2060
2061	* **/*.c: Include "config.h" by themselves.
2062	Avoid nesting include files.
2063
2064	* lib/i18n.h: Define gettext related macros.
2065
2066	* src/namazu.h: Be empty to avoid nesting include files
2067
2068	* **/*.[ch]: Abolish hairy lines for comments like:
2069	/******************************************************
2070
2071	* pl/usage.pl: Modify usage messages.
2072
2073	* src/usage.c (show_usage): Renamed from show_long_usage()
2074	(show_usage): Add a message "Report bugs to <bug-namazu@namazu.org>."
2075	(show_version): Reformated.
2076
2077	* src/message.h: Remove "COPYRIGHT" macro.
2078
2079	* man/Makefile.am (update-man): s/-N/--no-info/g for clarity.
2080
20811999-11-18  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2082
2083	* man/Makefile.am: Remove clean: command.
2084
2085	* man/mknmz.1: New file.
2086
2087	* man/namazu.1: New file.
2088
2089	* man/Makefile.am: New file.
2090
2091	* configure.in (AC_OUTPUT): Add man/Makefile
2092
2093	* Makefile.am (SUBDIRS): Add 'man'.
2094
2095	* pl/usage.pl ($USAGE_JA, $USAGE_EN): Reindented.
2096
2097	* pl/usage.pl: s/<target(s)>/<target>.../g.
2098
2099	* src/mknmz.pl.in (load_modules): Add "../pl" and "../filter" into
2100	@INC.
2101
2102	* src/mknmz.pl.in: s/show_long_usage/show_usage/g.
2103
2104	* src/mknmz.pl.in (show_version): New function.
2105
2106	* pl/usage.pl ($VERSION_INFO): Description for --version.
2107
2108	* src/mknmz.pl.in ($LANG): Be gloabl.
2109
2110	* src/mknmz.pl.in (parse_options): Change exit status for
2111	$opt_help, $opt_version, $opt_show_config.
2112
2113	* src/namazu.c (parse_options): Treat 'v' with show_version().
2114
2115	* src/usage.c (show_version): New function.
2116
2117	* acinclude.m4 (AC_PROG_LD): Fix 'ld' problem. [namazu-dev 859]
2118
2119	* {src,nmz}/*.h: Add 'extern' keyword for all public functions.
2120
2121	* nmz/util.c (reverse_byte_order): Be type dependent.
2122	(freadx): Be type dependent.
2123
2124	* nmz/libnamazu.h: Add #include <stdio.h> for FILE struct used in
2125	this file.
2126
2127	* src/namazu.h: Remove #include <stdio.h>
2128
2129	* nmz/search.c (binsearch): Compare in unsigned.
2130
2131	* nmz/codeconv.[ch]: s/char/uchar/ adjustment.
2132
2133	* **/*.c: s/uchar/char/g;
2134
2135	* configure.in: Set -pedantic if cc is gcc.
2136
2137	* Makefile.am (SUBDIRS): Change order: 'lisp' last.
2138
2139	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.8.
2140
2141	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.8.
2142
21431999-11-17  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2144
2145	* nmz/search.c (cmp_phrase_hash): Fix a memory leak.
2146
2147	* nmz/Makefile.am (libnmz_la_SOURCES): Fix misspelling.
2148
21491999-11-17  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2150
2151	* nmz/hlist.c ({and,not,or}merge): Fixed memory leak.
2152
21531999-11-16  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2154
2155	* lib/Makefile.am, nmz/Makefile.am: Moved regex.{c,h} to
2156	nmz/ directory.
2157
21581999-11-16  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2159
2160	* src/namazu.c (stdio2file): reimplemented with
2161	freopen(). Good-bye open(), close() and dup(). :-)
2162
2163
21641999-11-15  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2165
2166	* File-MMagic/* : New upstream version.
2167
2168	* nmz/util.h: Added a workaround for compiling perl XSUB.
2169
21701999-11-15  Ken-ichi Hirose  <kenzo-@tama.or.jp>
2171
2172	* src/cgi.c nmz/{util.h util.c search.c hlist.c}:
2173	rename function wprintf to warnf. because it collide win32api.
2174
2175	* src/namazu.c : implentation alarm function for win32.
2176
2177	* mknmz.pl.in : fixed to ENV{'HOME'} for Windows.
2178
21791999-11-14  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2180
2181	* nmz/search.c (search_main): Handle errors occured at search_sub().
2182
2183	* nmz/magic.h (ERR_*): make them all nagative value.
2184
2185	* src/output.c (print_word_hit_count): Handle
2186	ERR_CANNOT_OPEN_INDEX and ERR_NO_PERMISSION.
2187
2188	* nmz/magic.h: Add ERR_CANNOT_OPEN_INDEX and ERR_NO_PERMISSION.
2189
2190	* src/output.[ch] (priint_result1): Abolished.
2191
2192	* nmz/search.c (search_sub): Use print() instead of diemsg().
2193
2194	* src/namazu.c (namazu_core): Call free_aliases() and
2195	free_replaces() at *query == '\0'.
2196
2197	* src/Makefile.am (LDADD): Change order to fix a problem on make.
2198	[namazu-dev 822]
2199
2200	* src/cgi.c: Entirely rewritten.
2201
2202
22031999-11-13  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2204
2205	* src/cgi.c (decode_uri): Moved from nmz/util.[ch].
2206
2207	* nmz/util.[ch] (decode_uri): Moved to src/cgi.[ch].
2208
2209	* nmz/idxname.c (add_index): Reindented.
2210
2211	* nmz/var.h: Abolish *ScriptName, *QueryString, *ContentLength.
2212
22131999-11-12  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2214
2215	* acinclude.m4: Fix lispdir related codes to handle $prefix correctly.
2216
22171999-11-12  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2218
2219	* Search-Namazu/Namazu.xs: Fixed to work.
2220
2221	* nmz/util.h: Added #ifndef condition to iskanji definition
2222	for jperl.
2223
22241999-11-11  Masao Takaku  <masao@ulis.ac.jp>
2225
2226	* nmz/regex.[ch]: Removed.
2227
22281999-11-10  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2229
2230	* Search-Namazu/Namazu.xs : Fixed to return array.
2231
2232	* Search-Namazu/* : Implemented (work but very unstable).
2233
22341999-11-09  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2235
2236	* src/i18n.{c,h} : Moved to nmz/ directory.
2237
2238	* Search-Namazu/ : Implemented some functions (currentry not work).
2239
22401999-11-08  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2241
2242	* nmz/Makefile.am (INCLUDES): Add -I../nmz
2243
2244	* po/POTFILES.in: Re-list all.
2245
22461999-11-08  Ryuji Abe  <raeva@t3.rim.or.jp>
2247
2248	* nmz/Makefile.am (DEFS): Same as src/Makefile.am.
2249
22501999-11-08  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2251
2252	* src/namazu.h : Modified to include libnamazu.h.
2253
2254	* nmz/libnamazu.h, src/namazu.h: Moved some definitions from
2255	namazu.h to libnamazu.h.
2256
2257	* nmz/util.h: Removed including namazu.h.
2258
2259	* src/Makefile.am: Fixed conflicts.
2260
22611999-11-06  Ryuji Abe  <raeva@t3.rim.or.jp>
2262
2263	* nmz-config.in (--cflags): Always output @pkgincludedir@.
2264	* src/Makefile.am: Cleaned up.
2265	(indexdir): New variable.
2266	(DEFS): Set OPT_CONFDIR=$(confdir), and OPT_INDEXDIR=$(indexdir).
2267
22681999-11-05  Ryuji Abe  <raeva@t3.rim.or.jp>
2269
2270	* nmz-config.in: Changed @includedir@ to @pkgincludedir@
2271
22721999-11-05  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2273
2274	* src/{codeconv.c codeconv.h conf.c
2275	conf.h critical.h field.c field.h hlist.c hlist.h
2276	idxname.c idxname.h magic.h parser.c perser.h re.c re.h
2277	regex.c regex.h search.c search.h seed.c util.c util.h
2278	var.c var.h wakati.c wakati.h} : Moved to nmz/ directory.
2279
2280	* nmz/Makefile.am: Changed `include_HEADERS' to `pkginclude_HEADERS'.
2281
22821999-11-05  Masao Takaku  <masao@ulis.ac.jp>
2283
2284	* src/mknmz.pl.in: Move $EXCLUDE_REGEX related codes from
2285	isexcluded() to wanted().
2286
22871999-11-04  Masao Takaku  <masao@ulis.ac.jp>
2288
2289	* src/mknmz.pl.in (parse_options): Fix a bug: can't update
2290	NMZ.status at '--update' option specified.
2291
22921999-11-04  Ryuji Abe  <raeva@t3.rim.or.jp>
2293
2294	* nmz-config.in: New File.
2295	* Makefile.am (bin_SCRIPTS): Entry nmz-config.
2296	* configure.in: Removed OPT_INDEXDIR and OPT_CONFDIR related code.
2297	(AC_OUTPUT): Added nmz-config.
2298	* acconfig.h: Removed OPT_INDEXDIR and OPT_CONFDIR.
2299	* src/Makefile.am (DEFS): Defined -DOPT_INDEXDIR and -DOPT_CONFDIR.
2300
23011999-11-03  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2302
2303	* namazu.spec.in: Add /usr/var/namazu/*, /usr/etc/namazu/*,
2304	/usr/include/*, /usr/lib/* at the end.
2305
2306	* Makefile.am (install-data-local):
2307	$(mkinstalldirs) ${localstatedir}/${PACKAGE}/index
2308
2309	* configure.in (OPT_INDEXDIR): Use ${localstatedir}/${PACKAGE}/index.
2310
2311	* src/mknmz.pl.in (init): Implement $LNAG handling.
2312
2313	* src/mknmz.pl.in, pl/codeconv.pl: Use util::islang().
2314
2315	* pl/util.pl (islang): New subroutine.
2316
2317	* pl/conf.pl.in: Set $LANGUAGE to "C".
2318
2319	* configure.in: Abolish --with-japanese and --with-lang=LANG.
2320	Change order of --with-* options and reindent.
2321
2322	* acconfig.h: Remove OPT_LANGUAGE.
2323
2324	* configure.in (File::MMagic detection codes): Use
2325	"use lib '$PMDIR';".
2326
2327	* acinclude.m4: Modify --with-emacs=EMACS, --with-lispdir=DIR
2328	related codes to exclude unsuitable AC_MSG_ERR and messages.
2329
23301999-11-03  Rei FURUKAWA  <furukawa@tcp-ip.or.jp>
2331
2332	* nmzidx.pl: Fixed lockfile related code.
2333	Thanks to Mr. Hiroshi KOMATSU. [namazu-dev 706]
2334
23351999-11-02  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2336
2337	* configure.in: Add codes to prevent to remove Makefile when
2338	doing 'make clean'. [namazu-dev 375]
2339
2340	* nmz/Makefile.am (INCLUDES): Add "-I../intl" and remove "-I.".
2341
2342	* acinclude.m4: Import AM_PATH_LISPDIR macro from Lookup
2343	<http://openlab.ring.gr.jp/lookup/>
2344	And modify a message a little bit.
2345
2346	* configure.in: Add --with-pmdir=DIR option. [namazu-dev 582]
2347
23481999-11-02  Ryuji Abe  <raeva@t3.rim.or.jp>
2349
2350	* acinclude.m4: Added libtool related macros from kakasi-2.3.1.
2351
2352	* nmz/Makefile.am (include_HEADERS): Entry libnamazu.h.
2353	(libnmz_la_LDFLAGS): Set version-info to 0:0:0. Each libtool
2354	library should be started with version infomation of `0:0:0'.
2355
2356	* src/Makefile.am (LDADD): Linked libtool library (libnmz.la)
2357	instead of real library (libnmz.a).
2358
23591999-11-01  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2360
2361	* src/conf.[ch], src/var.c: Introduce CONFDIR and abolish
2362	NAMAZU_CONF.
2363
2364	* src/mknmz.pl.in: Use mknmzrc instead of mknmz.conf.
2365
2366	* src/Makefile.am (confdir): Use $(sysconfdir)/$(PACKAGE).
2367
2368	* conf/Makefile.am: Modify to handle namazurc and mknmzrc instead
2369	of namazu.conf-dist and mknmz.conf-dist
2370
2371	* conf/namazurc: New file.
2372
2373	* conf/namazu.conf-dist: Removed.
2374
2375	* configure.in: Abolish --with-confdir. Use --sysconfdir instead
2376	for setting a config files directory.
2377
2378	* **/*.[ch]: 's/namazuconf/namazurc/g'
2379
2380	* src/*.[ch]: s/hlist_data/HLIST_DATA/g
2381
2382	* configure.in: Fix --with-scoring=METHOD option.
2383
2384	* configure.in: Add AC_SUBST(CONFDIR)
2385	Modify message for --with-confdir.
2386
2387	* conf/Makefile.am (confdir): Use @CONFDIR@.
2388
2389	* Makefile.am (DISTCLEANDIRS): Remove meaningless "conf/conf".
2390
2391	* src/Makefile.am (confdir): Use @CONFDIR@.
2392
2393	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.7.
2394	Add --with-confdir_DIR option.
2395	Fix --with-scoring=METHOD option.
2396
23971999-11-01  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2398
2399	* ltconfig, ltmain.sh, config.guess, config.sub: Added.
2400
2401	* nmz/Makefile.am: Fixed unnecessary macro.
2402
2403	* nmz/*: Added new directory and moved libnamazu.* files from
2404	src/ directory.
2405
24061999-10-29  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2407
2408	* Seacrh-Namazu/*: Added new module.
2409
24101999-10-28  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2411
2412	* pl/wakati.pl (wakatize_japanese): s/Okurigana/okurigana/,
2413	s/Hiragana/hiragana/, s/Morph/morph/
2414
24151999-10-27  Rei FURUKAWA  <furukawa@tcp-ip.or.jp>
2416
2417	* nmzidx.pl: Fixed lockfile related code
2418
24191999-10-27  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2420
2421	* src/usage.c (show_mini_usage): s/more options/more information/
2422
24231999-10-27  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2424
2425	* File-MMagic/Makefile.PL: Added AUTOHR and ABSTRACT paramaters.
2426
24271999-10-26  Rei FURUKAWA  <furukawa@tcp-ip.or.up>
2428
2429	* pl/nmzidx.pl, src/gcnmz.pl.in: Close unused file handles.
2430
24311999-10-25  Ken-ichi Hirose <kenzo-@tama.or.jp>
2432
2433	* configure.in: Added --without-file-mmagic option.
2434
2435	* configure.in: change --with-tknamazu option
2436      to --without-tknamazu.
2437
2438	* src/usage.c: erase euctosjis(buf) for _WIN32 and __EMX__.
2439
24401999-10-22  Ryuji Abe <raeva@t3.rim.or.jp>
2441
2442	* src/util.h [HAVE__VSNPRINTF]: Fixed macro definition.
2443
24441999-10-21  Ryuji Abe <raeva@t3.rim.or.jp>
2445
2446	* configure.in (LIBOBJS): vsnprintf.o was added when neither
2447	  vsnprintf nor _vsnprintf was found.
2448	[EMXOS2]: Fixed CFLAGS and LDFLAGS.
2449	(AC_OUTPUT): Deleted entry macros/Makefile.
2450
2451	* src/util.h [HAVE__VSNPRINTF]: Defined vsnprintf as _vsnprintf.
2452
24531999-10-19  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2454
2455	* src/libnamazu.{c,h}: Added some setting functions.
2456
2457	* src/namazu.c: Moved set_redirect_stdout_to_file function.
2458
24591999-10-14  Ryuji Abe <raeva@t3.rim.or.jp>
2460
2461	* acinclude.m4: Moved all macros previously defined
2462	  macros/gettext.m4, macros/lcmessage.m4, and progtest.m4.
2463
2464	* macros: Removed directory and all files.
2465
2466	* Makefile.am(SUBDIRS): Removed macros.
2467
2468	* configure.in: Added missing netscape configuration routine.
2469	(AM_ACLOCAL_INCLUDE): Removed.
2470
24711999-10-14  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2472
2473	* src/util.c (is_little_endian): Use WORDS_BIGENDIAN macro for
2474	determinig an endian type.
2475
2476	* configure.in: Add AC_C_BIGENDIAN.
2477
2478	* po/ja.po: Modify the usage message a bit.
2479
2480	* src/usage.c (show_long_usage): Modify the usage message a bit.
2481
24821999-10-13  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2483
2484	* src/util.[ch]: Introduce is_little_endian() function.
2485	And use it in freadx().
2486
2487	* src/search.[ch]: Abolish check_byte_order() function.
2488
2489	* src/var.[ch]: Abolish OppositeEndian variable.
2490
2491
24921999-10-13  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2493
2494	* src/idxname.{c,h}: Added.
2495
24961999-10-12  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2497
2498	* src/namazu.c : Moved some functions to libnamazu.c.
2499
2500	* src/libnamazu.{c,h}: Created new files.
2501
25021999-10-11  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2503
2504	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.6.
2505
25061999-10-07  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2507
2508	* src/{result.c, search.c}: Move output functions to output.c.
2509
2510	* src/wakati.c: Remove some exit() functions.
2511
25121999-10-03  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2513
2514	* src/mknmz.pl.in (complete_field_info): Add filename_to_title()
2515	calling.
2516
2517	* filter/{html,mailnews,man,msword,pdf,rfc}.pl: Remove
2518	filename_to_title() calling.
2519
2520	* configure.in: Modify a message.
2521
2522	* namazu.spec: Add "/usr/share/locale/*" at the end.
2523
2524	* src/mknmz.pl.in (load_document): Fix typo: s/!=/!~/
2525
25261999-10-01  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2527
2528	* src/mknmz.pl.in (load_document): Fixed misrecognizing text/html
2529	type file.
2530
25311999-09-30  Ryuji Abe <raeva@t3.rim.or.jp>
2532
2533	* configure.in(AM_ACLOCAL_INCLUDE): New Macros.
2534	(AM_PATH_LISPDIR): New Macros.
2535	(AC_OUTPUT): Added filter/Makefile, lisp/Makefile, macros/Makefile, pl/Makefile.
2536
2537	* Makefile.am(ACLOCAL_AMFLAGS): Removed.
2538	(SUBDIRS): Added filter lisp macros pl.
2539	(EXTRA_DIRS): Removed filter lisp macros pl conf.
2540
2541	* conf/Makefile.am: Modified standard automake style.
2542
2543	* filter/Makefile.am: New File.
2544
2545	* macros/Makefile.am, pl/Makefile.am: Likewise.
2546
2547	* macros/aclocal-include.m4: New File that derived from gnome-libs-1.0.16.
2548
2549	* macros/lcmessage.m4: New File that derived from sh-utils-2.0.
2550
2551	* macros/progtest.m4: Likewise.
2552
25531999-09-29  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2554
2555	* src/Makefile.am (INCLUDES): Add ../lib
2556
2557	* po/Makefiel.in.in (update-po): Fix a subtle bug.
2558
2559	* po/make_jis7_po.in: New file.
2560
2561	* po/make_sjis_po: Fix a subtle bug by s/sjis/SJIS/.
2562
25631999-09-29  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2564
2565	* src/namazu.h: Change INDICES structure (add total, modes, pr,
2566	phrasehit members).
2567
2568	* src/search.c (search_sub): Move some output process to
2569	print_hit_count() function.
2570
25711999-09-28  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2572
2573	* src/codeconv.c (conv_ext): Add ja_JP.JIS7 handing.
2574	(zen2han): Add `static' on Z2H.
2575
2576	* src/form.c (replace_query_value): Add conv_ext() calling.
2577
2578	* conf/namazu.conf-dist (LANG): ja_JP.iso-2022-jp -> ja_JP.JIS7
2579
2580	* src/util.c (strcasestr): Implement EUC handling.
2581
2582	* src/{util,search}.c: Remove a duplicated define statement:
2583	#define iseuc(c)  ((c) >= 0xa1 && (c) <= 0xfe)
2584
2585	* Makefile.am (install-data-local): Add the line:
2586	rm -f $(pkgdatadir)/template/*.in
2587
2588	* po/(*)sjis()*: Renamed -> ${1}SJIS${2}
2589
2590	* po/(*)iso-2022-jp()*: Renamed -> ${1}JIS7${2}
2591
2592	* template/NMZ.(*).ja_JP.iso-2022-jp: Renamed -> NMZ.${1}.ja_JP.JIS7
2593
2594	* configure.in (AC_OUTPT): s/make_iso_2022_jp_po/make_jis7_po/;
2595	s/iso-2022-jp/JIS7/
2596
2597	* po/make_sjis_po.in: s/sjis/SJIS/;
2598
2599	* po/make_jis7_po.in: s/iso-2022-jp/JIS7/;
2600
2601	* po/make_jis7_po.in: New file. (make_iso_2022_jp)
2602
2603	* po/make_iso_2022_jp_po.in: Removed.
2604
2605	* po/Makefile.in.in: Comment out codes for creating ja_JP.EUC and
2606	ja_JP.ujis. And do s/sjis/SJIS/; s/iso-2022-jp/JIS7/.
2607
2608	* configure.in (ALL_LINGUAS): Add ja_JP.JIS7, ja_JP.SJIS.
2609
2610	* configure.in (ALL_LINGUAS): Remove ja_JP.EUC, ja_JP.ujis,
2611	ja_JP.iso-2022-jp, ja_JP.sjis
2612
26131999-09-28  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2614
2615	* src/namazu.c (parse_options): Remove some exit() functions.
2616
2617	* src/var.{c,h}: Add PhraseResult variable and PHRASERES type.
2618
2619	* src/{search.c, namazu.c}: Devide hit count printing routine.
2620
26211999-09-27  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2622
2623	* src/codeconv.c (conv_ext): Add ja_JP.SJIS handling.
2624
2625	* src/mknmz.pl.in (setup_magic): Modify a regex for RFC.
2626
2627	* src/util.c (isnumstr): Add cast: (int)
2628
2629	* src/util.c (diemsg): Remove #ifdef HAVE_VSPRINTF ...
2630
2631	* configure.in (Add AC_REPLACE_FUNCS): Remove some functions.
2632
2633	* configure.in: Add AC_REPLACE_FUNCS macro.
2634
2635	* Makefile.am (SUBDIRS): Add lib.
2636
2637	* lib/Makefile.am: New file.
2638
2639	* lib/vsnprintf.c: New file imported from
2640	gnome-1.0.40/gnome-libs-1.0.40/support.
2641
2642	* lib/{memmove,strcasecmp,strstr,memset,strcspn,
2643	memcmp,strncasecmp}.c: New files imported from gettext-0.10.35/lib.
2644
2645	* lib/{regex.[ch],getopt{,1}.[ch]}: Moved from src.
2646
2647	* src/Makefile.am (namazu_SOURCES): Remove regex.[ch],
2648	getopt.[ch], getopt1.c
2649
2650	* src/util.[ch]: Remove memmove();
2651
2652	* src/i18n.c: Add putenv/setenv handling.
2653
2654	* src/i18n.c: Include <locale.h> if available.
2655
2656	* configure.in (AC_CHECK_FUNCS): Add setenv.
2657
2658	* conf/Makefile.am (mknmz.conf-dist): s!lib/!pl/!
2659
2660	* src/Makefile.am (.pl): Replace libdir with  perllibdir.
2661
2662	* src/Makefile.am (perllibdir): = $(pkgdatadir)/pl
2663
2664	* src/Makefile.am (libdir): Rename to perllibdir
2665
2666	* Makefile.am (EXTRA_DIRS): Replace lib with pl.
2667
2668	* pl/*.pl, pl/*.in: New files. (moved from lib)
2669
2670	* lib/*.pl, lib/*.in: Removed. (moved to pl)
2671
2672	* src/mknmz.pl.in (make_headfoot): Abolish evaling.
2673
2674	* lib/conf.pl.in: Remove a variable: $ADMIN.
2675
2676	* lib/var.pl.in: Remove a variable: $NMZ_URI.
2677
2678	* configure.in: Add OPT_NMZ_URI="http://openlab.ring.gr.jp/namazu/".
2679
2680	* configure.in (AC_OUTPUT): Add the following files.
2681	   template/NMZ.head
2682	   template/NMZ.foot
2683	   template/NMZ.head.ja_JP.iso-2022-jp
2684	   template/NMZ.foot.ja_JP.iso-2022-jp
2685
2686	* template/{NMZ.head,NMZ.foot,NMZ.head.ja_JP.iso-2022-jp,
2687	NMZ.foot.ja_JP.iso-2022-jp}: Renamed: -> *.in
2688
2689	* src/mknmz.pl.in: Add `use lib "@ADDITIONAL_INC@"' at the upper part.
2690
2691	* configure.in: Modify File-MMagic related codes. [namazu-dev 523]
2692
26931999-09-27  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2694
2695	* src/{search.c, namazu.c}: Move output process from search.c to
2696	namazu.c.
2697
2698	* src/mknmz.pl.in (setup_magic): Change rfc detection entry.
2699
2700	* src/mknmz.pl.in: Add some conditions to call checktype_magic().
2701
27021999-09-26  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2703
2704	* template/NMZ.*.ja_JP.iso-2022-jp: Covert encoding: EUC-JP ->
2705	ISO-2022-JP
2706
2707	* src/mknmz.pl.in (write_body_msg, write_tips_msg,
2708	make_headfoot_pages): Get target files list with glob.
2709
2710	* src/mknmz.pl.in: Abolish --enable-test related codes.
2711
2712	* configure.in: Abolish --enable-test.
2713
2714	* lib/find.pl: Restore fncmp().
2715
2716	* po/Makefile.in.in (DISTFILES): Add ADDITIONAL_FILES.
2717
2718	* po/Makefile.in.in: Add new macro: ADDITIONAL_FILES.
2719
2720	* src/{usage,i18n}.c: Insert a header describing copyright.
2721
2722	* src/*.c: Remove a statement "* This file must be encoded in
2723	EUC-JP encoding.".
2724
2725	* src/codeconv.c: Remove EUC-JP characters.
2726
2727	* src/output.c (print_msgfile): Use choose_msgfile();
2728
2729	* src/form.c (read_headfoot): Use choose_msgfile();
2730
2731	* src/i18n.[ch]: Introduce New function: choose_msgfile();
2732
2733	* conf/namazu.conf-dist: Modify a description on LANG.
2734
2735	* po/POTFILES.in: Remove message.c.
2736
2737	* template/NMZ.{body,foot,head,tips}.en: Remove suffix.
2738
2739	* template/NMZ.{body,foot,head,tips}.ja: Change suffix: ja ->
2740	ja_JP.iso-2022-jp.
2741
2742	* src/util.c (debug_printf, wprintf, wprint): Do fflush(stdout)
2743	at each calling.
2744
2745	* src/var.c (NMZ_NAMES NMZ): Remove ending `.' from NMZ.head,
2746	NMZ.foot and NMZ.body.
2747
2748	* src/message.h: Define some messages with #define.
2749
2750	* src/message.c: Removed.
2751
2752	* src/*.c: Add `static' specifier for all private functions.
2753
2754	* src/wakati.[ch]: Refine detect_char_type() related codes by
2755	using enum.
2756
2757	* src/search.[ch]: Refine detect_search_mode() related codes by
2758	using enum.
2759
2760	* src/{cgi,codeconv,conf,form,message,namazu,re,search}.c:
2761	Add one line: #include "i18n.h"
2762
2763	* src/{cgi,critical}.h: Move CGI-related critical values from
2764	cgi.h to critical.h. And decrease those values for safe.
2765
2766	* src/{form,result,search}.c: Use codnv_ext() for converting
2767	internal encoding to external one before outputting messages.
2768
2769	* src/codeconv.c: Introduce new functions: conv_ext() and euctojis()
2770
2771	* src/codeconv.c: Rename function: codeconv() -> conv_ja_any_to_eucjp()
2772
2773	* src/Makefile.am: Add i18n.[ch] to namazu_SOURCES.
2774
2775	* src/i18.[ch]: New files.
2776
2777	* src/namazu.c (main): Add setlocale() calling;
2778
2779	* po/*.{po,pot}: Release MSG_MIME_HEADER from gettext().
2780	(make update-po && make)
2781
2782	* src/{cgi,namazu,util}.c: Release MSG_MIME_HEADER from gettext().
2783
27841999-09-26  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2785
2786	* src/*.c: Remove all die() functions.
2787
27881999-09-25  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2789
2790	* src/util.c (diemsg): Surround vsnprintf() with #ifdef HAVE_VSPRINTF
2791	and #ifdef HAVE_VSNPRINTF for system having no vsnprintf().
2792
2793	* configure.in: AC_FUNC_VPRINTF.
2794
2795	* src/*.[ch]: s/fputx/html_print/g
2796
2797	* src/output.c: Rename a function:  fputx() -> html_print().
2798
2799	* src/*.c: Use print() and wprint();
2800
2801	* src/util.[ch]: Introduce new functions: print() and wprint();
2802
2803	* src/output.c: Introduce new functions: emprint();
2804
2805	* src/output.c: Abolish euctojisput() and fputs_with_codeconv();
2806
2807	* src/{cgi.form,namazu,output,result,search,wakati}.c:
2808	Abolish fputx's second argument (fp).
2809
2810	* src/util.c (diemsg): Fix stdarg related bug: Surround vsnprintf()
2811	with va_start and va_end.
2812
2813	* src/utilc: Fix an unterminated comment.
2814
2815	* configure.in (AC_CHECK_FUNCS): Add getcwd, getwd, putenv,
2816	strdup, strcspn, strspn, strstr.
2817
2818	* configure.in (AC_CHECK_HEADERS): Add limits.h and malloc.h.
2819
2820	* configure.in: Add macros: AC_PROG_RANLIB, AC_C_INLINE,
2821	AC_FUNC_MMAP
2822
28231999-09-25  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2824
2825	* search.c, parser.c, hlist.c: Remove die() function.
2826
2827	* src/conf.{c,h}, namazu.c: Remove die() function.
2828
2829	* src/util.{c,h}: Add diewithmsg() function.
2830
2831	* src/magic.h: Add error code enum.
2832
28331999-09-24  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2834
2835	* src/utils.{c,h}: Add new function diemsg().
2836
2837	* src/var.{c,h}: Add new variable Dyingmessage.
2838
28391999-09-23  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2840
2841	* po/make_iso_2022_jp.po: New file
2842
2843	* po/make_sjis_po: charset=shift-jis -> charset=Shift_JIS
2844
2845	* po/ja.po:  charset=euc-jp -> charset=EUC-JP
2846
2847	* po/Makefile.in.in (update-po): Add a routine to create
2848	ja_JP.iso-2022-jp.po, ja_JP.EUC.po, ja_JP.ujis.po.
2849
2850	* configure.in (ALL_LINGUAS): Add ja_JP.iso-2022-jp, ja_JP.EUC,
2851	ja_JP.ujis
2852
2853	* configure.in (AC_OUTPUT): Add po/make_iso_2022_jp_po.
2854
28551999-09-22  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2856
2857	* src/util.c (debug_printf, wprintf): Do fflush(stderr) at each
2858	calling.
2859
2860	* src/usage.c (show_mini_usage): Use fputs() instead of printf()
2861	because it doesn't use any printf format such as %s.
2862
2863	* src/output.c (fputs_without_html_tag): Implement ISO-2022-JP
2864	handling.
2865
2866	* Makefile.am (ACLOCAL_AMFLAGS): Fix a typo: -l -> -I.
2867
2868	* macros/gettext.m4: Imported reliable one from sh-utils-2.0/m4.
2869
2870	* src/form.c (print_headfoot): \x1b -> \033
2871
28721999-09-21  Ryuji Abe <raeva@t3.rim.or.jp>
2873
2874	* configure.in(ALL_LINGUAS): Added ja_JP.sjis.
2875
2876	* Makefile.am(ACLOCAL_AMFLAGS): Specified -l macros.
2877	(EXTRA_DIRS): Added macros.
2878
2879	* po/Makefile.in.in: Derived from Akira Higuchi's mgedit snapshot.
2880
2881	* po/make_sjis_po: New File. Derived from Akira Higuchi's mgedit snapshot.
2882
2883	* po/ja_JP.sjis: New File.
2884
2885	* macros: New Directory.
2886
2887	* macros/gettext.m4: New File.
2888
2889	* src/Makefile.am: More simplified make rules for perl scripts.
2890
28911999-09-21  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2892
2893	* acloca.m4: Fix a subtle problem relating to libintl.a reported
2894	in [namazu-dev 488] by refering sh-utils-2.0's aclocal.m4
2895
28961999-09-20  Ryuji Abe <raeva@t3.rim.or.jp>
2897
2898	* configure.in: Added AC_ISC_POSIX.
2899
2900	* Makefile.am(AUTOMAKE_OPTIONS): Added 1.4.
2901
2902	* src/Makefile.am: Likewise.
2903
2904	* src/Makefile.am(LDADD): Use instead of namazu_LDADD.
2905
29061999-09-20  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2907
2908	* src/*.[ch]: Rename a function name: dprintf -> debug_printf
2909	due to the former causes a conflict with system library.
2910	[namazu-dev 474]
2911
2912	* src/*.c: Extract almost MSG_foobar into sources.
2913
2914	* src/*.c: Rename variables:
2915	MSG_TOO_LONG_KEY     -> MSG_TOO_LONG_QUERY
2916
2917	* src/re.c (regex_grep): Do re_free_pattern at the end.
2918
2919	* src/cgi.c (get_cgi_vars): Fix PATH_INFO related codes.
2920
2921	* src/*.c: Use wprintf() for warning and use dprintf() for debug
2922	messages. And eliminate wasteful if (Debug) { ... } statements.
2923
2924	* src/util.c: Add new functions: wprintf() and dprintf().
2925
2926	* src/wakati.c: Abolish using strlen2() but use strcspn() instead.
2927
2928	* src/util.c: Abolish strlen2().
2929
2930	* src/util.c: Abolish setprogname() but use PACKAGE macro instead.
2931
29321999-09-20  NOKUBI Takatsugu  <knok@daionet.gr.jp>
2933
2934	* src/namazu.c: Fixed merge conflict.
2935
29361999-09-19  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
2937
2938	* configure.in: Arrange indent.
2939
2940	* src/*.c: Gettextized.
2941
2942	* po/ja.po: Japanese messages prepared.
2943
2944	* po/namazu.pot: Collect messages.
2945
2946	* src/message.c: Gettextized.
2947
2948	* src/magic.h: Separate enum declarations.
2949
2950	* src/output.c (put_page_index): Fix enviromental variable related
2951	bugs by using safe_getenv().
2952
2953	* src/{search,util}.c: Move safe_getenv() from search.c to util.c
2954
2955	* src/Makefile.am (namazu_LIBS): Abolished.
2956
2957	* po/ChangeLog: New file.
2958
2959	* Makefile.am (DIST_SUBDIRS): add $(SUBDIRS)
2960
2961	* po/en.po: Removed
2962
2963	* configure.in (ALL_LINGUAS): Remove `en'
2964
2965	* src/Makefile (CLEANDIRS): Renamed -> DISTCLEANDIRS
2966
2967	* src/Makefile (CLEANFILES): Renamed -> DISTCLEANFILES
2968
2969	* ABOUT-NLS: Replace this with latest one.
2970	<ftp://ring.asahi-net.or.jp/pub/GNU/ABOUT-NLS>
2971
2972	* aclocal.m4: Import AC_ISC_POSIX related codes from aclocal.m4 of
2973	GNU sh-utils-2.0 for avoiding autoheader's complaints like:
2974	configure.in:375: AC_TRY_COMPILE was called before AC_ISC_POSIX
2975
2976	* po/namazu.pot: New file.
2977
2978	* acconfig.h: Prepare the following undefs
2979	ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY
2980
2981	* configure.in: Add AC_PREREQ(2.13) at the head.
2982
2983	* configure.in: Add ALL_LINGUAS and AM_GNU_GETTEXT macros.
2984
2985	* configure.in (AC_OUTPUT): intl/Makefile, po/Makefile.in
2986
2987	* src/Makefile.am (always_built_SUBDIRS): Abolish this because
2988	autoreconf complains:
2989	AM_GNU_GETTEXT in configure.in but `po' not in SUBDIRS
2990	AM_GNU_GETTEXT in configure.in but `intl' not in SUBDIRS
2991
2992	* src/Makefile.am (DEFS): New entry.
2993
2994	* src/Makefile.am (localedir): New entry.
2995
2996	* src/Makefile.am (INCLUDES): New entry.
2997
2998	* src/Makefile.am (namazu_LDADD): New entry.
2999
3000	* src/{mailutime,vfnmz,gtnmz,kwnmz.pl,gcnmz.pl}.in: Add
3001	"-*- Perl -*-" string for convenience with Emacs.
3002
3003	* po/{ja.po,en.po,POTFILES.in}: New files.
3004
3005	* src/{kwnmz,gcnmz}.pl.in: Add RCS Id at the head and chmod -x.
3006
3007	* aclocal.m4: Adding contents of gettext.m4,  lcmessage.m4 and
3008	progtest.m4.
3009
3010	* ABOUT-NLS: New file created by gettextize(1).
3011
3012	* intl/{ChangeLog,dcgettext.c,gettext.h,libgettext.h,po2tbl.sed.in,
3013	Makefile.in,dgettext.c,gettextP.h,linux-msg.sed,textdomain.c,
3014	VERSION,explodename.c,hash-string.h,loadinfo.h,xopen-msg.sed,
3015	bindtextdom.c,finddomain.c,intl-compat.c,loadmsgcat.c,
3016	cat-compat.c,gettext.c,l10nflist.c,localealias.c}:
3017	New files created by gettextize(1).
3018
3019	* po/Makefile.in.in: New files created by gettextize(1).
3020
3021	* Makefile.am (always_built_SUBDIRS): Add intl and po
3022
3023	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.5.
3024
30251999-09-19  Rei FURUKAWA  <furukawa@tcp-ip.or.up>
3026
3027	* lib/nmzidx.pl: Replace nmzdb -> nmzidx,
3028
3029	* src/kwnmz.pl.in: Replace nmzdb -> nmzidx,
3030 	Add --help option for usage.
3031
3032	* src/gcnmz.in: Removed. (Renamed: gcnmz.in -> gcnmz.pl.in)
3033
3034	* src/gcnmz.pl.in: New File. (Renamed: gcnmz.in -> gcnmz.pl.in)
3035	Replace nmzdb -> nmzidx
3036
3037	* src/Makefile.am: add src/gcnmz.pl.in
3038
3039	* configure.in: Renamed: gcnmz.in -> gcnmz.pl.in
3040
30411999-09-18  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3042
3043	* src/regex.[ch]: Imported from source codes of Ruby 1.4.2.
3044
3045	* src/search.c (search_sub): Modify to only do check_access() at
3046	a CGI mode.
3047
3048	* src/search.c (search_main): Modify not to print NMZ.tips.* at
3049	a command line mode
3050
3051	* src/Makefile.am (CLEANFILES): Restore kwnmz.
3052	(I misunderstood)
3053
3054	* configure.in: Modify codes for getting a version number of
3055	included File::MMagic for a cygwin environment. [namazu 998]
3056
30571999-09-17  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3058
3059	* src/Makefile.am (noinst_HEADERS): Integrated to namazu_SOURCES.
3060
3061	* src/Makefile.am (LIBS): Renamed: -> namazu_LIBS.
3062
3063	* src/Makefile.am (CLEANFILES): Remove kwnmz.
3064
3065	* configure.in: Modfy check codes related to perl.
3066
30671999-09-16  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3068
3069	* template/NMZ.body.{en,ja}: Commented out Tkanamazu and namazu.el
3070	related descriptions.
3071
30721999-09-15  Masao Takaku  <masao@ulis.ac.jp>
3073
3074	* src/{message.c,message.h,namazu.h,search.c,var.c}: Add a access
3075	control feature by hostname and IP address. (NMZ.access)
3076
30771999-09-15  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3078
3079	* doc/ja/nmz.html: Add a description for NMZ.access
3080
3081	* src/{result,search,var}.c, src/var.h: Rename a variable name.
3082	s/MoreShortFormat/ListFormat/
3083
3084	* src/{namazu,cgi,var}.c, src/var.h: Abolish ShortFormat variable.
3085
3086	* src/search.c (check_accessfile): Modify `rhost' handling.
3087
3088	* src/search.c: Rename a function: s/get_env_safely/safe_getenv/
3089
3090	* Makefile.am (EXTRA_DIST): s/ChangeLog.old.1.gz/ChangeLog.1/
3091
3092	* src/{search,namazu,message}.c: Modify them to print
3093	NMZ.tips.{en,ja} when no documents found.
3094
3095	* lib/{namazu,usage}.c: Move cat() from namazu.c to usage.c.
3096
3097	* src/mknmz.pl.in, lib/var.pl.in: Add codes to create
3098	NMZ.tips.{en,ja}
3099
3100	* template/NMZ.tips.{en,ja}: New files.
3101
3102	* src/mknmz.pl.in, lib/usage.pl: Add --mhonarc option.
3103	(same as --media-type='text/html; x-type=mhonarc')
3104
3105	* ChangeLog.1: New file. (ChangeLog.old.1)
3106
3107	* ChangeLog.old.1.gz: Removed.
3108
3109	* doc/ja/nmz.html: New file. (htmlized version of nmz_files.txt)
3110
3111	* doc/ja/nmz_files.txt: Removed.
3112
3113	* lib/find.pl: Restore fncmp().
3114	(cvs update -j 1.8 -j 1.7 find.pl)
3115
3116	* lib/nmzidx.pl: New file. (Renamed: nmzdb.pl -> nmzidx.pl)
3117
3118	* lib/nmzdb.pl: Removed. (Renamed: nmzdb.pl -> nmzidx.pl)
3119
3120	* src/kwnmz.pl (kwnmz): Modify not to convert a charcode.
3121	And translate some comments into English.
3122
3123	* template/NMZ.result.normal: Modify a little bit.
3124
3125	* src/search.c (search_sub): Modify a way to display idxnames at
3126	results.
3127
31281999-09-15  Rei FURUKAWA  <furukawa@tcp-ip.or.jp>
3129
3130	* src/kwnmz.pl.in, lib/nmzdb.pl: New files.
3131
3132	* src/Makefile.am, configure.in: Add src/kwnmz.
3133
31341999-09-14  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3135
3136	* template/NMZ.head.{en,ja}: Remove unnecessary
3137	<input type="hidden" name="whence" value="0">.
3138
3139	* src/form.c (check_checkbox): Fix a subtle bug: put "checked"
3140	accidentally.
3141
3142	* src/regex.[ch]: Imported from source codes of Ruby 1.4.
3143
3144	* template/NMZ.{head,body}.{en,ja}: Use CSS1 for decoration.
3145
31461999-09-13  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3147
3148	* src/{conf.c,namazu.h,re.c,re.h,util.c,util.h,var.c,var.h}:
3149	Rearrange REPLACE related codes.
3150
3151	* src/mknmz.pl.in (load_document): Modify the way to masure text
3152	size. [namazu-dev 417]
3153
31541999-09-13  NOKUBI Takatsugu  <knok@daionet.gr.jp>
3155
3156	* New File::MMagic module.
3157
3158	* Add setup_magic function.
3159
31601999-09-11  Masao Takaku <masao@ulis.ac.jp>
3161
3162	* src/mknmz.pl.in (load_document): Add kanji contained check for
3163	$weighted_str.
3164
3165	* src/mknmz.pl.in (put_field_index): Fix a bug with too long field
3166	texts.
3167
31681999-09-11  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3169
3170	* src/mknmz.pl.in (write_message): Fix a bug: can't parepare
3171	NMZ.body.{en,ja}.
3172
3173	* template/NMZ.body.ja: Rewrite a little.
3174
3175	* template/NMZ.body.en: Rewrite all descriptions.
3176
3177	* tknamazu/configure.in (AC_OUTPUT): Add tknamazu.spec.
3178
3179	* configure.in: Suppress useless messages.
3180
31811999-09-11  Ryuji Abe <raeva@t3.rim.or.jp>
3182
3183	* configure.in: export $bindir/namazu and $bindir/mknmz in config.cache.
3184
31851999-09-10  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3186
3187	* Makefile.am (dist-hook): Handle CLEANFILES and CLEANDIRS well.
3188
3189	* Makefile.am (CLEANDIRS): conf/conf File-MMagic/CVS.
3190
3191	* Makefile.am (CLEANFILES): Add lib/var.pl lib/conf.pl.
3192
3193	* Makefile.am (EXTRA_DIRS): Add `conf'.
3194
3195	* src/mknmz.pl.in: Add --meta option for meta tag handling.
3196
3197	* src/conf.pl.in: Add $META_TAGS variable for specifying meta tags
3198	which you want to do field-specified search with.
3199
3200	* filter/html.pl (get_meta_tags): Implement a feature to handle
3201	meta tags. Thanks to <eschmid@s.netic.de> for the good idea.
3202
3203	* re.c (regex_grep): Fix a bug in no matching case.
3204
32051999-09-09  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3206
3207	* template/NMZ.body.ja: Rewrite descriptions.
3208
3209	* configure.in: Avoid runnning tknamazu/configure when lynx or
3210	wish are not exist. [namazu-dev 402]
3211
3212	* configure.in (AC_OUTPUT): Add src/vfnmz.
3213
3214	* src/Makefile.am (bin_SCRIPTS): Add vfnmz.
3215
3216	* src/vfnmz.in: New file.
3217
32181999-09-08  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3219
3220	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.4.
3221
3222	* template/NMZ.head.{en,ja}: Add a comment:
3223	<!-- <input type="hidden" name="idxname" value="foobar"> -->
3224
3225	* src/mknmz.pl.in, lib/usage.pl: Add -h, --mailnews option for
3226	limitting target files to mail/news. (identical with
3227	--media-type=message/rfc822 )
3228
3229	* src/mknmz.pl.in, lib/usage.pl: Add --media-type=type option for
3230	skipping media type guessing with File::MMagic.
3231
3232	* lib/find.pl: Abolish fncmp().
3233
32341999-09-08  NOKUBI Takatsugu <knok@daionet.gr.jp>
3235
3236	* Update File::MMagic.
3237
3238	* Optimized filetype checking routine.
3239
32401999-09-07  Ryuji Abe <raeva@t3.rim.or.jp>
3241
3242	* configure.in: Using AC_CONFIG_SUBDIRS macro for tknamazu configuration.
3243
3244	* src/Makefile.am(CLEANFILES): Only mknmz.
3245
3246	* tknamazu/README.tknamazu: Renamed README.
3247
3248	* tknamazu/ChangeLog: New File.
3249
3250	* tknamazu/AUTHORS, COPYING, ChangeLog, INSTALL, NEWS: New Files.
3251
3252	* tknamazu/aclocal.m4, configure.in, configure: New Files.
3253
3254	* tknamazu/Makefile.am: See tknamazu/ChangeLog.
3255
3256	* tknamazu/tknamazu.tcl.in: See tknamazu/ChangeLog.
3257
32581999-09-07  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3259
3260	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.3.
3261
3262	* src/mknmz.pl.in (wordcount_sub): Improve efficiency a bit.
3263
3264	* src/mknmz.pl.in: s/fid/docid/g
3265
3266	* src/mknmz.pl.in: 'grep !/^$/, @words' -> 'grep {$_ ne ""} @words'
3267
3268	* lib/seed.pl, src/mknmz.pl.in: Change @Seed handling.
3269	accesing @seed::Seed is slower than accessing @Seed directly.
3270
3271	* Makefile.am (CLEANFILES): Remove lib/var.pl lib/conf.pl entries.
3272
32731999-09-07  NOKUBI Takatsugu <knok@daionet.gr.jp>
3274
3275	* src/mknmz.pl.in: Changed to create File::MMagic object once.
3276
32771999-09-06  Ryuji Abe <raeva@t3.rim.or.jp>
3278
3279	* configure.in: Fixed incorrect warnings.
3280
3281	* src/Makefile.am: Removed $(bin_SCRIPTS) at CLEANFILES.
3282
3283	* tknamazu/Makefile.am: Likewise.
3284
32851999-09-06  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3286
3287	* form.c (replace_action): Replace {cgi} with suitable namazu.cgi
3288	location on the fly.
3289
3290	* src/util.c (subst): New function.
3291
3292	* templates/NMZ.head.{ja,en}: Abolish $conf::CGI_ACTION but
3293	introduce {cgi} instead. And add [Help] link next to Search! button.
3294
3295	* configure.in: Remove cgi-location related codes.
3296
3297	* lib/conf.pl.in: Abolish $CGI_ACTION.
3298
3299	* **/*.pl{,.in}, src/*.[ch]: Translate all comments into English.
3300
3301	* src/namazu.h, src/*.[ch]: Rename names of hlist_data members.
3302
3303	* template/NMZ.head.{ja,en}, src/{cgi,form}.c: Rename a CGI
3304	variable: key -> query
3305
3306	* src/namazu.c: Rename option: --no-replace-uri -> --no-replace
3307
3308	* src/message.c, lib/usage.pl: Rewrite Englisu usages.
3309
33101999-09-05  masao@ulis.ac.jp (Masao Takaku)
3311
3312	* lib/usage.pl,src/message.c: Fix a typo and obsolete messages.
3313
33141999-09-05  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3315
3316	* configure.in, src/Makefile: Remove lex related codes.
3317
3318	* **/*.pl{,.in}: Change all notations for representing hash value:
3319	key string must be single-quoted. e.g., $NMZ{log} -> NMZ{'log'}
3320
3321	* lib/var.pl.in: Replace $NMZ{log} with $NMZ{'log'}
3322	[namazu-dev 346]
3323
3324	* src/field.c (get_field_data): Implement a simple cache
3325	mechanism.
3326
3327	* src/result.c (replace_field): Fix a bug: don't call
3328	encode_entity() if HtmlOutput == 0; (it should always be called)
3329
3330	* src/result.c: Rewrite a scanner for NMZ.result without lex.
3331
3332	* src/result.c: New files.
3333
3334	* src/result.l: Removed.
3335
3336	* src/cgi.c (get_cgi_vars): Fix a bug: can't sort by score at CGI.
3337
33381999-09-04  masao@ulis.ac.jp (Masao Takaku)
3339
3340	* src/mknmz.pl.in: Fix syntax error in perl5.004.
3341
3342	* src/mknmz.pl.in: Fix flist_ptr bug (for checkpoint).
3343
33441999-09-04  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3345
3346	* tknamazu/Makefile.am (tknamazudir):
3347	s/@pkgdatadir@/$(pkgdatadir)$/ [namazu-dev 340]
3348
3349	* src/mknmz.pl.in (put_log_to_logfile): Replace
3350	$var::NMZ{log} with $var::NMZ{'log'} [namazu-dev 339]
3351
3352	* src/namazu.c: Fix lacks of *short_options bug.
3353
3354	* Makefile.am (dist-hook): Remove "cp namazu.spec $(distdir)"
3355
3356	* src/namazu.c: Change a timing of calling load_conf() for calling
3357	the function only once.
3358
3359	* src/var.[ch], src/conf.c: Change the scope of ConfLoaded to
3360	static global in  conf.c.
3361
3362	* configure.in (AM_INIT_AUTOMAKE): Change a version number to 1.9.1.
3363
3364	* template/namazu.conf-dist: Modify a bit.
3365
3366	* src/conf.c: Abolish $HOME substitution.
3367
3368	* template/namazu.conf-dist: Rewrite descriptions.
3369
3370	* src/conf.c: Rewrite an analizer for .namazurc or namazu.conf overall.
3371
3372	* src/namazu.c: Fix --config option bug.
3373
3374	* src/form.c: Modify to handle new type <form> ... </form>
3375
3376	* src/cgi.c: Rename CGI variables. And Change a way to specify
3377	"sort=" variable.
3378
3379	* template/NMZ.head.ja: Use Kanji in descriptions for "option".
3380
3381	* src/*.[chl]: Change condition styles:
3382	    "!strXXcmp()" -> "strXXcmp() == 0"
3383
3384	* src/field.[ch]: Define FIELD_SAFE_CHARS in field.h and use it in
3385	field.c (is_field_safe_char).
3386
3387	* src/*.[chl]: s/SortDirection/SortOrder/g;
3388
3389	* src/cgi.c: Use strprefixcasecmp() instead of strncmp().
3390
33911999-09-03  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3392
3393	* src/hlist.c: Introduce set_rank() for STABLE sorting.
3394
3395	* src/hlist.c: Abolish nmz_mergesort() and introduce qsort(3) for
3396	sorting.
3397
3398	* src/namazu.h, src/hlist.c: Change data structure of HLIST to
3399	better one.
3400
3401	* src/mknmz.pl.in (append_index): Fix a bug: Can't update index
3402	correctly. [namazu-dev 322]
3403
3404	* src/mknmz.pl.in (complete_field_info): Fix a bug: condition for
3405	setting "(unknown)" to $fields->{'from'} .
3406
3407	* src/mknmz.pl.in: Rename: make_field_index -> complete_field_info
3408
3409	* src/mknmz.pl.in (check_present_index): Fix a bug. [namazu-dev 322]
3410
3411	* src/mknmz.pl.in: Replace get_unpackw() with readw() which is
3412	used in gcnmz.in by <furukawa@tcp-ip.or.jp>.
3413
3414	* src/gcnmz.in: New gcnmz was contributed by <furukawa@tcp-ip.or.jp>.
3415
3416	* src/hlist.c (prep_field_sort): Aply reverse_hlist() at first.
3417
3418	* src/search.c (search_main) : Don't re-sort if SortMethod ==
3419	SORT_BY_DATE.
3420
34211999-09-02  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3422
3423	* src/result.l: Fix --list option bug.
3424
3425	* src/output.c: Modify a little bit.
3426
3427	* src/*.[chl]: Improve efficiency of field-specified sorting.
3428
3429	* src/{namazu,message}.c: Change a option name:
3430	--reverse -> --ascending
3431
3432	* src/*.[chl]: Implement namazu --sort=field:title option.
3433
3434	* src/util.[ch]: Implement the following functions:
3435		int strprefixcmp(uchar *, uchar *);
3436		int strsuffixcmp(uchar *, uchar *);
3437		int strprefixcasecmp(uchar *, uchar *);
3438		int strsuffixcasecmp(uchar *, uchar *);
3439
3440	* src/{cgi,form}.c: Make all string comparisons case insensitive.
3441
3442	* template/*, src/*.c: s/dbname/idxname/g
3443
3444	* lib/mhonarc.pl: Implement detection codes for MHonArc's index
3445	files such as maillist.hml or threads.html.
3446
34471999-09-01  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3448
3449	* acconfg.h: Rename several macro definiions for C program.
3450	(I edited config.h.in a few minutes ago but it's meaningless)
3451
3452	* configure.in, config.h.in, src/{var,message.c}:
3453	Rename several macro definiions for C program.
3454
3455	* src/*.[ch]: s/DEFAULT_DIR/DEFAULT_INDEX/g
3456
3457	* src/namazu.c: s/dbnames/idxnames/g
3458
3459	* src/hlist.c (malloc_hlist): Set hlist->n = n; at the ending.
3460
3461	* src/{usage,message}.c: Modify namazu's usages.
3462
3463	* src/conf.c (show_conf): Modify messages.
3464
3465	* src/mknmz.pl.in, lib/var.pl.in: Rename an variable:
3466	%conf::Supported -> %var::Supported
3467
3468	* src/mknmz.pl.in: Add --show-config option and implement
3469	show_config() function.
3470
3471	* src/mknmz.pl.in (put_log): Modify loggin messages a bit.
3472
3473	* tknamazu/Makefile.am (CLEANFILES): Add $(bin_SCRIPTS).
3474
3475	* template/NMZ.head.{en,ja}: Abolish using "format={short,long}"
3476	but use "result=ext" instead.
3477
3478	* src/cgi.[ch]: Implemented codes to handle result=ext in CGI
3479	query.
3480
3481	* src/{namazu,usage}.c: Add --result=ext option for specifying
3482	NMZ.result.ext.
3483
3484	* src/{namazu,usage}.c: Change identifiers of  sevaral command
3485	line options.
3486
3487	* src/namazu.c (parse_options): Be effective -s option.
3488
3489	* src/result.l (print_hlist): Support choicing a correct
3490	NMZ.result.foobar file.
3491
3492	* src/mknmz.pl.in (write_result_file): Support making multiple
3493	NMZ.result.* files.
3494
3495	* template/NMZ.result.{normal,short}: New files.
3496
3497	* template/NMZ.result: Removed
3498
3499	* src/mknmz.pl.in, lib/var.pl.in, src/{hlist,search}.c:
3500	Implement codes to integrate NMZ.i and NMZ.w. [namazu-dev 294]
3501
3502	* lib/util.pl (remove_tmpfiles): Add a condition to return if
3503	$var::Opt{debug} in the beginning of the function;
3504
3505	* src/search.c: s/forward_match/prefix_match/g;
3506	s/backward_match/suffix_match/g;
3507
3508	* src/mknmz.pl.in (load_document): Fix stupid bugs which I made
3509	yesterday. (I forgot preceding `$' mark for ref values)
3510
3511 	* tknamazu/{Makefile.am,README.tknamazu}:
3512	s/tknamazu.xpm/tknamazu.ppm/g
3513
3514	* tknamazu/tknamazu.tcl.in: Use .ppm instead of .xpm
3515
3516	* tknamazu/tknamazu.ppm: New file.
3517
3518	* tknamazu/tknamazu.xpm: Removed.
3519
35201999-09-01  NOKUBI Takatsugu  <knok@daionet.gr.jp>
3521
3522	* filter/gzip.pl: Fix opposite condition in status() function.
3523
3524	* ChangeLog: Reorder log.
3525
3526	* Makefile.am: Remove necessary files in CLEANFILES.
3527
3528	* src/mknmz.pl.in: Exclude gfilter.pl from filters/*.pl in
3529	load_mocules() functions.
3530
35311999-08-31  NOKUBI Takatsugu  <knok@daionet.gr.jp>
3532
3533	* lib/wakati.pm: Fix `tmpname' function name typo.
3534
3535	* lib/var.pl, src/mknmz.pl.in: Add %REQUIRE_CODECONV variable.
3536
3537	* filter/*.pl: Add codeconv() function.
3538
3539	* filter/man.pl: Add codeconv::toeuc() before man_filter().
3540
3541	* filter/pdf.pl: Add `-q' option with $pdfconvpath program.
3542
3543	* lib/util.pl: Add filesize() function.
3544
3545	* src/mknmz.pl.in: Add filesize check before reading file.
3546
3547	* src/mknmz.pl.in: Add %Supported check.
3548
3549	* filter/*.pl, src/mknmz.pl.in: Add return value on filter::filter()
3550	functions.
3551
35521999-08-31  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3553
3554	* src/mknmz.pl.in (load_document): Move some codes from the bottom
3555	to "if (defined $var::REQUIRE_CODECONV{$mtype}) {}" block.
3556
3557	* filter/mailnews.pl (filter): Add mailnews_citation_filter()
3558	process. (this fix an awful bug...)
3559
3560	* conf/Makefile.am (mknmz.conf-dist): Modify regex for perl to
3561	treat %, @ prefixes as well as $.
3562
3563	* Makefile.am (EXTRA_DIST): Add namazu.spec.
3564
3565	* Makefile.am (DIST_SUBDIRS): Remove File-MMagic because it causes
3566	error at "make dist" time.
3567
3568	* lib/var.pl.in: Remove serveal media types from
3569	%REQUIRE_CODECONV. (undo)
3570
3571	* src/result.l (get_field_data): Insert commas if given filed is a
3572	numeric string.
3573
3574	* src/util.c: Add isnumstr() and commas() functions.
3575
3576	* tknamazu/{Makefile.am,README.tknamazu}:
3577	s/tknamazu.gif/tknamazu.xpm/g
3578
3579	* tknamazu/tknamazu.tcl.in: Use .xpm instead of .gif
3580
3581	* tknamazu/tknamazu.xpm: New file.
3582
3583	* tknamazu/tknamazu.gif: Removed.
3584
3585	* lib/var.pl: Add serveal media types into %REQUIRE_CODECONV.
3586
3587	* src/mknmz.pl.in (generate_uri): Modify a way of applying eval.
3588
3589	* src/mknmz.pl.in, lib/usage.pl: Add --update=s and implement
3590	its codes.
3591
3592	* src/mknmz.pl.in, lib/usage.pl: Add --deny=s --exclude=s and
3593	implement their codes.
3594
3595	* src/mknmz.pl.in: Modify it to be able to take multiple targets
3596	as command line arguments.
3597
3598	* lib/util.pl: Modify cdie() to use `exit' instead of `die'
3599	because `die' cause a annoying message for ordinary users. :-)
3600
3601	* src/mknmz.pl.in, lib/usage.pl: Add --replace=s option for
3602	transforming URI. And abolish a PREFIX argument in command line.
3603
3604	* filter/gfliter.pl, filter/mailnews.pl: Move uuencode_filter()
3605	from gfilter.pl to mailnews.pl.
3606
3607	* filter/html.pl: s/url/uri/g;
3608
3609	* lib/conf.pl.in: Change $DEFAULT_FILE: _default -> index.html
3610
36111999-08-31  Ryuji Abe <raeva@t3.rim.or.jp>
3612
3613	* Makefile.am: If configured, tknamazu will be built. Changed to
3614	  use dist-hook section to distribute namazu.spec.
3615
3616	* configure.in: Bumped version to 1.90. Added tknamazu configuration.
3617
3618	* namazu.spec.in: Deleted COMMITTERS at %files.
3619
3620	* src/Makefile.am: Cleaned up.
3621
3622	* tknamazu/README: Renamed README.tknamazu.
3623
3624	* tknamazu/Makefile.am: New file.
3625
3626	* tknamazu/Makefile.in: Likewise.
3627
3628	* tknamazu/tknamazu.tcl: Renamed tknamazu.tcl.in with autoconfize.
3629
3630	* tknamazu/Makefile: Removed.
3631
3632	* tknamazu/Makefile.W32: Likewise.
3633
3634	* tknamazu/tknamazu.sample: Likewise.
3635
3636	* tknamazu/tknamazu.bat.sample: Likewise.
3637
36381999-08-30  NOKUBI Takatsugu  <knok@daionet.gr.jp>
3639
3640	* lib/codeconv.pl: Fix `tmpname' function name typo.
3641
3642	* Makefile.am: Ignore test command return value on
3643	  install-data-local target.
3644
36451999-08-30  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3646
3647	* Makefile.am (install-data-local): Remove codes creating
3648	namazu.conf and mknmz.conf.
3649
3650	* src/mknmz.pl.in lib/util.pl: Move remove_tmpfiles from
3651	src/mknmz.pl.in to lib/util.pl. And modify it.
3652
3653	* lib/util.pl: Add `cdie()' function to remove temporary files
3654	before mknmz die. mknmz MUST always dies with this function.
3655
3656	* src/mknmz.pl.in (read_config): Use `do' instead of `require' for
3657	multiple calling of read_config().
3658
3659	* lib/conf.pl: New file for containing default values which may
3660	overriden by mknmz.conf or ~/.mknmzrc
3661
3662	* conf/mknmz.conf-dist.in: Removed
3663
3664	* conf/Makefile.am : New file for creating mknmz.conf-dist at make
3665	time.
3666
3667	* src/Makefile.am (install-data-local): Add codes to Removed
3668	`Makefile*' in the install directory. (for `conf' directory)
3669
3670	* conf/mknmz.conf-dist.in: Append "|.*\.pdf|.*\.doc" regex into
3671	$ALLOW_REGEX for handling pdf and msword documents by default.
3672	And remove `_default' target.
3673
3674	* src/mknmz.pl.in, conf/mknmz.conf: Abolish $FILE_SIZE_LIMIT but
3675	introduce $TEXT_SIZE_MAX instead for handling binary files such as
3676	pdf and msword.
3677
3678	* src/mknmz.pl.in, lib/usage.pl: Abolish the following options and
3679	  remove their codes.
3680	    -R, --no-regex-index
3681	    -W, --no-date-index
3682	    -X, --no-field-index
3683	    -M, --no-mhonarc
3684	    -L, --no-line-adjust
3685	    -h, --rfc822   (dummy option alives)
3686	    -u, --uuencode (dummy option alives)
3687	    -r, --man
3688
3689	* src/mknmz.pl.in, lib/usage.pl: Change the option letter for
3690	`--lang=s': `-l' -> `-L'
3691
3692	* filter/*.pl: s/ unless \$var::Opt{NoLineAd};/;/
3693
3694	* **/*.pl{,.in}: Lower all keys of %var::Opt.
3695
3696	* src/mknmz.pl.in: Remove all codes like "while (<$fh>)"
3697	because of its deanger. ($_ is a global value)
3698
3699	* src/mknmz.pl.in, lib/var.pl: Abolish NMZ.{total,keys} and
3700	instead introduce NMZ.status for their values.
3701
3702	* src/mknmz.pl.in (put_registry): Fix a variable name typo.
3703
3704	* filter/*.pl: Change timing of dosing util::tmpnam()
3705
3706	* lib/util.pl (tmpnam): Name file name with $var::OUTPUT_DIR
3707
3708	* src/mknmz.pl.in, lib/var.pl: Change all NMZ.* file name
3709	representations using %var::NMZ instead of %var::File.
3710
3711	* src/mknmz.pl.in (make_headfoot): Fix $templatedir2.
3712
3713	* src/{namazu,message}.c: Rename options: s/--hit-count/--count/
3714	s/output-file/output/
3715
3716	* lib/util.pl: Remove useless codes from dprint and vprint.
3717
37181999-08-29  masao@ulis.ac.jp (Masao Takaku)
3719
3720	* src/search.c: Ignore TOO_MUCH_HIT word in phrase query.
3721
37221999-08-29  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3723
3724	* src/mknmz.pl.in (make_field_index): Add codes to set '(unknown)'
3725	to $fields->{'from'} when it's not set.
3726
3727	* src/Makefile.am: Fix lacks of noinst_HEADERS
3728
3729	* lib/util.pl (readfile): Comment out $conf::FILE_SIZE_LIMIT
3730	condition codes.
3731
3732	* src/mknmz.pl.in: Abolish use of $size argument and modify size
3733	handling to treat a binary file well such as .gz, .pdf, .doc.
3734
3735	* filter/*.pl: Abolisu use of $size argument.
3736
3737	* src/mknmz.pl.in: Abolish use of $ctrl in check_file() and
3738	load_document().
3739
3740	* lib/util.pl (checkcmd): Fix a typo.
3741
3742	* filter/mhonarc.pl (mediatype): Fix typos.
3743
3744	* filter/*.pl: s/\$contents/\$contref/g
3745
3746	* src/mknmz.pl.in: Change timing of code conversion.
3747
3748	* lib/codeconv.pl: Add eucto() function.
3749
3750	* src/mknmz.pl.in: Remove codeconv() function.
3751
3752	* filter/rfc.pl (rfc_filter): Fix bad use of
3753	html::encode_entity()
3754
3755	* src/mknmz.pl.in: Remove istext() function.
3756
3757	* src/mknmz.pl.in (load_document): Use File::check_binary()
3758	instead of istext().
3759
3760	* filter/html.pl (get_title): Fix.
3761
3762	* src/mknmz.pl.in (namazu_core): Remove $url.
3763
37641999-08-28  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3765
3766	* src/mknmz.pl.in: Add istext() and codeconv() functions.
3767
3768	* src/mknmz.pl.in (load_document): Move a place of codes of code
3769	conversion because its timing was bad.
3770
3771	* filter/gfilter.pl: New file.
3772
3773	* filter/*.pl: s/filter ($$$$$$$)/filter ($$$$$$)/
3774
3775	* src/mknmz.pl.in: s/checktype_content/checktype_contents/
3776
3777	* src/mknmz.pl.in: Add global variable $TestMode for testing.
3778
3779	* configure.in: Add --enable-test option for testing.
3780
3781	* src/search.c (hash): Modify "j % 4" -> "j & 03"
3782
3783	* src/mknmz.pl.in (hash): Modify "$i % 4" -> "$i & 03"
3784
3785	* lib/seed.pl: New file (rename <- seed.pl)
3786
3787	* lib/hash.pl: Remove   (rename -> seed.pl)
3788
3789	* src/mknmz.pl.in: Add `readconf()' function.
3790
3791	* lib/util.pl: Modify `dprint' and `vprint' to print prefix
3792	characters everytime.
3793
3794	* src/mknmz.pl.in: Print a mediatype at processing time by
3795	default.
3796
3797	* filter/*.pl: Modify them to use `vprint()' to print verbose
3798	messages.
3799
3800	* filter/*.pl: Fix typos.
3801
3802	* lib/util.pl: Add funtion called 'vprint()' for printing verbose
3803	messaegs.
3804
3805	* filter/supported.pl: Removed
3806
3807	* Makefile.am (EXTRA_DIST): Add ChangeLog.old.1.gz
3808
3809	* ChangeLog.old.gz: Old ChangeLog (separated)
3810
3811	* ChangeLog: Separate.
3812
3813	* lib/usage.pl: Convert ISO-2022-JP -> EUC-JP
3814
3815	* filter/pdf.pf: Remove @PDFTOTEXT_PATH@.
3816
3817	* filter/gzip.pl: Remove @GZIP_PATH@.
3818
3819	* ChangeLog: Change order to place a latest log on the top.
3820
3821	* Makefile.am (install-data-local): Add codes to creat configs
3822	file if no config files exist.
3823
3824	* src/{mknmz.pl.in,Makefile.am}: Add codes to handle CONFDIR.
3825
3826	* **/*.pl{,.in}: Move non-config variables from conf:: to var::.
3827
3828	* lib/conf.pl.in: Removed
3829
3830	* **/*.pl{,.in}: s/foreach /for /g;
3831
3832	* conf/mknmz.conf-dist.in: New file.
3833
3834	* configure.in: Modify AC_OUTPUT.
3835
3836	* lib/var.pl.in: New file.
3837
3838	* lib/namazu.conf-dist: Remove.
3839
3840	* configure.in: Remove filter command detection codes.
3841
3842	* filter/rfc.pl.in: Fix rfc_filter();
3843
3844	* filter/msword.pl.in: Fix status();
3845
3846	* filter/mailnews.pl: Fix mailnews_filter arguments.
3847
3848	* filter/html.pl: Fix html_filter() arguments.
3849
3850	* filter/mhonarc.pl: Fix a typo.
3851
3852	* **/*.pl{,.in}: Restore prefix `util::'
3853
3854	* src/*.[ch]: Rename HLIST_MAXMAX -> RESULT_MAX.
3855
38561999-08-27  NOKUBI Takatsugu  <knok@daionet.gr.jp>
3857
3858	* lib/util.pl: Add checkcmd function.
3859
3860	* filter/*.pl, src/mknmz.pl.in: Implement dynamic command ditection.
3861
3862	* lib/conf.pl.in: Add %supported variable.
3863
38641999-08-27  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3865
3866	* src/mknmz.pl.in: Silence warnings.
3867
3868	* src/*.[ch]: Rearrange many codes.
3869
3870	* src/{var.c,var.h,em.h,magic.h,critical.h}: New files.
3871
3872	* src/{type.h,values.c,variable.h,enum.h}: Remove.
3873
3874	* lib/html.pl: Remove.
3875
3876	* Makefile.am: Add AUTOMAKE_OPTIONS = no-dependencies
3877
3878	* src/*.[ch]: Rename variables for NMZ.* files.
3879
3880	* mknmz, namazu: Change behavior when no arguments are given to
3881	show simple messages like "Try `namazu --help' for more options."
3882	by using show_mini_usage().
3883
3884	* src/mknmz.pl.in: Add show_mini_usage();
3885
3886	* src/mknmz.pl.in, filter/*, lib/*: s/util:://g
3887
3888	* lib/util.pl: Remove `package util'
3889
3890	* lib/util.pl: Rename some functions
3891
3892	* src/mknmz.pl: Rename some functions
3893
3894	* Makefile.am, src/Makefile.am: Change packagedir (omit @VERSION@)
3895	[namazu-dev 192]
3896
38971999-08-26  Ryuji Abe <raeva@t3.rim.or.jp>
3898
3899	* Makefile.am: Added namazu.spec to EXTRA_DIST and removed rpm target.
3900
3901	* configure.in: Added AC_OBJEXT macro.
3902
3903	* namazu.spec.in: See %changelog section.
3904
39051999-08-26  NOKUBI Takatsugu  <knok@daionet.gr.jp>
3906
3907	* filter/*, lib/filter.pl, src/mknmz.pl.in: Fix $title probrem.
3908
39091999-08-26  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3910
3911	* src/configure.in: Add codes to make filter/supported.pl.
3912	[namazu-dev 199]
3913
3914	* configure.in: Add codes to detect Compress::Zlib module.
3915
3916	* src/Makefile.am: Add "libdir" macro.
3917
3918	* Makefile.am: Change dist-hook: to remove CVS directories.
3919
3920	* configure.in: Add codes to chedk "File::MMagic" module.
3921
3922	* Makefile.am: Add "@FILE_MMAGIC@" into SUBDIRS
3923
3924	* Makefile.am: Add "File-MMagic" into EXTRA_DIST
3925
3926	* Makefile.am: Add CLEANDIRS entry (additional macro)
3927
3928	* Makefile.am: Add "supported.pl" into CLEANFILES.
3929
3930	* filter/supported.pl: New file.
3931
3932	* src/configure.in, filter/{man.pl,compress.pl}: Substitute
3933	@{GROFF,ZCAT}_PATH@ for @OPT_HELPER_{GROFF,ZCAT}@.
3934
3935	* src/util.c (die): Print program name in error message.
3936
3937	* src/message.[ch]: Change a variable MSG_MIME_HEADER to macro.
3938
3939	* src/values.c: Set HtmlOutout to 0.
3940
3941	* Makefile.am: Modify install-data-local and dist-hook.
3942
3943	* configure.in: Modify AC_OUTPUT according to removed files.
3944
3945	* src/Makefile.am: Add an CLEANFILES entry.
3946
3947	* src/{clnmz.in,rvnmz.in,vfnmz.in}: Removed files.
3948
3949	* Makefile.am: Add an CLEANFILES entry.
3950
39511999-08-25  Satoru Takabayashi  <satoru-t@is.aist-nara.ac.jp>
3952
3953	* Makefile.am, src/Makefile.am: Change a directory structure for
3954	installing.
3955
3956	* src/mknmz.pl.in: Fix conflicted parts. (temporary)
3957
3958	* template/NMZ.*: New files.
3959
3960	* lib/NMZ.*: Remove files.
3961
3962	* src/{re.c,usage.c,message.c,field.c}: New files.
3963
3964	* src/{cgi.h,field.h,hlist.h,parser.h,result.h,codeconv.h,form.h,
3965	message.h,re.h,search.h,variable.h,conf.h,type.h,wakati.h,enum.h,
3966	output.h,usage.h}: New files.
3967
3968	* src/*.[ch]: Rerrange C coding styles.
3969
3970	* configure.in, src/Makefile.am, src/wdnmz.in:
3971	Remove wdnmz.in
3972
39731999-08-25 NOKUBI Takatsugu <knok@daionet.gr.jp>
3974
3975	* ChangeLog: merge conflicted parts.
3976
39771999-08-24 NOKUBI Takatsugu <knok@daionet.gr.jp>
3978
3979	* lib/conf.pl.in, lib/filter.pl, lib/util.pl, src/mknmz.pl.in:
3980	  merge with knok-filter-1.
3981
39821999-08-23  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
3983
3984	* src/namazu.c: Implement a suicide code.
3985
3986	* src/mknmz.pl.in: Implement a signal handler for SIGINT (mknmz)
3987
3988	* src/{hlist.c,result.l,output.c}, lib/NMZ.result: Implement a
3989	keyword emphasizing in HTML mode. (rough implementation)
3990
3991	* src/form.c: Modified not to display ugly '<>' in a title of
3992	  HTML.
3993
39941999-08-23 NOKUBI Takatsugu <knok@daionet.gr.jp>
3995
3996	* Makefile.am, configure.in: merge with knok-filter-1.
3997	* lib/util.pl: merge and add tnpnam function.
3998
39991999-08-13  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4000
4001	* src/mknmz.pl.in: Change index formats of NMZ.[ip] to compress
4002	them.
4003
4004	* src/search.c, src/hlist.c: Support new formats.
4005	  - NOTE: an old index format is no longer supported.
4006
4007	* lib/NMZ.result: Modify a little bit.
4008
4009	* src/conf.c, src/namazu.c: Modify LIST implementations a bit.
4010
40111999-08-12  masao@ulis.ac.jp (Masao Takaku)
4012
4013	* src/search.c: Fix TfIdf scoring bug.
4014
4015	* src/namazu.h, src/values.c: Delete NMZ.{f,fi} related code.
4016
40171999-07-22  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4018
4019	* configure.in: Add a feature to determine admin's email address
4020	automatically: imported the code from Apache's buildinfo.sh
4021
40221999-07-09  masao@ulis.ac.jp (Masao Takaku)
4023
4024	* mknmz.pl.in: Fix field_indices bug occurred at re-exec
4025
4026	* mknmz.pl.in: Fix -k and -c options bug
4027
4028	* src/Makefile.am: Added getopt.c, getopt1.c, getotp.h entries
4029
40301999-07-06  masao@ulis.ac.jp (Masao Takaku)
4031
4032	* mknmz.pl: Fix --checkpoint, --include, --target-list
4033	related bugs.
4034
4035	* Makefile.am, src/Makefile.am: Fix lib directory and
4036	add getopt.[ch]
4037
40381999-06-12  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4039
4040	* src/result.l: New file. formatter for search results
4041	made by using lex
4042
4043	* src/result.c: New file. made by lex automatically
4044
4045	* src/{messages,search,form}.c: lower all HTML elements
4046
4047	* lib/NMZ.*.{en,ja}: lower all HTML elements
4048
4049	* lib/NMZ.results: New file. a template file for search results
4050
4051	* src/regex.[ch]: Reimported sources from Ruby v1.2.5
4052
40531999-05-30  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4054
4055	* src/namazu.c: Modified it to use GNU getopt.c for parsing
4056	command line options and to support long-name options.
4057
4058	* src/getopt.[ch], src/getopt1.c: GNU getopt.c added.
4059
40601999-05-29  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4061
4062	* lib/conf.pl.in: Modified a usage message in Japanese vastly.
4063
4064	* src/mknmz.pl: Modified command line option parsing codes
4065	using Getopt::Long module.
4066
4067	* src/cgi.c: Fixed validate_dbname() bug and
4068	  - [MAEDA Atusi <maeda@is.uec.ac.jp>] - patch
4069
4070	* src/hlist.c: Fixed put_hlist bug
4071	  - [MAEDA Atusi <maeda@is.uec.ac.jp>] - report
4072
4073	* src/namazu.c: Modified command line option parsing codes
4074
40751999-05-14  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4076
4077	* src/mknmz.pl: Fixed lockfile related code (subtle problem)
4078
4079	* lib/html.pl: Modified parse_robots_txt a little bit
4080
40811999-05-07  Satoru Takabayashi <satoru-t@is.aist-nara.ac.jp>
4082
4083	* src/mknmz.pl.in: Fixed -F & -s option bug [namazu 647]
4084	  - [SHIOZAKI Takehiko <takehi-s@ascii.co.jp>] - report
4085