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.5 1999/09/07 20:30:29 marcus Exp $ + // $Id: Terminfo.pmod,v 1.6 1999/09/07 20:31:12 marcus Exp $         #if constant(thread_create)   #define LOCK object m_key = mutex->lock()   #define UNLOCK destruct(m_key)   #define MUTEX static private object mutex = Thread.Mutex();   #else   #define LOCK   #define UNLOCK   #define MUTEX
pike.git/lib/modules/Stdio.pmod/Terminfo.pmod:186:    }    else if (data[0]=='#') // number    {    int z;    sscanf(data,"#%d",z);    map[name]=z;    }    else if (data[0]=='=') // string    {    data=data[1..]; -  while (sizeof(data) && data[-1]=="\\") +  while (sizeof(data) && data[-1]=='\\')    {    string add;    if (sscanf(en,"%s"+br+"%s",add,en)<2) break;    data+="\\"+add;    }       data=replace(data,"\\^","\\*");       if (search(data,"^")!=-1)    data=replace(data,ctrlcharsfrom,ctrlcharsto);