Branch: Tag:

2000-09-05

2000-09-05 19:33:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now allows prototypes with multiple unnamed arguments again.
Fixes [Bug 202].

Rev: src/language.yacc:1.211

110:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.210 2000/09/05 02:18:12 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.211 2000/09/05 19:33:24 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
3315:    struct pike_string *type,    node *def)   { +  if (str->len) {    int tmp=islocal(str);    if(tmp >= frame->last_block_level)    {    if(str->size_shift) -  my_yyerror("Duplicate local variable, previous declaration on line %d\n", +  my_yyerror("Duplicate local variable, " +  "previous declaration on line %d\n",    frame->variable[tmp].line);    else -  my_yyerror("Duplicate local variable '%s', previous declaration on line %d\n",STR0(str),frame->variable[tmp].line); +  my_yyerror("Duplicate local variable '%s', " +  "previous declaration on line %d\n", +  STR0(str), frame->variable[tmp].line);    } -  +  }       debug_malloc_touch(def);    debug_malloc_touch(type);