From 9250a60731ec97f0c920b8a4c78817e135fa5a5c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Mon, 20 Jul 1998 00:50:44 +0200
Subject: [PATCH] Improved and error message. Added some FIXME's.

Rev: src/las.c:1.64
---
 src/las.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/las.c b/src/las.c
index f8199bd4d3..aa7737e999 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.63 1998/06/06 03:27:25 hubbe Exp $");
+RCSID("$Id: las.c,v 1.64 1998/07/19 22:50:44 grubba Exp $");
 
 #include "language.h"
 #include "interpret.h"
@@ -609,18 +609,22 @@ void resolv_constant(node *n)
       break;
 
     case F_LOCAL:
+      /* FIXME: Ought to have the name of the identifier in the message. */
       yyerror("Expected constant, got local variable");
       push_int(0);
       return;
 
     case F_GLOBAL:
+      /* FIXME: Ought to have the name of the identifier in the message. */
       yyerror("Expected constant, got global variable");
       push_int(0);
       return;
 
     case F_UNDEFINED:
-      if(compiler_pass==2)
+      if(compiler_pass==2) {
+	/* FIXME: Ought to have the name of the identifier in the message. */
 	yyerror("Expected constant, got undefined identifier");
+      }
       push_int(0);
       return;
 
@@ -637,7 +641,7 @@ void resolv_constant(node *n)
       push_svalue(PROG_FROM_INT(p, numid)->constants +
 		  i->func.offset);
     }else{
-      yyerror("Identifier is not a constant");
+      my_yyerror("Identifier '%s' is not a constant", i->name->str);
       push_int(0);
     }
   }
-- 
GitLab