pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: interpret.c,v 1.334 2003/10/01 15:07:00 grubba Exp $ + || $Id: interpret.c,v 1.335 2003/10/20 13:11:22 mast Exp $   */      #include "global.h" - RCSID("$Id: interpret.c,v 1.334 2003/10/01 15:07:00 grubba Exp $"); + RCSID("$Id: interpret.c,v 1.335 2003/10/20 13:11:22 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:2379: Inside #if defined(PIKE_THREADS)
   f = ts->state.frame_pointer;    else    f = Pike_fp;   #else    f = Pike_fp;   #endif       for (of = 0; f; f = (of = f)->next)    if (f->refs) {    int args, i; -  struct pike_string *file = NULL; +  char *file = NULL;    INT32 line;       if (f->context.prog) {    if (f->pc) -  file = get_line (f->pc, f->context.prog, &line); +  file = low_get_line_plain (f->pc, f->context.prog, &line, 0);    else -  file = get_program_line (f->context.prog, &line); +  file = low_get_program_line_plain (f->context.prog, &line, 0);    } -  if (file) { -  fprintf (stderr, "%s:%d: ", file->str, line); -  free_string(file); -  } else +  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 (safe_idname_from_int(f->current_object->prog, f->fun), stderr);    fputc ('(', stderr);    }    else    fputs ("unknown function(", stderr);   
pike.git/src/interpret.c:2500:    fputs (arg->u.efun->name->str, stderr);    else if(arg->u.object->prog)    fputs (safe_idname_from_int(arg->u.object->prog,arg->subtype), stderr);    else    fputc ('0', stderr);    break;       case T_OBJECT: {    struct program *p = arg->u.object->prog;    if (p && p->num_linenumbers) { -  file = get_program_line (p, &line); -  fprintf (stderr, "object(%s:%d)", file->str, line); -  free_string(file); +  file = low_get_program_line_plain (p, &line, 0); +  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_program_line (p, &line); +  file = low_get_program_line_plain (p, &line, 0);    fprintf (stderr, "program(%s:%d)", file->str, line); -  free_string(file); +     }    else    fputs ("program", stderr);    break;    }       case T_FLOAT:    fprintf (stderr, "%f",(double) arg->u.float_number);    break;