30 arguments in functions (?)

Eike Rathke erack at redhat.com
Tue Dec 3 05:40:54 PST 2013


Hi Olivier,

On Tuesday, 2013-12-03 10:38:25 -0200, Olivier Hallot wrote:

> Thanks Eike for the explanation. Although it is a limit almost never
> reached, do you think this limit can be lifted through an easy-hack?
> (maybe there is just no demand for that...)

Probably users that have a demand for more than 30 arguments don't use
the FunctionWizard because they know what they are doing ;-P

But yes, from a first glance that looks like a quite easy EasyHack..
it's redefining VAR_ARGS from 30 to 255 at two places,
formula/source/ui/dlg/parawin.cxx and sc/inc/sc.hrc, and check that
everywhere where VAR_ARGS+x or PAIRED_VAR_ARGS are used the variable
type is of at least sal_uInt16 and not sal_uInt8.

As always, hidden details might be lurking to jump on you, for example
the PAIRED_VAR_ARGS cases may need special attention.

  Eike

-- 
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key ID: 0x65632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Support the FSFE, care about Free Software! https://fsfe.org/support/?erack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20131203/664f6ab3/attachment.pgp>


More information about the LibreOffice mailing list