Branch: Tag:

1997-04-20

1997-04-20 19:29:24 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

modifiers for class fixed

Rev: src/language.yacc:1.37

157:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.36 1997/04/08 21:14:38 kg Exp $"); + RCSID("$Id: language.yacc,v 1.37 1997/04/20 19:29:24 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
881:    }    ;    - class: F_CLASS optional_identifier '{' + class: modifiers F_CLASS optional_identifier '{'    {    start_new_program();    }
898:    s.type=T_PROGRAM;    s.subtype=0;    } -  if($2) +  if($3)    { -  add_constant($2, &s, 0); -  free_string($2); +  add_constant($3, &s, $1); +  free_string($3);    }    $$=mksvaluenode(&s);    free_svalue(&s);