From 8fe53f501f23fbb9ee7d5716eadbdff575f97188 Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 24 Apr 1990 14:07:07 +0000 Subject: [PATCH] avoid a crash in directives --- lang/pc/comp/def.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) ) { -- 2.34.1