[lazarus] help format

Peter Vreman peter at freepascal.org
Fri Jan 25 04:41:37 EST 2002


> > By the way, i have a problem with the conversion C->pascal of gtkhtml
w> ith
> > some types of variables :
> >
> > How can i translate :
> >
> > struct _GtkHTML {
> >    [...]
> > 	guint in_selection : 1;
> > 	guint button1_pressed : 1;
> >
> > 	guint debug : 1;
> > 	guint allow_selection : 1;
> >    [...]
> > };
> >
> > I don't know how to declare a bit variable in pascal...
> 
> You can't. You must write helper functions that access the bits.
> There are many examples in the gtk translations.

You can put the structure in a separate file and let h2pas generate the helper functions
for you








More information about the Lazarus mailing list