pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*\   ||| This file is part of Pike. For copyright information see COPYRIGHT.   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.286 2002/05/10 23:52:34 nilsson Exp $"); + RCSID("$Id: las.c,v 1.287 2002/05/12 00:27:46 mast Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:2420:    low_print_tree(_CDDR(foo),0);    } else {    fprintf(stderr, "0:0");    }    fprintf(stderr, ")");    break;       case F_IDENTIFIER:    if(needlval) fputc('&', stderr);    if (Pike_compiler->new_program) { -  fprintf(stderr, "%s",ID_FROM_INT(Pike_compiler->new_program, foo->u.id.number)->name->str); +  fprintf(stderr, "id(%s)",ID_FROM_INT(Pike_compiler->new_program, foo->u.id.number)->name->str);    } else {    fprintf(stderr, "unknown identifier");    }    break;       case F_EXTERNAL:    if(needlval) fputc('&', stderr);    {    struct program_state *state = Pike_compiler; -  char *name = "external"; +  char *name = "?";    int program_id = foo->u.integer.a; -  +  int level = 0;    while(state && (state->new_program->id != program_id)) {    state = state->previous; -  +  level++;    }    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); +  fprintf(stderr, "ext(%d:%s)", level, name);    }    break;       case F_TRAMPOLINE:    if (Pike_compiler->new_program) {    fprintf(stderr, "trampoline<%s>",    ID_FROM_INT(Pike_compiler->new_program, foo->u.trampoline.ident)->name->str);    } else {    fprintf(stderr, "trampoline<unknown identifier>");    }
pike.git/src/las.c:2537:    if(_CAR(foo) && _CDR(foo)) fputc(',', stderr);    low_print_tree(_CDR(foo),1);    return;       case F_CONSTANT:    {    char *s;    init_buf();    describe_svalue(& foo->u.sval, 0, 0);    s=simple_free_buf(); -  fprintf(stderr, "%s",s); +  fprintf(stderr, "const(%s)",s);    free(s);    break;    }       case F_VAL_LVAL:    low_print_tree(_CAR(foo),0);    fprintf(stderr, ",&");    low_print_tree(_CDR(foo),0);    return;