Branch: Tag:

2001-06-30

2001-06-30 02:56:14 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.298

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.297 2001/06/14 16:13:36 grubba Exp $"); + RCSID("$Id: program.c,v 1.298 2001/06/30 02:56:14 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
3404:    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);