Branch: Tag:

2001-07-13

2001-07-13 14:40:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Minor change in line-number handling.

Rev: src/language.yacc:1.256

112:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.255 2001/07/02 20:09:17 mast Exp $"); + RCSID("$Id: language.yacc,v 1.256 2001/07/13 14:40:22 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2551:    }    '(' safe_comma_expr end_cond statement optional_else_part    { +  int i=lex.current_line; +  lex.current_line=$1;    $$=mknode('?',$5,mknode(':',$7,$8)); -  $$->line_number=$1; +     $$=mkcastnode(void_type_string, $$); -  $$->line_number=$1; +  lex.current_line = i;    pop_local_variables($<number>2);    Pike_compiler->compiler_frame->last_block_level=$<number>3;    }