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.599 2005/12/31 15:03:57 nilsson Exp $ + || $Id: program.c,v 1.600 2006/03/22 19:59:41 grubba Exp $   */      #include "global.h"   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "lex.h"
pike.git/src/program.c:6058:    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)   {    struct string_builder s;    struct pike_string *tmp;    init_string_builder(&s, 0);