To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=98028





------- Additional comments from [email protected] Fri Oct 30 08:47:07 +0000 
2009 -------
"we are unable to obtain the small structs through registers (I mean, to 
reconstruct the original small struct from gpreg and fpreg)."

Here's my thinking: This bit of code would be used for handling passed by value
small structs as "in" arguments to a method. Now the thing is that I believe
that this can't happen in uno because idlc, when given an idl which has a method
that has an "in" struct argument, will always generate c++ code which passes
"in" structs by reference and never by value. 

While small struct *return* arguments of course do get returned in registers if
they fit, they never get passed in registers *into* a method.

In that cws's testtools module, have a look at the bridgetest.idl, e.g.
struct SmallStruct
{
    hyper                      a;
    hyper                      b;
};
SmallStruct echoSmallStruct( [in] SmallStruct aStruct );
the c++ api for this is therefore
virtual SmallStruct SAL_CALL echoSmallStruct(const SmallStruct& rStruct);
e.g. passed by reference
the bridgetest in testtools should be run during the build there, and
echoSmallStruct is one of the new tests which should demo it.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to