[Vala] Vapi help..



Hi All --

I've been trying to troubleshoot a problem with the libgda vapi and I just
can't figure out where it's coming from.. decided it was time to ask. I'm
sure this is something stupid, but I can't find it.

The vapi has this:

    public GLib.Value get_value_at (int col, int row) throws GLib.Error;

Which looks good according to the header from libgda. But the generated c
is:

    GValue _tmp10_;
    GValue _tmp9_ = {0};
    _tmp10_ = (gda_data_model_get_value_at (self->res, 1, 1, &_tmp9_,
&_inner_error_), _tmp9_);

The problem is that &_tmp9_ is being injected into the arguments and I can't
figure out how to prevent it.  gda_data_model_get_value_at should return the
value rather then set it through a pointer.

Appreciate the help

Thanks!
SMF


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]