pike.git / lib / modules / Stdio.pmod / Terminfo.pmod

version» Context lines:

pike.git/lib/modules/Stdio.pmod/Terminfo.pmod:1: - // $Id: Terminfo.pmod,v 1.25 2007/05/01 10:36:25 grubba Exp $ + // $Id: Terminfo.pmod,v 1.26 2008/01/04 11:33:18 grubba Exp $   #pike __REAL_VERSION__         #if constant(thread_create)   #define LOCK object m_key = mutex->lock()   #define UNLOCK destruct(m_key)   #define MUTEX static private object(Thread.Mutex) mutex = Thread.Mutex();   #else   #define LOCK   #define UNLOCK
pike.git/lib/modules/Stdio.pmod/Terminfo.pmod:696:    dirname += "/";       if (!get_dir(dir = dirname))    error("failed to read terminfo dir %O\n", dirname);    }       array(string) _indices()    {    LOCK;    if (!complete_index) { -  array(string) files; +     foreach (get_dir(dir), string a)    if (sizeof(a) == 1)    foreach (get_dir(dir+a), string b)    if(zero_type(cache[b]))    cache[b] = 0;    complete_index = 1;    }    UNLOCK;    return sort(indices(cache));    }