From 61ebfe7d27af78ad4c51e9da470433acd5c15bea Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Thu, 10 Jan 2002 17:39:54 +0000 Subject: [PATCH] Some bugfixes for the standalone lexers. --- gedcom/Makefile.am | 6 +++--- gedcom/gedcom_lex_common.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am index 1081476..fb1ac39 100644 --- a/gedcom/Makefile.am +++ b/gedcom/Makefile.am @@ -77,11 +77,11 @@ lex.gedcom_date_.c: gedcom_date.tab.h EXTRA_PROGRAMS = lexer_1byte lexer_hilo lexer_lohi lexer_1byte_SOURCES = -lexer_1byte_LDADD = lex.gedcom_1byte_.test.o message.o encoding.o +lexer_1byte_LDADD = lex.gedcom_1byte_.test.o message.o encoding.o hash.o lexer_hilo_SOURCES = -lexer_hilo_LDADD = lex.gedcom_hilo_.test.o message.o encoding.o +lexer_hilo_LDADD = lex.gedcom_hilo_.test.o message.o encoding.o hash.o lexer_lohi_SOURCES = -lexer_lohi_LDADD = lex.gedcom_lohi_.test.o message.o encoding.o +lexer_lohi_LDADD = lex.gedcom_lohi_.test.o message.o encoding.o hash.o lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@ diff --git a/gedcom/gedcom_lex_common.c b/gedcom/gedcom_lex_common.c index 8e83d04..9e53de5 100644 --- a/gedcom/gedcom_lex_common.c +++ b/gedcom/gedcom_lex_common.c @@ -48,7 +48,7 @@ int gedcom_lex(); void message_handler(Gedcom_msg_type type, char *msg) { - fprintf(stderr, msg); + fprintf(stderr, "(%d) %s\n", type, msg); } int test_loop(ENCODING enc, char* code) -- 2.30.2