Branch: Tag:

1998-01-19

1998-01-19 18:38:46 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

fixed better error messages and a bug in forward declaring (no longer needed)

Rev: src/language.yacc:1.52
Rev: src/las.c:1.42
Rev: src/stralloc.c:1.22

4:   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: las.c,v 1.41 1998/01/15 05:59:41 hubbe Exp $"); + RCSID("$Id: las.c,v 1.42 1998/01/19 18:38:46 hubbe Exp $");      #include "language.h"   #include "interpret.h"
1285:    break;       case F_CONSTANT: +  switch(CAR(n)->u.sval.type) +  { +  case T_FUNCTION: +  name=ID_FROM_INT(CAR(n)->u.sval.u.object->prog, +  CAR(n)->u.sval.subtype)->name->str; +  break; +  +  case T_ARRAY: +  name="array call"; +  break; +  +  case T_PROGRAM: +  name="clone call"; +  break; +     default:    name="`() (function call)"; -  +  break;    }    -  +  default: +  name="unknown function"; +  } +     if(max_correct_args == count_arguments(s))    {    my_yyerror("To few arguments to %s.\n",name);