Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
962b31c8
Commit
962b31c8
authored
Jul 04, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add a generic available ARRAY_SIZE().
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3edbb2a4
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
7 additions
and
79 deletions
+7
-79
advapi32_misc.h
dlls/advapi32/advapi32_misc.h
+0
-2
appwiz.h
dlls/appwiz.cpl/appwiz.h
+0
-2
avifile_private.h
dlls/avifil32/avifile_private.h
+0
-2
comctl32.h
dlls/comctl32/comctl32.h
+0
-2
cdlg.h
dlls/comdlg32/cdlg.h
+0
-2
crypt32_private.h
dlls/crypt32/crypt32_private.h
+0
-2
d2d1_private.h
dlls/d2d1/d2d1_private.h
+0
-4
d3d11_private.h
dlls/d3d11/d3d11_private.h
+0
-4
d3d12_main.c
dlls/d3d12/d3d12_main.c
+0
-2
d3d9_private.h
dlls/d3d9/d3d9_private.h
+0
-2
d3drm_private.h
dlls/d3drm/d3drm_private.h
+0
-4
d3dx9_private.h
dlls/d3dx9_36/d3dx9_private.h
+0
-2
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-2
dmloader_private.h
dlls/dmloader/dmloader_private.h
+0
-1
dwrite_private.h
dlls/dwrite/dwrite_private.h
+0
-2
dxgi_private.h
dlls/dxgi/dxgi_private.h
+0
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+0
-2
tokenize.c
dlls/msi/tokenize.c
+0
-2
msxml_private.h
dlls/msxml3/msxml_private.h
+0
-2
scrrun_private.h
dlls/scrrun/scrrun_private.h
+0
-2
shell32_main.h
dlls/shell32/shell32_main.h
+0
-2
user_private.h
dlls/user32/user_private.h
+0
-2
usp10_internal.h
dlls/usp10/usp10_internal.h
+0
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-4
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+0
-4
wshom_private.h
dlls/wshom.ocx/wshom_private.h
+0
-2
xmllite_private.h
dlls/xmllite/xmllite_private.h
+0
-2
test.h
include/wine/test.h
+3
-1
winnt.h
include/winnt.h
+4
-0
main.h
programs/notepad/main.h
+0
-2
reg.h
programs/reg/reg.h
+0
-1
main.h
programs/regedit/main.h
+0
-2
regproc.c
programs/regedit/regproc.c
+0
-2
winecfg.h
programs/winecfg/winecfg.h
+0
-2
debugger.h
programs/winedbg/debugger.h
+0
-2
make_xftmpl.c
tools/make_xftmpl.c
+0
-2
No files found.
dlls/advapi32/advapi32_misc.h
View file @
962b31c8
...
...
@@ -25,8 +25,6 @@
#include "winnls.h"
#include "wine/heap.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
const
char
*
debugstr_sid
(
PSID
sid
)
DECLSPEC_HIDDEN
;
BOOL
ADVAPI_IsLocalComputer
(
LPCWSTR
ServerName
)
DECLSPEC_HIDDEN
;
BOOL
ADVAPI_GetComputerSid
(
PSID
sid
)
DECLSPEC_HIDDEN
;
...
...
dlls/appwiz.cpl/appwiz.h
View file @
962b31c8
...
...
@@ -19,8 +19,6 @@
#include "wine/heap.h"
#include "wine/unicode.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
typedef
enum
{
ADDON_GECKO
,
ADDON_MONO
...
...
dlls/avifil32/avifile_private.h
View file @
962b31c8
...
...
@@ -22,8 +22,6 @@
#include <windef.h>
#include <winuser.h>
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#ifndef MAX_AVISTREAMS
#define MAX_AVISTREAMS 8
#endif
...
...
dlls/comctl32/comctl32.h
View file @
962b31c8
...
...
@@ -38,8 +38,6 @@
extern
HMODULE
COMCTL32_hModule
DECLSPEC_HIDDEN
;
extern
HBRUSH
COMCTL32_hPattern55AABrush
DECLSPEC_HIDDEN
;
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
/* Property sheet / Wizard */
#define IDD_PROPSHEET 1006
#define IDD_WIZARD 1020
...
...
dlls/comdlg32/cdlg.h
View file @
962b31c8
...
...
@@ -23,8 +23,6 @@
#include "dlgs.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
/* Common dialogs implementation globals */
#define COMDLG32_Atom MAKEINTATOM(0xa000)
/* MS uses this one to identify props */
...
...
dlls/crypt32/crypt32_private.h
View file @
962b31c8
...
...
@@ -21,8 +21,6 @@
#include "wine/list.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
/* a few asn.1 tags we need */
#define ASN_BOOL (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x01)
#define ASN_BITSTRING (ASN_UNIVERSAL | ASN_PRIMITIVE | 0x03)
...
...
dlls/d2d1/d2d1_private.h
View file @
962b31c8
...
...
@@ -31,10 +31,6 @@
#endif
#include "dwrite_2.h"
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif
enum
d2d_brush_type
{
D2D_BRUSH_TYPE_SOLID
,
...
...
dlls/d3d11/d3d11_private.h
View file @
962b31c8
...
...
@@ -38,10 +38,6 @@
#include "wine/winedxgi.h"
#include "wine/rbtree.h"
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif
#define MAKE_TAG(ch0, ch1, ch2, ch3) \
((DWORD)(ch0) | ((DWORD)(ch1) << 8) | \
((DWORD)(ch2) << 16) | ((DWORD)(ch3) << 24 ))
...
...
dlls/d3d12/d3d12_main.c
View file @
962b31c8
...
...
@@ -34,8 +34,6 @@
#include <vkd3d.h>
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d12
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
...
...
dlls/d3d9/d3d9_private.h
View file @
962b31c8
...
...
@@ -47,8 +47,6 @@
#define D3D9_TEXTURE_MIPMAP_DIRTY 0x1
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
extern
const
struct
wined3d_parent_ops
d3d9_null_wined3d_parent_ops
DECLSPEC_HIDDEN
;
HRESULT
vdecl_convert_fvf
(
DWORD
FVF
,
D3DVERTEXELEMENT9
**
ppVertexElements
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3drm/d3drm_private.h
View file @
962b31c8
...
...
@@ -33,10 +33,6 @@
#include "wine/heap.h"
#include "wine/list.h"
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a)))
#endif
struct
d3drm_object
{
LONG
ref
;
...
...
dlls/d3dx9_36/d3dx9_private.h
View file @
962b31c8
...
...
@@ -32,8 +32,6 @@
#define ULONG64_MAX (~(ULONG64)0)
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(*array))
struct
vec4
{
float
x
,
y
,
z
,
w
;
...
...
dlls/ddraw/ddraw_private.h
View file @
962b31c8
...
...
@@ -39,8 +39,6 @@
#include "wine/list.h"
#include "wine/wined3d.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
extern
const
struct
wined3d_parent_ops
ddraw_null_wined3d_parent_ops
DECLSPEC_HIDDEN
;
extern
DWORD
force_refresh_rate
DECLSPEC_HIDDEN
;
...
...
dlls/dmloader/dmloader_private.h
View file @
962b31c8
...
...
@@ -42,7 +42,6 @@
#include "dmusicf.h"
#include "dmusics.h"
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
/* dmloader.dll global (for DllCanUnloadNow) */
...
...
dlls/dwrite/dwrite_private.h
View file @
962b31c8
...
...
@@ -24,8 +24,6 @@
#include "wine/list.h"
#include "wine/unicode.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
static
const
DWRITE_MATRIX
identity
=
{
1
.
0
f
,
0
.
0
f
,
...
...
dlls/dxgi/dxgi_private.h
View file @
962b31c8
...
...
@@ -40,8 +40,6 @@
#include "wine/wined3d.h"
#include "wine/winedxgi.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
enum
dxgi_frame_latency
{
DXGI_FRAME_LATENCY_MAX
=
16
,
...
...
dlls/gdiplus/gdiplus_private.h
View file @
962b31c8
...
...
@@ -35,8 +35,6 @@
#include "gdiplus.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_SOLID | PS_ENDCAP_FLAT | PS_JOIN_MITER)
#define MAX_ARC_PTS (13)
#define MAX_DASHLEN (16)
/* this is a limitation of gdi */
...
...
dlls/msi/tokenize.c
View file @
962b31c8
...
...
@@ -77,8 +77,6 @@ static const WCHAR updateW[] = {'U','P','D','A','T','E'};
static
const
WCHAR
valuesW
[]
=
{
'V'
,
'A'
,
'L'
,
'U'
,
'E'
,
'S'
};
static
const
WCHAR
whereW
[]
=
{
'W'
,
'H'
,
'E'
,
'R'
,
'E'
};
#define ARRAY_SIZE(array) (sizeof(array)/sizeof((array)[0]))
/*
** These are the keywords
** They MUST be in alphabetical order
...
...
dlls/msxml3/msxml_private.h
View file @
962b31c8
...
...
@@ -31,8 +31,6 @@
# error You must include config.h to use this header
#endif
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
typedef
enum
{
MSXML_DEFAULT
=
0
,
MSXML2
=
20
,
...
...
dlls/scrrun/scrrun_private.h
View file @
962b31c8
...
...
@@ -18,8 +18,6 @@
#ifndef _SCRRUN_PRIVATE_H_
#define _SCRRUN_PRIVATE_H_
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
extern
HRESULT
WINAPI
FileSystem_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
WINAPI
Dictionary_CreateInstance
(
IClassFactory
*
,
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/shell32/shell32_main.h
View file @
962b31c8
...
...
@@ -39,8 +39,6 @@
#include "wine/unicode.h"
#include "wine/list.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
/*******************************************
* global SHELL32.DLL variables
*/
...
...
dlls/user32/user_private.h
View file @
962b31c8
...
...
@@ -32,8 +32,6 @@
#define GET_WORD(ptr) (*(const WORD *)(ptr))
#define GET_DWORD(ptr) (*(const DWORD *)(ptr))
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#define WM_SYSTIMER 0x0118
#define WM_POPUPSYSTEMMENU 0x0313
...
...
dlls/usp10/usp10_internal.h
View file @
962b31c8
...
...
@@ -27,10 +27,6 @@
( (ULONG)_x2 << 8 ) | \
(ULONG)_x1 )
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif
enum
usp10_script
{
Script_Undefined
=
0x00
,
...
...
dlls/wined3d/wined3d_private.h
View file @
962b31c8
...
...
@@ -58,10 +58,6 @@
#include "wine/rbtree.h"
#include "wine/wgl_driver.h"
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif
#define MAKEDWORD_VERSION(maj, min) (((maj & 0xffffu) << 16) | (min & 0xffffu))
/* Driver quirks */
...
...
dlls/winevulkan/vulkan_private.h
View file @
962b31c8
...
...
@@ -36,10 +36,6 @@
/* Magic value defined by Vulkan ICD / Loader spec */
#define VULKAN_ICD_MAGIC_VALUE 0x01CDC0DE
#ifndef ARRAY_SIZE
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#endif
#define WINEVULKAN_QUIRK_GET_DEVICE_PROC_ADDR 0x00000001
struct
vulkan_func
...
...
dlls/wshom.ocx/wshom_private.h
View file @
962b31c8
...
...
@@ -25,8 +25,6 @@
#include "ole2.h"
#include "olectl.h"
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
/* typelibs */
typedef
enum
tid_t
{
NULL_tid
,
...
...
dlls/xmllite/xmllite_private.h
View file @
962b31c8
...
...
@@ -23,8 +23,6 @@
#include "wine/heap.h"
#define ARRAY_SIZE(array) (sizeof(array)/sizeof((array)[0]))
static
inline
void
*
m_alloc
(
IMalloc
*
imalloc
,
size_t
len
)
{
if
(
imalloc
)
...
...
include/wine/test.h
View file @
962b31c8
...
...
@@ -137,7 +137,9 @@ extern void __winetest_cdecl winetest_trace( const char *msg, ... ) WINETEST_PRI
#define todo_wine_if(is_todo) todo_if((is_todo) && !strcmp(winetest_platform, "wine"))
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#ifndef ARRAY_SIZE
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif
#ifdef NONAMELESSUNION
# define U(x) (x).u
...
...
include/winnt.h
View file @
962b31c8
...
...
@@ -759,6 +759,10 @@ typedef struct _MEMORY_BASIC_INFORMATION
#define CONTAINING_RECORD(address, type, field) \
((type *)((PCHAR)(address) - offsetof(type, field)))
#ifdef __WINESRC__
# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#endif
/* Types */
typedef
struct
_LIST_ENTRY
{
...
...
programs/notepad/main.h
View file @
962b31c8
...
...
@@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define ARRAY_SIZE(a) sizeof(a)/sizeof((a)[0])
#include "notepad_res.h"
#define MAX_STRING_LEN 255
...
...
programs/reg/reg.h
View file @
962b31c8
...
...
@@ -21,7 +21,6 @@
#include "resource.h"
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(*A))
#define MAX_SUBKEY_LEN 257
/* reg.c */
...
...
programs/regedit/main.h
View file @
962b31c8
...
...
@@ -30,8 +30,6 @@
#define SPLIT_WIDTH 5
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(*A))
#define MAX_NEW_KEY_LEN 128
#define KEY_MAX_LEN 1024
...
...
programs/regedit/regproc.c
View file @
962b31c8
...
...
@@ -43,8 +43,6 @@ static HKEY reg_class_keys[] = {
HKEY_CURRENT_CONFIG
,
HKEY_CURRENT_USER
,
HKEY_DYN_DATA
};
#define ARRAY_SIZE(A) (sizeof(A)/sizeof(*A))
void
*
heap_xalloc
(
size_t
size
)
{
void
*
buf
=
heap_alloc
(
size
);
...
...
programs/winecfg/winecfg.h
View file @
962b31c8
...
...
@@ -38,8 +38,6 @@
#define IS_OPTION_FALSE(ch) \
((ch) == 'n' || (ch) == 'N' || (ch) == 'f' || (ch) == 'F' || (ch) == '0')
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
extern
WCHAR
*
current_app
;
/* NULL means editing global settings */
/* Use get_reg_key and set_reg_key to alter registry settings. The changes made through
...
...
programs/winedbg/debugger.h
View file @
962b31c8
...
...
@@ -39,8 +39,6 @@
#include "oaidl.h"
#include <wine/list.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define ADDRSIZE (dbg_curr_process->be_cpu->pointer_size)
#define ADDRWIDTH (ADDRSIZE * 2)
...
...
tools/make_xftmpl.c
View file @
962b31c8
...
...
@@ -35,8 +35,6 @@
#include "windef.h"
#include "guiddef.h"
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
#define TOKEN_NAME 1
#define TOKEN_STRING 2
#define TOKEN_INTEGER 3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment