/* Extensible cords are strings that may be destructively appended to. */ /* They allow fast construction of cords from characters that are */ /* being read from a stream. */ /* *Aclientmightlooklike: * *{ *CORD_ecx; *CORDresult; *charc; *FILE*f; * *... *CORD_ec_init(x); *while(...){ *c=getc(f); *... *CORD_ec_append(x,c); *} *result=CORD_balance(CORD_ec_to_cord(x)); * *IfaCstringisdesiredasthefinalresult,thecalltoCORD_balance *maybereplacedbyacalltoCORD_to_char_star.
*/
/* This structure represents the concatenation of ec_cord with */ /* ec_buf[0 ... (ec_bufptr-ec_buf-1)] */
/* Flush the buffer part of the extended cord into ec_cord. */ /* Note that this is almost the only real function, and it is */ /* implemented in 6 lines in cordxtra.c */ void CORD_ec_flush_buf(CORD_ec x);
/* Convert an extensible cord to a cord. */ # define CORD_ec_to_cord(x) (CORD_ec_flush_buf(x), (x)[0].ec_cord)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.