Hi Eike,
I started converting the new Calc functions IFS and SWITCH to jump functions.
So far, the general part has been done.
I experience a problem where the functions IFS and SWITCH differ from the other jump functions (IF,
CHOOSE, IFERROR, IFNA).
The other jump functions do 1 evaluation (of the first argument) and then jump to an argument that
is to be the output.
The new jump functions need to evaluate at least 2 arguments.
And that is where I get stuck.
The first argument is on the stack, i.e. GetStackType() returns a type and ScInterpreter::sp is 1.
When I jump to the next argument to be evaluated, with aCode.Jump( pJump[ nIdx ], pJump[ pJump[ 0 ]
] ), ScInterpreter::sp is 0 afterwards.
How do I get the argument I jumped to (that part works) on the stack to be evaluated?
I hope you can shed some light on this jump mechanism.
Winfried
Context
- converting Calc functions to jump functions · Winfried Donkers
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.