Branch: Tag:

2006-01-07

2006-01-07 16:39:02 by Martin Nilsson <mani@lysator.liu.se>

Don't load Array module

Rev: lib/modules/Stdio.pmod/Terminfo.pmod:1.21

1: - // $Id: Terminfo.pmod,v 1.20 2005/01/07 10:37:46 grubba Exp $ + // $Id: Terminfo.pmod,v 1.21 2006/01/07 16:39:02 nilsson Exp $   #pike __REAL_VERSION__      
15:   MUTEX      static private array ctrlcharsfrom = -  Array.map(indices(allocate(32)), +  map(indices(allocate(32)),    lambda(int z) { return sprintf("^%c",z+64); })+ -  Array.map(indices(allocate(32)), +  map(indices(allocate(32)),    lambda(int z) { return sprintf("^%c",z+96); });   static private array ctrlcharsto = -  Array.map(indices(allocate(32)), +  map(indices(allocate(32)),    lambda(int z) { return sprintf("%c",z); })+ -  Array.map(indices(allocate(32)), +  map(indices(allocate(32)),    lambda(int z) { return sprintf("%c",z); });      
334:       static private string swab(string s)    { -  return Array.map(s/2, reverse)*""; +  return predef::map(s/2, reverse)*"";    }       static private int load_cap(.File f, int|void bug_compat)
376:    }    if(sizeof(strbuf)!=sstr)    return 0; -  array(string) strarr = Array.map(array_sscanf(stroffs, "%2c"*nstr), +  array(string) strarr = predef::map(array_sscanf(stroffs, "%2c"*nstr),    lambda(int offs, string buf) {    return offs<0xfffe &&    buf[offs..
542:    mapping(int:string) extra = ([]);    LOCK;    if (complete_index) -  res = Array.map(sort(indices(cache)), +  res = predef::map(sort(indices(cache)),    [function(string,mapping(int:string):Termcap)]    lambda(string name, mapping(int:string) extra) {    if (!objectp(cache[name]) && !extra[cache[name]])
570:    }    UNLOCK;    return [array(Termcap)] -  Array.map(res, +  predef::map(res,    lambda(int|Termcap x, mapping(int:Termcap) y) {    return objectp(x)? x : y[x];    },    mkmapping(indices(extra), -  Array.map(values(extra), +  predef::map(values(extra),    Termcap, this)));    }   
707:       array(object) _values()    { -  return Array.map(_indices(), +  return predef::map(_indices(),    [function(string:object(Terminfo))]    lambda(string name) {    return cache[name] ||