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

Added _indices to aid hilfe-sessions.

Rev: lib/modules/Crypto.pmod:1.7
parent 45163cc3
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ static private mixed crypto_module; ...@@ -8,7 +8,6 @@ static private mixed crypto_module;
mixed `[](string name) mixed `[](string name)
{ {
// return (::`[](name) || ((program) ("Crypto/" + name)));
catch { catch {
return (crypto_module[name] return (crypto_module[name]
|| ((program) ("Crypto/" + name)) || ((program) ("Crypto/" + name))
...@@ -17,6 +16,15 @@ mixed `[](string name) ...@@ -17,6 +16,15 @@ mixed `[](string name)
return ([])[0]; // UNDEFINED return ([])[0]; // UNDEFINED
} }
array(string) _indices() {
array tmp = ( __FILE__ / "/");
tmp[-1] = "Crypto";
tmp = get_dir(tmp*"/");
return map(glob("*.pike",tmp)+glob("*.pmod",tmp),
lambda(string in){ return in[..sizeof(in)-6]; }) +
indices(crypto_module);
}
void create() void create()
{ {
catch { crypto_module=master()->resolv("_Crypto"); }; catch { crypto_module=master()->resolv("_Crypto"); };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment