> Is there any particular reason why the functions in stubs.c are not 
> implemented as macros?

Yes. A smooth upgrade path. Implementing them as macros would make the
resulting programs rely on the inner structure of the visual.

As it is now, the programs linked against LibGGI contain code like

call runtime_resolve("ggiFunctionName");

which will work with any future release. If we used macros, the generated
code would look like:

call [visual+offset_of_ggi_function_pointer];

which will break, if you change the inner structure of the GGI visual.

CU, ANdy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]>        =

Reply via email to