I have a struct foo:

C-STRUCT: foo
    { "char*" "name" }
    { "bool"  "on" }
    { "short" "parents" }
    { "void*" "fn1" }
    { "void*" "fn2" }
    { "ushort" "flags" } ;

On mac ppc, access to this via foo-<member> works fine. On 64 bit linux the
offset the c++ library uses is different to what factor expects.

The c++ code returns a struct where the "parents" value has an offset of
10. Factor expects an offset of 12:

    "parents" "Class" offset-of   ===>  12

I could work around this on a per platform basis, but I'm curious as to whether
there is a better way.

Cheers,

Jeremy

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to