[Mono-list] (no subject)

Piyush Garyali Piyush Garyali" <p_garyali@rediffmail.com
22 Jan 2003 15:41:18 -0000


Hi,

There seems to be some kind of confusion in the
arch\x86\tramp.c code

Inside the code <mono/interperter/interp.h> is used
for the function pointers (*MonoPIFunc) and  (*MonoFunc)
but there are also certain places where stackval_from_data
and stackval_to_data is being used like,

x86_mov_reg_imm (p, X86_ECX, stackval_from_data);
x86_mov_reg_imm (p, X86_ECX, stackval_to_data);

Now this is causing name-clashing with the stackval_from_data 
and
stackval_to_data which is present in the interp.h ( i hope
they are the same functions) stackval_from_data has the following 
declaration:

void inline
stackval_from_data (MonoType *type, stackval *result, char * data, 
gboolean pinvoke);

Now when try to build arch\x86\tramp.c separately it gives
me the error thet stackval_from_data declared in interp.h but
does not have any definition.

The same holds true for the arch\ppc\tramp.c code.

Either I am missing something or there is something wrong
somewhere?

--pg


Piyush Garyali
http:\\www.geocities.com\p_garyali

p_garyali@yahoo.com
p_garyali@hotmail.com
p_garyali@rediffmail.com