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

version» Context lines:

pike.git/lib/modules/Stdio.pmod/Readline.pike:613:    function oldf = 0;    if (mappingp(f))    f = 0; // Paranoia    switch (sizeof(str||""))    {    case 0:    break;    case 1:    if (mappingp(bindings[str[0]]))    { -  oldf = bindings[str[0]][str]; +  oldf = m_delete(bindings[str[0]], str);    if (f)    bindings[str[0]][str] = f; -  else -  m_delete(bindings[str[0]], str); +     } else { -  oldf = bindings[str[0]]; +  oldf = m_delete(bindings, str[0]);    if (f)    bindings[str[0]] = f; -  else -  m_delete(bindings, str[0]); +     }    break;    default:    if (mappingp(bindings[str[0]]))    oldf = bindings[str[0]][str];    else    bindings[str[0]] =    bindings[str[0]]? ([str[0..0]:bindings[str[0]]]) : ([]);    if (f)    bindings[str[0]][str] = f;