pike.git / src / program.c

version» Context lines:

pike.git/src/program.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: 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"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"
pike.git/src/program.c:5939:    return res;   }      PMOD_EXPORT struct pike_string *low_get_function_line (struct object *o,    int fun, INT32 *linep)   {    if (o->prog) {    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;   }      void va_yyerror(const char *fmt, va_list args)   {    char buf[8192];    VSNPRINTF (buf, sizeof (buf), fmt, args);    yyerror(buf);