I am trying to extract the value from a symbol which comes from a
variable_expr. This variable is a simple string i.e "define foo = bar".

I am doing something like that:

char *example_function(struct expr *variable)
{
        struct *sym;
        char *sym_value;

        sym = variable->sym;
        sym_value = mpz_get_str(NULL, 10, sym->expr->value);

        return sym_value;
}


But this doesn't work so probably I am misundestanding something. Thanks!




Reply via email to