Branch: Tag:

2009-08-19

2009-08-19 18:32:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added some more functions to MasterCodec.

Rev: src/builtin.cmod:1.234

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: 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"
4037:      /*! @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]
4054:    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    */