dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ff55f
)
Implement a message handler for the LEXER_TEST programs.
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Mon, 10 Dec 2001 19:59:06 +0000
(19:59 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Mon, 10 Dec 2001 19:59:06 +0000
(19:59 +0000)
gedcom/gedcom_lex_common.c
patch
|
blob
|
history
diff --git
a/gedcom/gedcom_lex_common.c
b/gedcom/gedcom_lex_common.c
index f9fa955d5216a3240377ba3b39625d7038963bce..d528b02cbe83bf6e3086df8e4f2d3539928439c5 100644
(file)
--- a/
gedcom/gedcom_lex_common.c
+++ b/
gedcom/gedcom_lex_common.c
@@
-46,11
+46,17
@@
int line_no = 1;
int gedcom_lex();
+void message_handler(Gedcom_msg_type type, char *msg)
+{
+ fprintf(stderr, msg);
+}
+
int test_loop(ENCODING enc, char* code)
{
int tok, res;
init_encodings();
set_encoding_width(enc);
+ gedcom_set_message_handler(message_handler);
res = open_conv_to_internal(code);
if (!res) {
gedcom_error("Unable to open conversion context: %s",