static int parallel_parse(const char *devname)

{

    static int index = 0;

    char label[32];



    if (strcmp(devname, "none") == 0)

        return 0;

    if (index == MAX_PARALLEL_PORTS) {

        fprintf(stderr, "qemu: too many parallel ports\n");

        exit(1);

    }

    snprintf(label, sizeof(label), "parallel%d", index);

    parallel_hds[index] = qemu_chr_new(label, devname, NULL);

    if (!parallel_hds[index]) {

        fprintf(stderr, "qemu: could not connect parallel device"

                " to character backend '%s'\n", devname);

        return -1;

    }

    index++;

    return 0;

}

static int parallel_parse(const char *devname)

{

    static int index = 0;

    char label[32];



    if (strcmp(devname, "none") == 0)

        return 0;

    if (index == MAX_PARALLEL_PORTS) {

        fprintf(stderr, "qemu: too many parallel ports\n");

        exit(1);

    }

    snprintf(label, sizeof(label), "parallel%d", index);

    parallel_hds[index] = qemu_chr_new(label, devname, NULL);

    if (!parallel_hds[index]) {

        fprintf(stderr, "qemu: could not connect parallel device"

                " to character backend '%s'\n", devname);

        return -1;

    }

    index++;

    return 0;

}

static int FUNC_0(const char *VAR_0)

{

    static int VAR_1 = 0;

    char VAR_2[32];



    if (strcmp(VAR_0, "none") == 0)

        return 0;

    if (VAR_1 == MAX_PARALLEL_PORTS) {

        fprintf(stderr, "qemu: too many parallel ports\n");

        exit(1);

    }

    snprintf(VAR_2, sizeof(VAR_2), "parallel%d", VAR_1);

    parallel_hds[VAR_1] = qemu_chr_new(VAR_2, VAR_0, NULL);

    if (!parallel_hds[VAR_1]) {

        fprintf(stderr, "qemu: could not connect parallel device"

                " to character backend '%s'\n", VAR_0);

        return -1;

    }

    VAR_1++;

    return 0;

}

static int FUNC_0(const char *VAR_0)
{ static int VAR_1 = 0; char VAR_2[32]; if (strcmp(VAR_0, "none") == 0)
return 0; if (VAR_1 == MAX_PARALLEL_PORTS) { fprintf(stderr, "qemu: too many parallel ports\n"); exit(1); } snprintf(VAR_2, sizeof(VAR_2), "parallel%d", VAR_1); parallel_hds[VAR_1] = qemu_chr_new(VAR_2, VAR_0, NULL); if (!parallel_hds[VAR_1]) { fprintf(stderr, "qemu: could not connect parallel device"
" to character backend '%s'\n", VAR_0); return -1; } VAR_1++; return 0; }