pike.git / lib / modules / Protocols.pmod / IMAP.pmod / parse_line.pike

version» Context lines:

pike.git/lib/modules/Protocols.pmod/IMAP.pmod/parse_line.pike:288:       if (!strlen(buffer))    return 0;       if (buffer[0] == terminator)    {    buffer = buffer[1..];    return a;    }    -  a += ({ get_atom(max_depth-1) }); +  mapping atom = get_atom_options(max_depth-1);    -  +  if (!atom) { +  return a; +  } +  a += ({ atom }); +     mapping m = get_simple_list(max_depth);    if (!m) {    werror(sprintf("get_simple_list(%d) failed\n", max_depth));    } else { -  a->list = m; +  atom->list = m;    }    }   }      /* Reads an atom, optionally followd by a list enclosed in square    * brackets. Naturally, the atom itself cannot contain any brackets.    *    * Returns a mapping    * type : "atom",    * atom : name,