Branch: Tag:

2006-03-22

2006-03-22 20:01:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Backported fix for low_get_function_line() from Pike 7.7.

Rev: src/program.c:1.572

2:   || 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: program.c,v 1.571 2005/11/01 21:53:00 jonasw Exp $ + || $Id: program.c,v 1.572 2006/03/22 20:01:46 grubba Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.571 2005/11/01 21:53:00 jonasw Exp $"); + RCSID("$Id: program.c,v 1.572 2006/03/22 20:01:46 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
5946:    struct reference *idref = o->prog->identifier_references + fun;    struct program *p = PROG_FROM_PTR (o->prog, idref);    struct identifier *id = p->identifiers + idref->identifier_offset; +  if (IDENTIFIER_IS_PIKE_FUNCTION(id->identifier_flags))    return low_get_line (p->program + id->func.offset, p, linep); -  +  return low_get_program_line(o->prog, linep);    }    *linep = 0;    return NULL;