Branch: Tag:

2001-02-20

2001-02-20 15:59:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Made push_type_int{,_backwards}() static.
Introduced push_int_type() and push_object_type{,_backwards}().

Rev: src/builtin_functions.c:1.344
Rev: src/encode.c:1.82
Rev: src/language.yacc:1.225
Rev: src/operators.c:1.125
Rev: src/pike_types.c:1.148
Rev: src/pike_types.h:1.49
Rev: src/svalue.c:1.94

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.343 2001/02/20 00:08:19 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.344 2001/02/20 15:59:48 grubba Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
2069:   {    free_type(n->type);    type_stack_mark(); -  push_type_int(Pike_compiler->new_program->id); -  /* push_type(1); We are rather sure that we contain ourselves... */ -  push_type(0); /* But it did not work yet, so... */ -  push_type(T_OBJECT); +  +  /* We are rather sure that we contain ourselves... */ +  /* push_object_type(1, Pike_compiler->new_program->id); */ +  /* But it did not work yet, so... */ +  push_object_type(0, Pike_compiler->new_program->id);    n->type = pop_unfinished_type();    if (n->parent) {    n->parent->node_info |= OPT_TYPE_NOT_FIXED;