pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-03-17
1999-03-17 21:51:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
bcd5743ada3818585070fe676bfc7f53d31ae8e2 (
22
lines) (+
15
/-
7
)
[
Show
|
Annotate
]
Branch:
7.9
bugfix in inherit
Rev: src/program.c:1.118
Rev: src/program.h:1.53
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: program.c,v 1.
117
1999/03/
15
08
:
24
:
01
hubbe Exp $");
+
RCSID("$Id: program.c,v 1.
118
1999/03/
17
21
:
51
:
57
hubbe Exp $");
#include "program.h" #include "object.h" #include "dynamic_buffer.h"
614:
add_ref(compiler_frame->current_return_type=void_type_string); #ifdef PIKE_DEBUG
-
if(lex.current_file)
-
store_linenumber(last_pc, lex.current_file);
+
#endif }
-
void start_new_program(
void
)
+
void
debug_
start_new_program(
PROGRAM_LINE_ARGS
)
{ /* fprintf(stderr, "start_new_program(): threads_disabled:%d, compilation_depth:%d\n", threads_disabled, compilation_depth); */ low_start_new_program(0,0,0);
-
+
#ifdef PIKE_DEBUG
+
{
+
struct pike_string *s=make_shared_string(file);
+
store_linenumber(line,s);
+
free_string(s);
}
-
+
#endif
+
}
void really_free_program(struct program *p)
1229:
} }else{ inherit.parent_offset+=parent_offset;
+
inherit.parent_identifier=parent_identifier;
} }else{ if(parent && parent->next != parent && inherit.parent_offset)
1258:
} inherit.parent=par;
-
inherit.parent_identifier=pid;
+
inherit.parent_offset=0; }else{ inherit.parent_offset+=parent_offset;
1376:
low_inherit(p, 0,
-
0
,
+
numid
,
n->u.integer.a, flags, name);
2380:
lex.current_file=make_shared_string("-"); lex.pragmas=0;
-
start_new_program();
+
low_
start_new_program(
0,0,0
);
+
if(lex.current_file)
+
store_linenumber(last_pc, lex.current_file);
compilation_depth=0; /* start_line_numbering(); */