Re: ffi library port to Windows
Enrico Migliore <[email protected]> Thu, 01 Jun 2006 19:24:12 +0200
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Hi Etienne,
I'm facing problems when I run the tests that involves structures as
formal parameters, as shown here:
typedef struct
{
char a;
} one_char_t;
int my_function (one_char_t c)
{
....
}
We now got 2 options:
1. I'm doing something wrong with the tests
2. The ffi port of the Ctype's guys doesn't work when I pass a struct a
function.
I also would like to remark that when using MSVC at the highest warning
level (-Wall), it issues quite a few warnings. Some are trivial to fix,
but some are hard, because GCC and MSVC are different.
I also confirm that the foreign functions that we wish to call must be
compiled with __stdcall enabled... that is, all parameters passed by the
stack.
I keep working on the problem.
Enrico