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.6 1999/09/07 20:31:12 marcus Exp $ + // $Id: Terminfo.pmod,v 1.7 1999/11/18 04:08:22 hubbe 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:167:    else if (j!=-1) { i=min(i,j); if (i==j) br=","; }    if (i<1)    error("Termcap: Unparsable entry\n");    aliases=en[..i-1]/"|";    en=en[i..];       while (en!="")    {    string name;    string data; -  sscanf(en,"%*[ \t]%[a-zA-Z_0-9&]%s"+br+"%s",name,data,en); +  if(sscanf(en,"%*[ \t]%[a-zA-Z_0-9&]%s"+br+"%s",name,data,en) < 4) +  { +  sscanf(en,"%*[ \t]%[a-zA-Z_0-9&]%s",name,data); +  en=""; +  }       if (data=="") // boolean    {    if (name!="") map[name]=1;    }    else if (data[0]=='@') // boolean off    {    clears[name]=1;    }    else if (data[0]=='#') // number