Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Sat, Oct 9, 2010 at 12:08 PM, Kayo Hamid <revol.code@yahoo.com> wrote:


Hi Norbert, thank you. Can you explain for me where is this definition (SAL_N_ELEMENTS) that all 
theses sources share in common? My knowledge in C++ are few.

It is in
sal/inc/sal/macros.h:44:#    define SAL_N_ELEMENTS(arr)     (sizeof
(arr) / sizeof ((arr)[0]))

you can search for it using:

n_th@tpa10 ~/git/oo/ref (master)$ ./bin/g grep -n SAL_N_ELEMENTS | grep define
sal/inc/sal/macros.h:44:#    define SAL_N_ELEMENTS(arr)     (sizeof
(arr) / sizeof ((arr)[0]))


New patchs attached.

Hi revol_

Thanks for the patch.

One remark. You want to use the macro SAL_N_ELEMENTS, not define your own ELEMENTS_OF_ARRAY in 
every sources.


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


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.