pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.208 2001/06/23 10:33:11 hubbe Exp $"); + RCSID("$Id: interpret.c,v 1.209 2001/06/30 02:02:42 mast Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "pike_error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:1808:    for (of = 0; f; f = (of = f)->next)    if (f->refs) {    int args, i;    char *file = 0;    INT32 line;       if (f->context.prog) {    if (f->pc)    file = get_line (f->pc, f->context.prog, &line);    else -  file = get_line (f->context.prog->program, f->context.prog, &line); +  file = get_program_line (f->context.prog, &line);    }    if (file)    fprintf (stderr, "%s:%d: ", file, line);    else    fputs ("unknown program: ", stderr);       if (f->current_object && f->current_object->prog) {    /* FIXME: Wide string identifiers. */    fputs (ID_FROM_INT (f->current_object->prog, f->fun)->name->str, stderr);    fputc ('(', stderr);
pike.git/src/interpret.c:1929:    fputs (arg->u.efun->name->str, stderr);    else if(arg->u.object->prog)    fputs (ID_FROM_INT(arg->u.object->prog,arg->subtype)->name->str, stderr);    else    fputc ('0', stderr);    break;       case T_OBJECT: {    struct program *p = arg->u.object->prog;    if (p && p->num_linenumbers) { -  file = get_line (p->program, p, &line); +  file = get_program_line (p, &line);    fprintf (stderr, "object(%s:%d)", file, line);    }    else    fputs ("object", stderr);    break;    }       case T_PROGRAM: {    struct program *p = arg->u.program;    if (p->num_linenumbers) { -  file = get_line (p->program, p, &line); +  file = get_program_line (p, &line);    fprintf (stderr, "program(%s:%d)", file, line);    }    else    fputs ("program", stderr);    break;    }       case T_FLOAT:    fprintf (stderr, "%f",(double) arg->u.float_number);    break;