From 45f993293251a094281b8c60ab4c5e2ba8ed6bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 28 Apr 1998 17:21:13 -0700 Subject: [PATCH] line numbers should now be back on track again Rev: src/program.c:1.89 --- src/program.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/program.c b/src/program.c index b58a83e98c..70152d3dfc 100644 --- a/src/program.c +++ b/src/program.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: program.c,v 1.88 1998/04/27 19:41:09 grubba Exp $"); +RCSID("$Id: program.c,v 1.89 1998/04/29 00:21:13 hubbe Exp $"); #include "program.h" #include "object.h" #include "dynamic_buffer.h" @@ -598,8 +598,11 @@ void low_start_new_program(struct program *p, num_parse_error=0; push_compiler_frame(); + +#ifdef DEBUG if(lex.current_file) - store_linenumber(lex.current_line, lex.current_file); + store_linenumber(last_pc, lex.current_file); +#endif } void start_new_program(void) @@ -2073,7 +2076,9 @@ char *get_line(unsigned char *pc,struct program *prog,INT32 *linep) return "Optimizer"; } +#if 0 if(prog->id != pid || offset < off) +#endif { cnt=prog->linenumbers; off=line=0; @@ -2159,7 +2164,7 @@ struct program *compile(struct pike_string *prog) start_new_program(); compilation_depth=0; - start_line_numbering(); +/* start_line_numbering(); */ compiler_pass=1; lex.pos=prog->str; -- GitLab