[Libreoffice] [PATCH]replaces ELEMENTS_OF_ARRAY with SAL_N_ELEMENTS
Norbert Thiebaud
nthiebaud at gmail.com
Sun Oct 17 15:01:51 PDT 2010
On Sun, Oct 17, 2010 at 2:21 PM, Kenneth Venken
<kenneth.venken at gmail.com> wrote:
> replaces the ELEMENTS_OF_ARRAY macro, defined in sal/osl/os2/file_url.h,
> with the SAL_N_ELEMENTS, defined in sal/macros.h
>
>
Thanks.
Pushed except for one chunk:
Be careful with 'replace all' :-)
@ -48,11 +48,11 @@
#ifdef __MINGW32__
#include <ctype.h>
#endif
//#####################################################
-#define ELEMENTS_OF_ARRAY(arr) (sizeof(arr)/(sizeof((arr)[0])))
+#define SAL_N_ELEMENTS(arr) (sizeof(arr)/(sizeof((arr)[0])))
static const wchar_t UNC_PREFIX[] = L"\\\\";
static const wchar_t BACKSLASH = '\\';
static const wchar_t SLASH = '/';
Norbert
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
>
More information about the LibreOffice
mailing list