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