From 9c5b8b206a565ef92df1d17c00510be937d36467 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 5 Dec 2000 22:42:23 +0000 Subject: [PATCH] removed code and output duplication --- lib/dns/config/confparser.y.dirty | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/lib/dns/config/confparser.y.dirty b/lib/dns/config/confparser.y.dirty index a7a677c95f..95dc521843 100644 --- a/lib/dns/config/confparser.y.dirty +++ b/lib/dns/config/confparser.y.dirty @@ -33,7 +33,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: confparser.y.dirty,v 1.37 2000/12/05 22:19:35 bwelling Exp $ */ +/* $Id: confparser.y.dirty,v 1.38 2000/12/05 22:42:23 bwelling Exp $ */ #include @@ -6604,36 +6604,13 @@ yylex(void) res = 0; break; - case ISC_R_UNBALANCED: - parser_error(ISC_TRUE, - "%s: %lu: unbalanced parentheses", - isc_lex_getsourcename(mylexer), - isc_lex_getsourceline(mylexer)); - res = -1; - break; - case ISC_R_NOSPACE: - parser_error(ISC_TRUE, - "%s: %lu: token too big", - isc_lex_getsourcename(mylexer), - isc_lex_getsourceline(mylexer)); - res = -1; - break; - - case ISC_R_UNEXPECTEDEND: - parser_error(ISC_TRUE, - "%s: %lu: unexpected EOF", - isc_lex_getsourcename(mylexer), - isc_lex_getsourceline(mylexer)); + parser_error(ISC_TRUE, "token too big"); res = -1; break; default: - parser_error(ISC_TRUE, - "%s: %lu unknown lexer error (%d)", - isc_lex_getsourcename(mylexer), - isc_lex_getsourceline(mylexer), - (int)res); + parser_error(ISC_TRUE, "%s", isc_result_totext(res)); res = -1; break; }