mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
r25448: Remove IMMEDIATE_STRUCTURES define, which was used for splint. Newer versions of splint support immediate structures just fine.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b1aae72420
commit
d54a47ecdc
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _WERROR_H_
|
||||
#define _WERROR_H
|
||||
#define _WERROR_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -29,15 +29,9 @@
|
||||
from using bool for internal functions
|
||||
*/
|
||||
|
||||
#if defined(HAVE_IMMEDIATE_STRUCTURES)
|
||||
typedef struct {uint32_t v;} WERROR;
|
||||
#define W_ERROR(x) ((WERROR) { x })
|
||||
#define W_ERROR_V(x) ((x).v)
|
||||
#else
|
||||
typedef uint32_t WERROR;
|
||||
#define W_ERROR(x) (x)
|
||||
#define W_ERROR_V(x) (x)
|
||||
#endif
|
||||
|
||||
#define W_ERROR_IS_OK(x) (W_ERROR_V(x) == 0)
|
||||
#define W_ERROR_EQUAL(x,y) (W_ERROR_V(x) == W_ERROR_V(y))
|
||||
|
||||
Reference in New Issue
Block a user