if (c == LF) {
if (c == nsCRT::LF) {
nsWriteLineToString(nsIInputStream* in,                    void* closure,                    const char* fromRawSegment,                    PRUint32 offset,                    PRUint32 count,                    PRUint32 *writeCount) {    nsWriteLineInfo *info = (nsWriteLineInfo *) closure;    *writeCount = 0;    if (info->haveLF) // Stop reading        return NS_BASE_STREAM_WOULD_BLOCK;    else {        char c = 0;        const char *p = fromRawSegment;        for (; count>0; --count) {            c = *p++;            (*writeCount)++;            if (c == LF) {                info->haveLF = PR_TRUE;                break;            }        }        info->buf.Append(fromRawSegment, *writeCount);        // Successfully read something        return NS_OK;    }}