svn commit: samba r14473 - in branches/SAMBA_4_0/source/libcli/util: .

Tim Potter tpot at samba.org
Thu Mar 16 22:39:03 GMT 2006


On Thu, 2006-03-16 at 13:19 +0000, jelmer at samba.org wrote:
> Author: jelmer
> Date: 2006-03-16 13:19:31 +0000 (Thu, 16 Mar 2006)
> New Revision: 14473

> Log:
> Modern splint has no problems with immediate structures.
> 
> Modified:
>    branches/SAMBA_4_0/source/libcli/util/nt_status.h
 
> -#if defined(HAVE_IMMEDIATE_STRUCTURES)
>  typedef struct {uint32_t v;} NTSTATUS;
>  #define NT_STATUS(x) ((NTSTATUS) { x })
>  #define NT_STATUS_V(x) ((x).v)
> -#else
> -typedef uint32_t NTSTATUS;
> -#define NT_STATUS(x) (x)
> -#define NT_STATUS_V(x) (x)
> -#endif

There's also a configure test for this which I believe was put in place
for compilers that don't support immediate structures.  That being said,
it seems that we are not making very much effort in Samba 4 to support
old, weird stuff so maybe this is OK.  Are immediate structures C99
compatible?


Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060317/a4de9328/attachment.bin


More information about the samba-technical mailing list