guile-user
[Top][All Lists]
Advanced

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

Re: type friction C <-> scheme


From: Matt Wette
Subject: Re: type friction C <-> scheme
Date: Mon, 12 Jun 2017 05:45:09 -0700

> On Jun 12, 2017, at 1:00 AM, David Pirotte <address@hidden> wrote:
> 
> Hello Matt
> 
>> ;; "FreeXL_CellValue"
>> 
>> ;; typedef struct FreeXL_CellValue_str FreeXL_CellValue;
>> (define-std-pointer-wrapper FreeXL_CellValue*)
>> ...
> 
> Your ffi-help, snarf *.h is a nice project, but it would be, maybe, 
> interesting that
> you look at a way to 'schemefy' names, like it's done for guile-gnome and 
> g-golf
> 
>       
> http://git.savannah.gnu.org/cgit/guile-gnome.git/tree/glib/gnome/gobject/utils.scm
> 
>       look for
>               StudlyCapsExpand ...
> 
> I simplified a bit that code for G-Golf, here:
> 
>       http://git.savannah.gnu.org/cgit/g-golf.git/tree/g-golf/gi/utils.scm
> 
>       look for
>               g-golf-gstudly-caps-expand
>               %g-golf-gtype-name->scm-name-exceptions
>               g-golf-gtype-name->scm-name
>               g-golf-gtype-name->class-name
>               ...
> 
> Just an idea ...
> 
> Cheers,
> David

I can add a renamer option.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]