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:311:    int size = get_number();    if ((size < 0) || !strlen(buffer) || (buffer[0] != '>'))    return 0;       buffer = buffer[1..];       res->range = ({ start, size });       return res;   } -  - #if 0 - /* Parsing general list requires some variation of continuation -  * passing style. -  * -  * If the entire list can be read immediately, it is returned. On -  * errors, 0 is returned. If only part of the list can be read, a -  * read handler is returned, and the passed callback function will -  * be called when the list is complete, or an error is detected. -  * -  * Could perhaps besimplified a little by *always* using the -  * callback function, using a call_out if the list can be read -  * immediately. */ -  - array get_list(function(array:mixed)) - { - } - #endif +