From b69edec0732d5c02dfdcd078da2181d2c31c337e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 9 Apr 1998 13:38:28 -0700 Subject: [PATCH] better error messages (I hope) Rev: src/las.c:1.57 --- src/las.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/las.c b/src/las.c index f44dc28ea2..4943e92540 100644 --- a/src/las.c +++ b/src/las.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: las.c,v 1.56 1998/04/06 20:31:58 hubbe Exp $"); +RCSID("$Id: las.c,v 1.57 1998/04/09 20:38:28 hubbe Exp $"); #include "language.h" #include "interpret.h" @@ -610,6 +610,12 @@ void resolv_constant(node *n) push_int(0); return; + case F_UNDEFINED: + if(compiler_pass==2) + yyerror("Expected constant, got undefined identifier"); + push_int(0); + return; + default: yyerror("Expected constant, got something else"); push_int(0); -- GitLab