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