[gtkada] Preliminary GNOME 2.0 patches
Aidan Skinner
aidan at velvet.net
Fri Apr 12 17:22:24 CEST 2002
On Fri, 12 Apr 2002, Arnaud Charlet wrote:
> > I was looking at checking the UI_Info stuff in gnome-app_helper.adb,
> > and I was wondering if it might be better to change them from
> > functions that essentially duplicate the information in the #define
> > from gnome-app-helper.h to imports for C wrapper functions that just
> > contain the define and return statement that are then inlined (so
> > there's no function call overhead). That way it doesn't matter if C
>
> You do realize that C function cannot be inlined by an Ada compiler ?
Yeah, I was meaning the Ada functions get inlined by a pragma, it was
just (really) badly worded. That way we still only have one function
call going on (as happens now), not two.
> > macros change, the library just needs recompiled as opposed to hand
> > edited again.
>
> That would have some benefits, in particular if these values are likely to
> change frequently, which should hopefully not be the case.
I can't see it happening more than once per major release (since it'd
also cause problems for C programs compiled against them).
In any case, it hasn't happened yet, so it's probably not
worthwhile at this point.
- Aidan
--
aidan at velvet.net http://www.velvet.net/~aidan/ aim:aidans42
finger for pgp key fingerprint |Unix Programmer/Admin actively seeking work
01AA 1594 2DB0 09E3 B850 |CV at http://www.velvet.net/~aidan/cv.txt
C2D0 9A2C 4CC9 3EC4 75E1 |Gis a job, go on, I can do that, go on, gis it.
More information about the gtkada
mailing list