[fpc-devel]X lib

Johan Blok johanbloK at ix.nl
Thu Dec 14 16:58:00 CET 2000


Michael Van Canneyt wrote:
> 
> On Thu, 14 Dec 2000, Johan Blok wrote:
> 
> > I programmed some stuff in C for X, now I want to convert it to pascal.
> >
> > I did a very small program, but for every macro in C I had to write a
> > function, or I have to use a long
> >  expression that's repeated very often (for example ScreenOfDisplay). In
> > xlib.pp all #defines from C are
> > comments.
> >
> > Is there allready a unit with all this #defines rewritten as functions?
> 
> No. In principle this should be done in the xlib unit itself.
> Feel free to start doing that :-)

Because I want to do a lot with X, I start doing that, using inline
functions. I hope the compiler accepts the keyword inline, only simple
doesn't do the inline stuff really.

Johan Blok




More information about the fpc-devel mailing list