static void parse_type_number(Visitor *v, const char *name, double *obj,

                              Error **errp)

{

    StringInputVisitor *siv = to_siv(v);

    char *endp = (char *) siv->string;

    double val;



    errno = 0;

    if (siv->string) {

        val = strtod(siv->string, &endp);

    }

    if (!siv->string || errno || endp == siv->string || *endp) {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "number");

        return;

    }



    *obj = val;

}

static void parse_type_number(Visitor *v, const char *name, double *obj,

                              Error **errp)

{

    StringInputVisitor *siv = to_siv(v);

    char *endp = (char *) siv->string;

    double val;



    errno = 0;

    if (siv->string) {

        val = strtod(siv->string, &endp);

    }

    if (!siv->string || errno || endp == siv->string || *endp) {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "number");

        return;

    }



    *obj = val;

}

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",     if (siv->string) {         error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",     if (siv->string) {     if (siv->string) {         error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",     if (siv->string) {         val = strtod(siv->string, &endp);     if (!siv->string || errno || endp == siv->string || *endp) {
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, double *VAR_2,

                              Error **VAR_3)

{

    StringInputVisitor *siv = to_siv(VAR_0);

    char *VAR_4 = (char *) siv->string;

    double VAR_5;



    errno = 0;

    if (siv->string) {

        VAR_5 = strtod(siv->string, &VAR_4);

    }

    if (!siv->string || errno || VAR_4 == siv->string || *VAR_4) {

        error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",

                   "number");

        return;

    }



    *VAR_2 = VAR_5;

}

static void FUNC_0(Visitor *VAR_0, const char *VAR_1, double *VAR_2,
Error **VAR_3)
{ StringInputVisitor *siv = to_siv(VAR_0); char *VAR_4 = (char *) siv->string; double VAR_5; errno = 0; if (siv->string) { VAR_5 = strtod(siv->string, &VAR_4); } if (!siv->string || errno || VAR_4 == siv->string || *VAR_4) { error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_1 ? VAR_1 : "null",
"number"); return; } *VAR_2 = VAR_5; }