bool is_valid_option_list(const char *param)

{

    size_t buflen = strlen(param) + 1;

    char *buf = g_malloc(buflen);

    const char *p = param;

    bool result = true;



    while (*p) {

        p = get_opt_value(buf, buflen, p);

        if (*p && !*++p) {

            result = false;

            goto out;

        }



        if (!*buf || *buf == ',') {

            result = false;

            goto out;

        }

    }



out:

    free(buf);

    return result;

}

bool is_valid_option_list(const char *param)

{

    size_t buflen = strlen(param) + 1;

    char *buf = g_malloc(buflen);

    const char *p = param;

    bool result = true;



    while (*p) {

        p = get_opt_value(buf, buflen, p);

        if (*p && !*++p) {

            result = false;

            goto out;

        }



        if (!*buf || *buf == ',') {

            result = false;

            goto out;

        }

    }



out:

    free(buf);

    return result;

}

bool FUNC_0(const char *param)

{

    size_t buflen = strlen(param) + 1;

    char *VAR_0 = g_malloc(buflen);

    const char *VAR_1 = param;

    bool result = true;



    while (*VAR_1) {

        VAR_1 = get_opt_value(VAR_0, buflen, VAR_1);

        if (*VAR_1 && !*++VAR_1) {

            result = false;

            goto out;

        }



        if (!*VAR_0 || *VAR_0 == ',') {

            result = false;

            goto out;

        }

    }



out:

    free(VAR_0);

    return result;

}

bool FUNC_0(const char *param)
{ size_t buflen = strlen(param) + 1; char *VAR_0 = g_malloc(buflen); const char *VAR_1 = param; bool result = true; while (*VAR_1) { VAR_1 = get_opt_value(VAR_0, buflen, VAR_1); if (*VAR_1 && !*++VAR_1) { result = false; goto out; } if (!*VAR_0 || *VAR_0 == ',') { result = false; goto out; } } out:
free(VAR_0); return result; }