Re: idea on gobject-introspection / gtk-doc metadata



Hi Dan,

On 9/21/05, Dan Winship <danw novell com> wrote:
> One of the gobject-introspection TODOs is:
>
>      - Write a scanner to create XML from annotated headers

I've started a Python script to parse GTK+ header files and generate a
scheme-based definition files[1] used by PyGTK+ project.

I'm working on this script to generate gobject-introspection XML file
instead of scheme-based file and improving the parser to identify more
elements from C source file (properties for example).

> AFAIK, no one has put forward any suggestions about what those
> annotations would be. gtk-sharp's parser already figures out a lot of
> things (by assuming that the code obeys certain conventions), but there
> are lots of other things that can't really be guessed in most cases
> (like memory management conventions, or whether an int* is an out arg,
> an in-out arg, or an array).

Well, it's very difficult to identify this kind of element if the
parsed code doesn't obey some basic conventions but I think that a XML
with some basic elements is good enough to start the work.

When annotations become available to all API we can start to use this
data to generate XML file.

Thanks,
Osvaldo

[1] http://bugzilla.gnome.org/show_bug.cgi?id=314959 (see attached file)

--
Osvaldo Santana Neto (aCiDBaSe)
icq, url = (11287184, "http://www.pythonbrasil.com.br";)



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