After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772004 - [PATCH] GSL bindings contain a few attribute typos
[PATCH] GSL bindings contain a few attribute typos
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.34.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2016-09-26 19:05 UTC by bob
Modified: 2016-09-27 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for gsl.vapi (1.92 KB, patch)
2016-09-26 19:05 UTC, bob
none Details | Review
Patch for gsl.vapi w/ free_function instead of unref (1.92 KB, patch)
2016-09-26 19:48 UTC, bob
committed Details | Review

Description bob 2016-09-26 19:05:31 UTC
Created attachment 336296 [details] [review]
Patch for gsl.vapi

This patch cleans up some of the typos present in the CCode attributes for the GNU Scientific Library (mostly stuff like cheader_filanme instead of cheader_filename).
Comment 1 Al Thomas 2016-09-26 19:44:37 UTC
Review of attachment 336296 [details] [review]:

Correcting the typos for cheader_filename seems fine. I did have a look in http://git.savannah.gnu.org/cgit/gsl.git/tree/ for a single header that includes all the others, but there doesn't appear to be one.

The only thing I think needs changing is IntegrationQAWOTable, which has an unref function, but no ref function. So I'm assuming it is a singly-owned class and should be bound as free_function = gsl_integration_qawo_table_free See https://wiki.gnome.org/Projects/Vala/LegacyBindings#Classes for more details.
Comment 2 bob 2016-09-26 19:48:53 UTC
Created attachment 336297 [details] [review]
Patch for gsl.vapi w/ free_function instead of unref

(In reply to Al Thomas from comment #1)
> The only thing I think needs changing is IntegrationQAWOTable, which has an
> unref function, but no ref function. So I'm assuming it is a singly-owned
> class and should be bound as free_function = gsl_integration_qawo_table_free
> See https://wiki.gnome.org/Projects/Vala/LegacyBindings#Classes for more
> details.

Oh, of course. I have to admit, I wasn't really paying attention when I changed that. I was just aiming to clear the compiler warnings :)

Here's the ammended patch
Comment 3 Al Thomas 2016-09-26 20:10:29 UTC
Review of attachment 336297 [details] [review]:

Looks fine to me. If you are going to do further work on this VAPI note that the usual coding style is to pad the equals sign with spaces, e.g. cheader_filename = "gsl/gsl_integration.h"
Comment 4 bob 2016-09-26 20:15:48 UTC
Alright, thanks!
Comment 5 Rico Tzschichholz 2016-09-27 15:46:19 UTC
commit 52406608968d7056adc6cefaab2a834d8b4c1636
Author: George Barrett <bob@bob131.so>
Date:   Tue Sep 27 05:00:24 2016 +1000

    gsl.vapi: Fix attribute typos
    
    At the moment, the are a few CCode attributes containing typos in the
    bindings for the GNU Scientific Library. This patch rectifies the ones
    that valac explicitly complains about.