Hi Eike,
Huh? Accidentally hit the delete line key in your editor?
No, I did a git pull -r whilst working on the code and forgot to update this file. Should have seen
it, though.
Using a short here and incrementing it for values!=0 may easily overflow
if ranges are passed. A better approach would be to use the C++ ^ xor
operator, e.g.
short nRes = 0;
nRes ^= (PopDouble() != 0.0);
True, I followed the ODFF definition too literally. repeated XORing is identical and more in line
with the code in ScAnd() and ScOr().
This does not work. Excel doesn't know the XOR function so there is no
function identifier available. Inventing a value like 355 also does not
work, the values have to be those that Excel uses. So, ...
... just leave the function in that section then at least Calc can use
it if the .xls is reopened.
Here I couldn't check Excel and guessed (wrongly) that Excel would have an XOR function.
With a few changes I think we'd have a working implementation. Please
try and test.
I will build and test with the changes you propose and submit a new patch.
Btw, instead of reusing fdo#50488 for all new implementations I'd prefer
if we created a new bug once we have a function ready and make fdo#50488
depend on the new bug to easily get a list of solutions. Otherwise when
committing a change with fdo#50488 in the commit summary we'd add
a target to that bug that wouldn't match the real release when a new
function will be available.
All right. I created bug 50882 for the XOR function and will create other bug for other functions
(I hope I entered the dependancy correct).
Keep up the good work :) I'm looking forward ot the corrrected patch.
I'll do my best :)
Winfried
Context
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.