static void monitor_puts(Monitor *mon, const char *str)

{

    char c;



    for(;;) {

        assert(mon->outbuf_index < sizeof(mon->outbuf) - 1);

        c = *str++;

        if (c == '\0')

            break;

        if (c == '\n')

            mon->outbuf[mon->outbuf_index++] = '\r';

        mon->outbuf[mon->outbuf_index++] = c;

        if (mon->outbuf_index >= (sizeof(mon->outbuf) - 1)

            || c == '\n')

            monitor_flush(mon);

    }

}

static void monitor_puts(Monitor *mon, const char *str)

{

    char c;



    for(;;) {

        assert(mon->outbuf_index < sizeof(mon->outbuf) - 1);

        c = *str++;

        if (c == '\0')

            break;

        if (c == '\n')

            mon->outbuf[mon->outbuf_index++] = '\r';

        mon->outbuf[mon->outbuf_index++] = c;

        if (mon->outbuf_index >= (sizeof(mon->outbuf) - 1)

            || c == '\n')

            monitor_flush(mon);

    }

}

        assert(mon->outbuf_index < sizeof(mon->outbuf) - 1);         if (c == '\n')             mon->outbuf[mon->outbuf_index++] = '\r';         mon->outbuf[mon->outbuf_index++] = c;         if (mon->outbuf_index >= (sizeof(mon->outbuf) - 1)             || c == '\n')
static void FUNC_0(Monitor *VAR_0, const char *VAR_1)

{

    char VAR_2;



    for(;;) {

        assert(VAR_0->outbuf_index < sizeof(VAR_0->outbuf) - 1);

        VAR_2 = *VAR_1++;

        if (VAR_2 == '\0')

            break;

        if (VAR_2 == '\n')

            VAR_0->outbuf[VAR_0->outbuf_index++] = '\r';

        VAR_0->outbuf[VAR_0->outbuf_index++] = VAR_2;

        if (VAR_0->outbuf_index >= (sizeof(VAR_0->outbuf) - 1)

            || VAR_2 == '\n')

            monitor_flush(VAR_0);

    }

}

static void FUNC_0(Monitor *VAR_0, const char *VAR_1)
{ char VAR_2; for(;;) { assert(VAR_0->outbuf_index < sizeof(VAR_0->outbuf) - 1); VAR_2 = *VAR_1++; if (VAR_2 == '\0')
break; if (VAR_2 == '\n')
VAR_0->outbuf[VAR_0->outbuf_index++] = '\r'; VAR_0->outbuf[VAR_0->outbuf_index++] = VAR_2; if (VAR_0->outbuf_index >= (sizeof(VAR_0->outbuf) - 1)
|| VAR_2 == '\n')
monitor_flush(VAR_0); } }