Branch: Tag:

2000-08-27

2000-08-27 14:29:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

print_tree() now knows about external nodes.

Rev: src/las.c:1.194

5:   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.193 2000/08/27 12:57:06 grubba Exp $"); + RCSID("$Id: las.c,v 1.194 2000/08/27 14:29:09 grubba Exp $");      #include "language.h"   #include "interpret.h"
1739:    }    break;    +  case F_EXTERNAL: +  if(needlval) fputc('&', stderr); +  { +  struct program_state *state = Pike_compiler; +  char *name = "external"; +  int program_id = foo->u.integer.a; +  while(state && (state->new_program->id != program_id)) { +  state = state->previous; +  } +  if (state) { +  int id_no = foo->u.integer.b; +  struct identifier *id = ID_FROM_INT(state->new_program, id_no); +  if (id && id->name) { +  name = id->name->str; +  } +  } +  fprintf(stderr, "%s", name); +  } +  break; +     case F_TRAMPOLINE:    if (Pike_compiler->new_program) {    fprintf(stderr, "trampoline<%s>",