Re: Cooperating on .defs API specifications

Andreas Rottmann <[email protected]>
Newsgroups gmane.comp.gnome.language-bindings
Message-ID <[email protected]>
"muppet" <[email protected]> writes:

> (huge CC: list trimmed a bit...)
>
>
> Xavier Ordoquy said:
>> On Tue, 2004-03-30 at 22:01, Owen Taylor wrote:
>>> Why not have .defs files, and generate the binary info from them? The
>>> .defs files are already there, and they contain more information than
>>> the headers do (well, comment parsing might change that, but you could
>>> create comments from the .defs files :)). Just an idea...
>>
>> I would be interested to know what are the informations the .defs file
>> have that the header don't. Maybe a more precise deprecated field, but
>> out of that ?
>
> Whether NULL is allowed for a parameter, whether a parameter may default and
> if so what value should be used, whether a parameter is a return value, etc,
> all of these are described in pygtk's defs files, and i believe in gtkmm's as
> well.  None of that form of info is in the headers; it usually comes from
> manually digging through source code and documentation.
>
> Not that many hours ago i sat here writing about how the API definition need
> to include *more* metadata of this sort....  see
> http://lists.gnome.org/archives/language-bindings/2004-March/msg00062.html
>
> That thread mentioned switching to a more detailed XML format for
> the defs.  I think that's A Good Idea; binding code generation would
> simply be an exercise in XSLT.  :-)
>
You can express everything you can express as XML in
S-Expressions. Especially for Scheme wrappers, those are more
convinient than XML ;-)

Andy
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | [email protected]
http://yi.org/rotty      | GnuPG Key: http://yi.org/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Any technology not indistinguishable from magic is insufficiently advanced.
   -- Terry Pratchett
_______________________________________________
language-bindings mailing list  [email protected]
http://mail.gnome.org/mailman/listinfo/language-bindings
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.