stddef.h (50d7bd38c3aafc4749e05e8d7fcb616979143602) stddef.h (3080ea5553cc909b000d1f1d964a9041962f2c5b)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_STDDEF_H
3#define _LINUX_STDDEF_H
4
5#include <uapi/linux/stddef.h>
6
7#undef NULL
8#define NULL ((void *)0)

--- 70 unchanged lines hidden (view full) ---

79 * used normally without sub-struct naming, and the latter can be
80 * used to reason about the start, end, and size of the group of
81 * struct members. Includes struct tag argument for the named copy,
82 * so the specified layout can be reused later.
83 */
84#define struct_group_tagged(TAG, NAME, MEMBERS...) \
85 __struct_group(TAG, NAME, /* no attrs */, MEMBERS)
86
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_STDDEF_H
3#define _LINUX_STDDEF_H
4
5#include <uapi/linux/stddef.h>
6
7#undef NULL
8#define NULL ((void *)0)

--- 70 unchanged lines hidden (view full) ---

79 * used normally without sub-struct naming, and the latter can be
80 * used to reason about the start, end, and size of the group of
81 * struct members. Includes struct tag argument for the named copy,
82 * so the specified layout can be reused later.
83 */
84#define struct_group_tagged(TAG, NAME, MEMBERS...) \
85 __struct_group(TAG, NAME, /* no attrs */, MEMBERS)
86
87/**
88 * DECLARE_FLEX_ARRAY() - Declare a flexible array usable in a union
89 *
90 * @TYPE: The type of each flexible array element
91 * @NAME: The name of the flexible array member
92 *
93 * In order to have a flexible array member in a union or alone in a
94 * struct, it needs to be wrapped in an anonymous struct with at least 1
95 * named member, but that member can be empty.
96 */
97#define DECLARE_FLEX_ARRAY(TYPE, NAME) \
98 __DECLARE_FLEX_ARRAY(TYPE, NAME)
99
87#endif
100#endif