Branch: Tag:

1997-04-23

1997-04-23 20:11:49 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix

Rev: src/language.yacc:1.41

156:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.40 1997/04/23 04:14:30 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.41 1997/04/23 20:11:49 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
285:      %type <n> assoc_pair   %type <n> block + %type <n> failsafe_block   %type <n> block_or_semi   %type <n> break   %type <n> case
592:      func_args: '(' arguments ')' { $$=$2; }    | '(' error ')' { $$=0; yyerrok; } +  | error { $$=0; yyerrok; }    ;      arguments: /* empty */ optional_comma { $$=0; }
803:    }    ;    + failsafe_block: block +  | error { $$=0; } +  ; +  +    local_name_list: new_local_name    | local_name_list ',' new_local_name { $$=mknode(F_ARG_LIST,$1,$3); }    ;
845:    free_string(local_variables->current_return_type);    copy_shared_string(local_variables->current_return_type,any_type_string);    } -  func_args block +  func_args failsafe_block    {    struct pike_string *type;    char buf[40];