mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-30 21:35:41 +00:00
shared/trivial: whitespace
This commit is contained in:
parent
a38782f378
commit
c2245e3e5c
|
@ -22,42 +22,36 @@
|
|||
#define __GSYSTEM_LOCAL_ALLOC_H__
|
||||
|
||||
#define NM_AUTO_DEFINE_FCN_VOID(CastType, name, func) \
|
||||
static inline void name (void *v) \
|
||||
{ \
|
||||
func (*((CastType *) v)); \
|
||||
}
|
||||
static inline void name (void *v) \
|
||||
{ \
|
||||
func (*((CastType *) v)); \
|
||||
}
|
||||
|
||||
#define NM_AUTO_DEFINE_FCN_VOID0(CastType, name, func) \
|
||||
static inline void name (void *v) \
|
||||
{ \
|
||||
if (*((CastType *) v)) \
|
||||
func (*((CastType *) v)); \
|
||||
}
|
||||
static inline void name (void *v) \
|
||||
{ \
|
||||
if (*((CastType *) v)) \
|
||||
func (*((CastType *) v)); \
|
||||
}
|
||||
|
||||
#define NM_AUTO_DEFINE_FCN(Type, name, func) \
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
func (*v); \
|
||||
}
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
func (*v); \
|
||||
}
|
||||
|
||||
#define NM_AUTO_DEFINE_FCN0(Type, name, func) \
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
if (*v) \
|
||||
func (*v); \
|
||||
}
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
if (*v) \
|
||||
func (*v); \
|
||||
}
|
||||
|
||||
#define NM_AUTO_DEFINE_FCN_STRUCT(Type, name, func) \
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
func (v); \
|
||||
}
|
||||
|
||||
/* These functions shouldn't be invoked directly;
|
||||
* they are stubs that:
|
||||
* 1) Take a pointer to the location (typically itself a pointer).
|
||||
* 2) Provide %NULL-safety where it doesn't exist already (e.g. g_object_unref)
|
||||
*/
|
||||
static inline void name (Type *v) \
|
||||
{ \
|
||||
func (v); \
|
||||
}
|
||||
|
||||
/**
|
||||
* gs_free:
|
||||
|
|
Loading…
Reference in a new issue