Re: Easing language bindings (was Re: GtkPlot widget)

You may want to take a look at SWIG ( or something)
Software Wrapper Interface Generator, i believe.  It takes a 
C language header file, and if needed, an interface definition
file, and can generate Tcl, Perl, Python, and several other
bindings through a wrapper interface.  Not sure how well the
underlying code would deal with GUI elements, but there might
be a decent amount a code available for reuse in there.

Havoc Pennington wrote:
> On Sat, 27 Nov 1999, ERDI Gergo wrote:
> > I think a more clean solution would be to use IDLs instead of native C
> Which has Zero Concrete Benefits, makes the job of writing the language
> binding generator 10 times harder, and probably won't get supported by the
> GTK maintainers. Not a good idea if you want to actually get a working
> tool in a reasonable timeframe.
> C used consistently (as it almost always is in GTK) can work just fine as
> an IDL. You probably need to maintain some special exception lists
> (int/bool confusion, const gchar* vs. gchar* confusion, which struct
> members to make public) but that should not be hard (and some such as
> gint/gboolean can be fixed in the GTK sources themselves).
> Havoc
> --
> To unsubscribe: mail with "unsubscribe"
> as the Subject.

|  __                         a.k.a. Eric B. Mitchell |
|  |_) .  _  _|      _|  _    |
|  | \ ( (_ (_| (_| (_| (/_  |
| How's My Programming?   Call:  1 - 800 - DEV - NULL |

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