Some updates.
[gedcom-parse.git] / ChangeLog
1 2002-12-07  Peter Verthez  <Peter.Verthez@advalvas.be>
2
3         * gedcom/gedcom.y: Pass complete concatenated text in end callback
4         (this causes a backward incompatibility in the end record callback!)
5
6 2002-12-04  Peter Verthez  <Peter.Verthez@advalvas.be>
7
8         * gedcom/write.c, gom/gom.c: Beginnings of write support.
9
10 2002-12-01  Peter Verthez  <Peter.Verthez@advalvas.be>
11
12         * gedcom/encoding.c (to_internal): Use the conv_buffer interface
13         from utf8/utf8-convert.c.
14
15 2002-11-30  Peter Verthez  <Peter.Verthez@advalvas.be>
16
17         * utf8/utf8-convert.c: More general conversion interface (extracted
18         from utf8-locale.c and gedcom/encoding.c).
19
20 2002-11-24  Peter Verthez  <Peter.Verthez@advalvas.be>
21
22         * gedcom/message.c: Extracted safe buffer mechanism to buffer.c
23         for reuse.
24
25 2002-11-22  Peter Verthez  <Peter.Verthez@advalvas.be>
26
27         * gom/gom_modify.c: Check whether given strings are valid.
28
29         * utf8/utf8.c: Functions for checking UTF-8 strings and computing
30         length.
31
32 2002-11-04  Peter Verthez  <Peter.Verthez@advalvas.be>
33
34         * gedcom/multilex.c, all: Use dgettext instead of gettext => no more
35         need of textdomain().
36
37 2002-11-03  Peter Verthez  <Peter.Verthez@advalvas.be>
38
39         * gedcom/multilex.c (gedcom_parse_file): Move setlocale call to
40         gedcom_init, make strdup of saved textdomain (to avoid corruption).
41
42         * all: Removed support for dmalloc (valgrind is much better and doesn't
43         require changing the sources).
44
45         * m4/gedcom.m4: Added m4 macro for configure.in support.
46
47 2002-11-01  Peter Verthez  <Peter.Verthez@advalvas.be>
48
49         * gedcom/gedcom_*.lex: A pointer with only one character between the
50         at signs is also valid.
51
52         * gedcom/xref.c (is_valid_pointer): New function (also checks for
53         maximum size).
54
55         * include/gom.h: Added links to the definitions in the Gedcom standard.
56
57         * all: update of documentation
58
59 2002-10-30  Peter Verthez  <Peter.Verthez@advalvas.be>
60
61         * gedcom/gedcom_lex_common.c, gedcom/multilex.c: Fix for line numbering
62         bug (bug 613480).
63
64 2002-10-28  Peter Verthez  <Peter.Verthez@advalvas.be>
65
66         * release 0.17.2
67           This is another test release
68
69 2002-10-27  Peter Verthez  <Peter.Verthez@advalvas.be>
70
71         * gedcom/Makefile.am: Put generated lex and yacc files also in dist.
72
73         * doc/Makefile.am: Put generated file gomxref.html also in dist (so
74         perl isn't needed at make-time).
75
76         * utf8/utf8-locale.c (convert_utf8_to_locale): Set conv_fails on total
77         conversion failure too.
78
79         * all: Further small portability fixes.
80
81 2002-10-26  Peter Verthez  <Peter.Verthez@advalvas.be>
82
83         * t/output/*: Reference output for the tests; compare the actual test
84         output to these files.
85
86 2002-10-23  Peter Verthez  <Peter.Verthez@advalvas.be>
87
88         * Makefile.inc: Portability fix: 'if ! diff ...' isn't always supported
89         by sh.
90
91         * include/Makefile.am: Portability fix: grep isn't always understanding
92         full regex syntax.
93
94         * utf8/Makefile.am, configure.in: Only link in libcharset if libiconv
95         is not used.
96
97 2002-10-21  Peter Verthez  <Peter.Verthez@advalvas.be>
98
99         * all: Further portability fixes to Makefile.am and such.
100
101 2002-10-20  Peter Verthez  <Peter.Verthez@advalvas.be>
102
103         * */Makefile.am: Fixes for using included gettext.
104
105         * intl/Makefile.in: Hack for generating libtool convenience library
106         instead of shared library.
107
108         * README: Modify at dist instead of via configure.in (GNU make is used
109         anyway).
110
111         * intl/*: Upgraded to gettext 0.10.38 (to have extra functions, such
112         as bind_textdomain_codeset).
113
114 2002-10-14  Peter Verthez  <Peter.Verthez@advalvas.be>
115
116         * gedcom/encoding.c (to_internal): Add ICONV_CONST for portability.
117
118         * utf8/utf8-locale.c: Add forgotten header string.h
119
120 2002-10-13  Peter Verthez  <Peter.Verthez@advalvas.be>
121
122         * Makefile: Require GNU make to be used -> normal makefile is then
123         GNUmakefile in top directory.
124
125         * README, doc/index.html: Generate from *.in via configure (for
126         portability).
127
128         * utf8/utf8-locale.c, utf8/libcharset/: Use locale_charset instead of
129         nl_langinfo directly, for portability.
130
131 2002-10-05  Peter Verthez  <Peter.Verthez@advalvas.be>
132
133         * release 0.17.1
134           This is a test release
135
136 2002-10-04  Peter Verthez  <Peter.Verthez@advalvas.be>
137
138         * iconv/libiconv/*: libiconv changes for ANSEL encoding.
139
140 2002-10-01  Peter Verthez  <Peter.Verthez@advalvas.be>
141
142         * ansel/ANSI_Z39.47.c: Fixes to ansel decoding and (mostly) encoding.
143
144 2002-09-28  Peter Verthez  <Peter.Verthez@advalvas.be>
145
146         * all: Portability fixes and support for libiconv.
147
148 2002-09-22  Peter Verthez  <Peter.Verthez@advalvas.be>
149
150         * gedcom/xref.c, include/gedcom.h.in: Added functions to retrieve, add,
151         link/unlink and delete cross-references.
152
153         * gedcom/gedcom_1byte.lex, gedcom/gedcom_lex_common.c: Added a function
154         to check whether a (UTF-8) string is a valid token; bypass iconv
155         conversion for this.
156
157         * gedcom/*: Fixed memory leaks reported by valgrind.
158
159 2002-09-21  Peter Verthez  <Peter.Verthez@advalvas.be>
160
161         * t/standalone.c: Close outfile *after* the last output is done...
162
163         * gedcom/gedcom_*.lex, gedcom/gedcom_lex_common.c: Workaround for
164         memory leak in flex.
165
166         * gedcom/encoding.c: Clean up environment at exit.
167
168 2002-09-15  Peter Verthez  <Peter.Verthez@advalvas.be>
169
170         * gedcom.h.in, gedcom/*, gom/*: Take care of const correctness.
171
172 2002-09-13  Peter Verthez  <Peter.Verthez@advalvas.be>
173
174         * include/gom.h: Add include file to be able to recognize __BEGIN_DECLS
175
176         * doc/make_gom_xref: Corrected 'Generated from' string.
177
178 2002-09-12  Peter Verthez  <Peter.Verthez@advalvas.be>
179
180         * release 0.17
181
182         * gedcom/gedcom_lex_common.c, gedcom/interface.c, gedcom/message.c:
183         Fixes for internationalization.
184
185         * doc/make_gom_xref, doc/usage.html: Documentation for the gedcom
186         object model.
187
188 2002-09-09  Peter Verthez  <Peter.Verthez@advalvas.be>
189
190         * gom/*: First check-in of gedcom object model.
191
192 2002-09-08  Peter Verthez  <Peter.Verthez@advalvas.be>
193
194         * all: More thorough error checking on library calls.
195
196 2002-09-01  Peter Verthez  <Peter.Verthez@advalvas.be>
197
198         * gedcom/gedcom.y: Use XREF_ANY for an association instead of XREF_INDI
199
200         * include/gedcom.h.in, gedcom/xref.c: Added XREF_ANY for when type of
201         xref_value is not known yet.  Added function gedcom_get_by_xref.
202
203 2002-08-28  Peter Verthez  <Peter.Verthez@advalvas.be>
204
205         * gedcom/interface.c: A little more checking (for duplicate
206         registration).
207
208         * gedcom/age.c, gedcom/age.h, gedcom/gedcom.y, include/gedcom.h,
209         t/standalone.c:
210         Parsing age values.
211
212 2002-08-25  Peter Verthez  <Peter.Verthez@advalvas.be>
213
214         * gedcom/xref.c: Clean up xref table at exit (not after check), or when
215         new file is parsed.
216
217         * include/gedcom.h.in, gedcom/interface.c, t/standalone.c: Added
218         extra argument to callback functions: the record/element identifier.
219
220 2002-08-16  Peter Verthez  <Peter.Verthez@advalvas.be>
221
222         * gedcom/compat.*, gedcom/gedcom.y: Moved all compatibility handling
223         functions to compat.c; let default charset depend on the program.
224
225         * t/test_script: Check for a core file.
226
227         * release 0.16
228
229         * t/dates.test, t/encoding_error.test: New tests.
230
231         * t/utf8-locale.c: Remove conversion warning at compilation.
232
233         * t/test_script: Enhancements to use script outside 'make check'.
234
235         * t/standalone.c, t/bogus.test: Parse bogus file only if enabled
236         via option.
237
238         * t/Makefile.am: Added rule to be able to perform single tests.
239
240         * gedcom/encoding.c, gedcom/gedcom_lex_common.c: Handle illegal
241         characters in to_internal (to avoid crashes).
242
243         * Lots of files: Add compability for Lifelines.
244
245         * Makefile.inc, gedcom/Makefile.am, gedcom/gedcom_lex_common.c,
246         gedcom/gedcom_date.lex:
247         Added rule that can help to avoid unnecessary recompilation of lex
248         files.  It generates a new include file only when necessary: use this
249         one in lex files.
250
251 2002-04-08  Peter Verthez  <Peter.Verthez@advalvas.be>
252
253         * t/minimal.test: Added test on a minimal GEDCOM file.
254
255 2002-03-27  Peter Verthez  <Peter.Verthez@advalvas.be>
256
257         * release 0.15
258
259         * gedcom/multilex.c: Make the use of gedcom_init() mandatory.
260
261 2002-03-17  Peter Verthez  <Peter.Verthez@advalvas.be>
262
263         * gedcom/gedcom.y: Graceful error handling on bogus input.
264
265         * t/path1.test, t/path2.test, t/pathtest.c: New tests (for the
266         GCONV_PATH environment variable).
267
268         * Moved the test program to the t subdirectory.
269
270         * standalone.c, doc/usage.html: Use of the gedcom_init() function.
271
272         * gedcom/multilex.c, gedcom/encoding.*: Added gedcom_init() function
273         to avoid problem with GCONV_PATH environment variable (see note in
274         gedcom/encoding.c).
275
276 2002-01-22  Peter Verthez  <Peter.Verthez@advalvas.be>
277
278         * gedcom/gedcom.y, gedcom/compat.c, gedcom/compat.h: Added
279         compatibility handling for ftree.
280
281 2002-01-20  Peter Verthez  <Peter.Verthez@advalvas.be>
282
283         * release 0.14
284
285         * restructured the test setup
286
287 2002-01-19  Peter Verthez  <Peter.Verthez@advalvas.be>
288
289         * gedcom.h: Renamed to gedcom.h.in: at configure, the VERSION
290         variables are substituted and the file gedcom.h is written
291
292         * utf8-locale.c: Added parameter to conversion from UTF-8 to locale,
293         to return number of conversion failures.
294
295 2002-01-16  Peter Verthez  <Peter.Verthez@advalvas.be>
296
297         * gedcom/xref.c: Make sure that the 'string' member of an xref always
298         contains a valid string.
299
300         * gedcom/gedcom.y: in use of INVALID_TAG: tag is struct instead of
301         simple string.
302
303         * gedcom/multilex.c (gedcom_parse_file): setlocale returns a string
304         in static storage, so must use strdup and free afterwards.
305
306 2002-01-15  Peter Verthez  <Peter.Verthez@advalvas.be>
307
308         * gedcom/encoding.c: Separate the modification of GCONV_PATH from the
309         rest of the initialization, and let it be called before main (necessary
310         because iconv_open will only look at GCONV_PATH once, and e.g. GTK
311         calls iconv_open very early).
312
313         * gedcom/gedcom.y: Don't allow the parser to continue if the conversion
314         context couldn't be opened, even if IGNORE_ERRORS.
315
316         * gedcom/multilex.c (gedcom_parse_file): Save the old locale (in case
317         the application had set it).
318
319 2002-01-13  Peter Verthez  <Peter.Verthez@advalvas.be>
320
321         * utf8-locale.c: Example implementation for conversion UTF-8 to
322         locale.
323
324 2002-01-12  Peter Verthez  <Peter.Verthez@advalvas.be>
325
326         * more documentation...
327
328 2002-01-10  Peter Verthez  <Peter.Verthez@advalvas.be>
329
330         * doc/parser.html: Start of character set explanation.
331
332         * enhancements to Makefiles for documentation.
333
334         * gedcom/Makefile.am, gedcom/gedcom_lex_common.c: Some bugfixes for the
335         standalone lexers.
336
337 2002-01-05  Peter Verthez  <Peter.Verthez@advalvas.be>
338
339         * release 0.13
340
341         * xref.*, gedcom.y, gedcom.h: Parse and process cross-references.
342
343         * encoding.c: Bugfixes in using the hash implementation of kazlib.
344
345         * interface.h: Add a variable to the GEDCOM_MAKE_* macros, to be able
346         to have two of these macros in one statement.  Move GEDCOM_MAKE_DATE
347         to date.h.
348
349 2002-01-03  Peter Verthez  <Peter.Verthez@advalvas.be>
350
351         * gedcom.y: Bugfix for context handling of tags that are grouped in
352         the yacc file.
353
354         * gedcom.y, gedcom.h, standalone.c, interface.*: Record can also
355         have a value (e.g. the NOTE record), so extra value necessary on
356         start record callback.
357
358         * gedcom.y: Correct value of NOTE element (opt_line_item was missing
359         an action).
360
361 2002-01-02  Peter Verthez  <Peter.Verthez@advalvas.be>
362
363         * lots of files: Pass the parsed tag value (integer) together with
364         the string value in the callbacks.  For this, a separate header is
365         auto-generated, containing the #defines from bison.
366
367         * t/test_script: Return exit code from testgedcom.
368
369         * gedcom/hash.*, gedcom/encoding.*: Use hash implementation from
370         kazlib (see AUTHORS for pointer).
371
372 2001-12-31  Peter Verthez  <Peter.Verthez@advalvas.be>
373
374         * release 0.12
375
376 2001-12-30  Peter Verthez  <Peter.Verthez@advalvas.be>
377
378         * all: Added some initial documentation.
379
380         * gedcom/gedcom.y: Completed the calling of callbacks.
381
382 2001-12-29  Peter Verthez  <Peter.Verthez@advalvas.be>
383
384         * gedcom/gedcom_date.y: Added graceful fallback for date parse errors:
385         put everything as a 'date phrase'.
386
387 2001-12-28  Peter Verthez  <Peter.Verthez@advalvas.be>
388
389         * gedcom_date.*, date.*: Parsing dates via a separate yacc parser.
390
391         * gedcom/calendar/*: Calendar routines by Scott E. Lee
392
393         * gedcom.y: Added some more callbacks (not complete yet)
394
395 2001-12-23  Peter Verthez  <Peter.Verthez@advalvas.be>
396
397         * include/gedcom.h: Add some declarations so that the external header
398         can be used in C++ programs.
399
400 2001-12-22  Peter Verthez  <Peter.Verthez@advalvas.be>
401
402         * Makefile.am, gedcom/Makefile.am: Don't link libgedcom with libintl:
403         leave that to the applications.
404
405 2001-12-15  Peter Verthez  <Peter.Verthez@advalvas.be>
406
407         * release 0.11
408         Moved CVS repository to sourceforge.net (project gedcom-parse)
409
410 2001-12-10  Peter Verthez  <Peter.Verthez@advalvas.be>
411
412         * all: Use of gettext.
413
414         * gedcom/Makefile.am: Support for the lexer test programs.
415
416         * all: Moved to LGPL license.
417
418 2001-12-09  Peter Verthez  <Peter.Verthez@advalvas.be>
419
420         * gedcom/encoding.c (init_encodings): Put data directory of libgedcom
421         in the GCONV_PATH environment variable (for the ANSEL encoding).
422
423         * release 0.10
424
425         * all: Full move to autoconf/automake.
426
427 2001-12-08  Peter Verthez  <Peter.Verthez@advalvas.be>
428
429         * all: Further specification of interface: message handler.
430         Start of specification of callbacks.
431
432 2001-12-03  Peter Verthez  <Peter.Verthez@advalvas.be>
433
434         * Uploaded release 0.9 to genes at SourceForge.
435
436 2001-12-02  Peter Verthez  <Peter.Verthez@advalvas.be>
437
438         * release 0.9
439
440         * gedcom.h, Makefile: Add dmalloc testability.
441
442         * all: Reset the state properly for parsing new files.
443
444         * release 0.8
445
446         * encoding.c: Specify explicitly the output buffer for to_internal:
447         used to put pointers and tags in different output buffer.
448
449         * gedcom_lex_common.c: New file containing all lex actions (is common
450           for all lexers).  Better checks for maximum lengths.
451
452 2001-12-01  Peter Verthez  <Peter.Verthez@advalvas.be>
453
454         * gedcom_*.lex: Return level number together with OPEN token.
455
456 2001-11-27  Peter Verthez  <Peter.Verthez@advalvas.be>
457
458         * gedcom.enc: Adapt default iconv encoding names (to also support
459         glibc-2.1.x).
460
461 2001-11-25  Peter Verthez  <Peter.Verthez@advalvas.be>
462
463         * all: added proper copyright notice (copyright to the Genes
464         Development Team)
465
466         * release 0.7
467           Uploaded to genes at SourceForge.
468
469         * all: general cleanup, making sure everything is in CVS
470
471 2001-11-24  Peter Verthez  <Peter.Verthez@advalvas.be>
472
473         * release 0.6
474
475         * ANSEL decoding added.
476
477 2001-11-23  Peter Verthez  <Peter.Verthez@advalvas.be>
478
479         * release 0.5
480
481         * Now with encoding mapping via configuration file.
482
483 2001-11-16  Peter Verthez  <Peter.Verthez@advalvas.be>
484
485         * release 0.4
486
487         * Now with full unicode support.
488
489 2001-11-04  Peter Verthez  <Peter.Verthez@advalvas.be>
490
491         * release 0.3
492
493         * Compatibility mode implemented.
494
495 2001-11-01  Peter Verthez  <Peter.Verthez@advalvas.be>
496
497         * release 0.2
498
499         * Now with full error handling of tags and subtags.
500
501         * release 0.1
502
503         * Now covering the entire GEDCOM spec, without error handling.
504