From 92d5809052a456de5f877b28f72418b266141f58 Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 10 Jun 2016 22:51:50 +0300 Subject: func_attr: Fix other new linter errors --- src/nvim/func_attr.h | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/src/nvim/func_attr.h b/src/nvim/func_attr.h index ccc9185dbf..ea017ab0c8 100644 --- a/src/nvim/func_attr.h +++ b/src/nvim/func_attr.h @@ -41,6 +41,10 @@ // $ gcc -E -dM - = 40900 # define REAL_FATTR_NONNULL_RET __attribute__((returns_nonnull)) # endif # endif # endif - // define function attributes that haven't been defined for this specific - // compiler. +// define function attributes that haven't been defined for this specific +// compiler. # ifndef REAL_FATTR_MALLOC # define REAL_FATTR_MALLOC @@ -138,7 +142,7 @@ # endif # ifndef REAL_FATTR_ALLOC_SIZE_PROD -# define REAL_FATTR_ALLOC_SIZE_PROD(x,y) +# define REAL_FATTR_ALLOC_SIZE_PROD(x, y) # endif # ifndef REAL_FATTR_ALLOC_ALIGN @@ -183,7 +187,7 @@ # define FUNC_API_NOEXPORT # define FUNC_ATTR_MALLOC REAL_FATTR_MALLOC # define FUNC_ATTR_ALLOC_SIZE(x) REAL_FATTR_ALLOC_SIZE(x) -# define FUNC_ATTR_ALLOC_SIZE_PROD(x,y) REAL_FATTR_ALLOC_SIZE_PROD(x,y) +# define FUNC_ATTR_ALLOC_SIZE_PROD(x, y) REAL_FATTR_ALLOC_SIZE_PROD(x, y) # define FUNC_ATTR_ALLOC_ALIGN(x) REAL_FATTR_ALLOC_ALIGN(x) # define FUNC_ATTR_PURE REAL_FATTR_PURE # define FUNC_ATTR_CONST REAL_FATTR_CONST @@ -196,7 +200,7 @@ #elif !defined(DO_NOT_DEFINE_EMPTY_ATTRIBUTES) # define FUNC_ATTR_MALLOC # define FUNC_ATTR_ALLOC_SIZE(x) -# define FUNC_ATTR_ALLOC_SIZE_PROD(x,y) +# define FUNC_ATTR_ALLOC_SIZE_PROD(x, y) # define FUNC_ATTR_ALLOC_ALIGN(x) # define FUNC_ATTR_PURE # define FUNC_ATTR_CONST @@ -207,3 +211,4 @@ # define FUNC_ATTR_NONNULL_ARG(...) # define FUNC_ATTR_NONNULL_RET #endif +#endif // NVIM_FUNC_ATTR_H -- cgit