1
0
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:
Jelmer Vernooij
2007-10-01 19:30:27 +00:00
committed by Gerald (Jerry) Carter
parent b1aae72420
commit d54a47ecdc
5 changed files with 4 additions and 19 deletions

View File

@@ -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))