From: ceriel Date: Tue, 24 Apr 1990 14:07:07 +0000 (+0000) Subject: avoid a crash in directives X-Git-Tag: release-5-5~1725 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8fe53f501f23fbb9ee7d5716eadbdff575f97188;p=ack.git avoid a crash in directives --- diff --git a/lang/pc/comp/def.c b/lang/pc/comp/def.c index 861acc914..d1f3e9a28 100644 --- a/lang/pc/comp/def.c +++ b/lang/pc/comp/def.c @@ -142,8 +142,9 @@ DoDirective(directive, nd, tp, scl, function) break; default: - crash("(DoDirective)"); - /* NOTREACHED */ + node_error(nd, "\"%s\" unknown directive", + directive->id_text); + return; } if( df = define(nd->nd_IDF, CurrentScope, kind) ) {