Branch: Tag:

2009-08-18

2009-08-18 13:56:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added the MasterCodec.

Rev: src/builtin.cmod:1.232

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.231 2009/06/25 11:21:25 grubba Exp $ + || $Id: builtin.cmod,v 1.232 2009/08/18 13:56:10 grubba Exp $   */      #include "global.h"
4032:   /*! @endmodule    */    + /*! @class MasterCodec +  *! +  *! This codec is used when loading a dumped master. +  *! +  *! @seealso +  *! @[Codec] +  */ + PIKECLASS MasterCodec +  flags ID_PROTECTED; + { +  /*! 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(); +  } + } +    void init_builtin(void)   {    init_pike_list_node_blocks();