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