Skip to content
Snippets Groups Projects
Commit 29a20a26 authored by Martin Nilsson's avatar Martin Nilsson
Browse files

#pragma strict_types

Rev: lib/modules/Mapping.pmod:1.2
Rev: lib/modules/Multiset.pmod:1.2
Rev: lib/modules/Pike.pmod:1.8
Rev: lib/modules/Program.pmod:1.5
Rev: lib/modules/System.pmod:1.8
Rev: lib/modules/__builtin.pmod:1.4
Rev: lib/modules/__builtin_dirnode.pmod:1.2
parent 01923e8a
Branches
Tags
No related merge requests found
#pike __REAL_VERSION__
#pragma strict_types
constant delete=m_delete;
constant Iterator = __builtin.mapping_iterator;
......
#pike __REAL_VERSION__
#pragma strict_types
//constant delete=m_delete;
constant Iterator = __builtin.multiset_iterator;
......
#pike __REAL_VERSION__
#pragma strict_types
// Pike core things that don't belong anywhere else.
//
// $Id: Pike.pmod,v 1.7 2003/01/13 17:19:31 mast Exp $
// $Id: Pike.pmod,v 1.8 2003/04/27 02:20:40 nilsson Exp $
constant WEAK_INDICES = __builtin.PIKE_WEAK_INDICES;
constant WEAK_VALUES = __builtin.PIKE_WEAK_VALUES;
......
#pike __REAL_VERSION__
#pragma strict_types
constant inherit_list = __builtin.inherit_list;
constant inherits = __builtin.program_inherits;
......
#pike __REAL_VERSION__
#pragma strict_types
// $Id: System.pmod,v 1.7 2002/11/26 14:51:09 grubba Exp $
// this module is to allow the system module to be called system.
// $Id: System.pmod,v 1.8 2003/04/27 02:22:26 nilsson Exp $
// This module is to allow the _system module to be called System.
inherit _system;
......
#pike __REAL_VERSION__
#pragma strict_types
inherit _static_modules.Builtin;
#pike __REAL_VERSION__
#pragma strict_types
mapping cache=([]);
mapping(string:mixed) cache=([]);
mixed `[](string s)
{
if(!zero_type(cache[s])) return cache[s];
mixed tmp=_static_modules[s];
if(programp(tmp)) tmp=tmp();
if(programp(tmp)) tmp=([program]tmp)();
return cache[s]=tmp;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment