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.233 2009/08/19 08:51:23 grubba Exp $ + || $Id: builtin.cmod,v 1.234 2009/08/19 18:32:03 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:4030:    */      /*! @endmodule    */      /*! @module Pike    */      /*! @class MasterCodec    *! -  *! This codec is used when loading a dumped master. +  *! This is a bare-bones codec that is used when loading a dumped master.    *!    *! @seealso    *! @[Codec]    */   PIKECLASS MasterCodec    flags ID_PROTECTED;   {    /*! @decl mixed functionof(mixed symbol)    *! Look up a function in @[all_constants()].    */    PIKEFUN mixed functionof(mixed symbol)    {    mapping_index_no_free(Pike_sp, get_builtin_constants(), symbol);    Pike_sp++;    stack_pop_keep_top();    } -  +  /*! @decl mixed objectof(mixed symbol) +  *! Look up an object in @[all_constants()]. +  */ +  PIKEFUN mixed objectof(mixed symbol) +  { +  mapping_index_no_free(Pike_sp, get_builtin_constants(), symbol); +  Pike_sp++; +  stack_pop_keep_top();    } -  +  /*! @decl mixed programof(mixed symbol) +  *! Look up a program in @[all_constants()]. +  */ +  PIKEFUN mixed programof(mixed symbol) +  { +  mapping_index_no_free(Pike_sp, get_builtin_constants(), symbol); +  Pike_sp++; +  stack_pop_keep_top(); +  } + }      /*! @endclass    */      /*! @endmodule    */      void init_builtin(void)   {    init_pike_list_node_blocks();