Branch: Tag:

1998-04-09

1998-04-09 20:38:28 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

better error messages (I hope)

Rev: src/las.c:1.57

4:   ||| 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:    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);