avoid a crash in directives

This commit is contained in:
ceriel 1990-04-24 14:07:07 +00:00
parent 536b12010f
commit 8fe53f501f

View file

@ -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) ) {