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