Re: glue code ?
- From: James Henstridge <james daa com au>
- To: boirie <boirie col bsf alcatel fr>
- cc: jgauthier elnino monad net, Gnome List <gnome-list gnome org>
- Subject: Re: glue code ?
- Date: Tue, 9 Feb 1999 17:24:27 +0800 (WST)
With interpreted languages, you can't call C functions directly or use C
types directly. To get round this, some code must be written that wraps
the C interface in a form useable by the interpreted language.
Since this is a bit repetitive, Marius wrote some scripts to generate
guile glue code from .defs files. These defs files (well modified
versions of them) are used to generate the gnome-perl bindings and my
gnome-python bindings.
James Henstridge.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Tue, 9 Feb 1999, boirie wrote:
> Marius Vollmer wrote:
>
> > boirie <boirie@col.bsf.alcatel.fr> writes:
> >
> > > I was wondering what .defs files are for...?
> >
> > They are used in a couple of language bindings to describe the API of
> > Gtk and Gnome in such a way that glue code can be automatically
> > generated from them.
>
> glue code...mmh...What the hell is that ??
> Do you know if there is any documentation about this topic (language
> bindings I mean...)
>
> Feeling very curious this morning, thanks,
>
> gregor
>
> --
>
> ^ ^ A physicist, an engineer, and a computer
> ( ~ ~ ) scientist were discussing the nature of
> (.)(.) God. Surely a Physicist, said the physicist,
> / .. \ because early in the Creation, God made
> (--) Light; and you know, Maxwell's equations, the
> vv dual nature of electro-magnetic waves, the
> relativist consequences... An Engineer!, said the
> engineer, because before making Light, God split
> the Chaos into Land and Water; it takes a hell of
> an engineer to handle that big amount of mud, and
> orderly separation of solids from liquids... The
> computer scientist shouted: And the Chaos, where do
> you think it was coming from, hmm?
>
> ---------------------------------------------------------------
>
>
>
>
> --
> FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
> To unsubscribe: mail gnome-list-request@gnome.org with
> "unsubscribe" as the Subject.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]