pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || 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: builtin.cmod,v 1.229 2009/06/24 11:35:46 grubba Exp $ + || $Id: builtin.cmod,v 1.230 2009/06/25 11:17:39 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin.cmod:1500:    gc_trivial;    {    if (THIS->filename) {    free_string(THIS->filename);    THIS->filename = NULL;    }    THIS->pc = NULL;    THIS->lineno = -1;    }    -  PIKEFUN mixed `fun() +  /* NOTE: Use old-style getter/setter syntax for compatibility with +  * old Parser.Pike.split() used by precompile.pike. +  */ +  +  PIKEFUN mixed `->fun()    {    push_svalue(&THIS->_fun);    }    -  PIKEFUN void `fun=(mixed val) +  PIKEFUN void `->=fun(mixed val)    {    /* FIXME: Should we allow this at all?    * Linenumber info etc won't match.    */   #ifdef PIKE_DEBUG    if ((val->type == T_FUNCTION) && (val->subtype != FUNCTION_BUILTIN)) {    assign_short_svalue((union anything *)&THIS->oprog,    (union anything *)&val->u.object->prog, T_PROGRAM);    }   #endif