Branch: Tag:

2001-06-30

2001-06-30 02:56:17 by Martin Stjernholm <mast@lysator.liu.se>

Fixed problem where line numbers in functions got wrong if the input string
didn't contain any line number directives.

Rev: src/program.c:1.337

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.336 2001/06/30 02:02:42 mast Exp $"); + RCSID("$Id: program.c,v 1.337 2001/06/30 02:56:17 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
4116:    p=0;    Pike_compiler->compiler_pass=2;    lex.pos=prog->str; +  lex.current_line=1; +  free_string(lex.current_file); +  lex.current_file=make_shared_string("-");       use_module(Pike_sp-1);