svn commit: samba r25448 - in branches/SAMBA_4_0: . source/build/smb_build source/lib/replace source/libcli/util source/librpc/ndr

Andrew Bartlett abartlet at samba.org
Mon Oct 1 21:02:08 GMT 2007


On Mon, 2007-10-01 at 19:30 +0000, jelmer at samba.org wrote:
> Author: jelmer
> Date: 2007-10-01 19:30:27 +0000 (Mon, 01 Oct 2007)
> New Revision: 25448
> 
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25448
> 
> Log:
> Remove IMMEDIATE_STRUCTURES define, which was used for splint. 
> Newer versions of splint support immediate structures just fine.

splint may be fine, but what about all the C compilers?  Split was just
an extra case, where the C compiler didn't support this. 

> Modified: branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4
> ===================================================================
> --- branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4	2007-10-01 18:58:38 UTC (rev 25447)
> +++ branches/SAMBA_4_0/source/lib/replace/libreplace_cc.m4	2007-10-01 19:30:27 UTC (rev 25448)
> @@ -159,8 +159,8 @@
>  	libreplace_cv_immediate_structures=no,
>  	libreplace_cv_immediate_structures=cross)
>  ])
> -if test x"$libreplace_cv_immediate_structures" = x"yes"; then
> -	AC_DEFINE(HAVE_IMMEDIATE_STRUCTURES,1,[Whether the compiler supports immediate structures])
> +if test x"$libreplace_cv_immediate_structures" = x"no"; then
> +	AC_MSG_ERROR([compiler does not support immediate structures])
>  fi
>  
>  AC__LIBREPLACE_ONLY_CC_CHECKS_END
> 
> Modified: branches/SAMBA_4_0/source/libcli/util/ntstatus.h
> ===================================================================
> --- branches/SAMBA_4_0/source/libcli/util/ntstatus.h	2007-10-01 18:58:38 UTC (rev 25447)
> +++ branches/SAMBA_4_0/source/libcli/util/ntstatus.h	2007-10-01 19:30:27 UTC (rev 25448)
> @@ -29,15 +29,9 @@
>     from using bool for internal functions 
>  */
>  
> -#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
>  
>  /* Win32 Status codes. */
>  
> 
> Modified: branches/SAMBA_4_0/source/libcli/util/werror.h
> ===================================================================
> --- branches/SAMBA_4_0/source/libcli/util/werror.h	2007-10-01 18:58:38 UTC (rev 25447)
> +++ branches/SAMBA_4_0/source/libcli/util/werror.h	2007-10-01 19:30:27 UTC (rev 25448)
> @@ -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))
> 
> Modified: branches/SAMBA_4_0/source/librpc/ndr/libndr.h
> ===================================================================
> --- branches/SAMBA_4_0/source/librpc/ndr/libndr.h	2007-10-01 18:58:38 UTC (rev 25447)
> +++ branches/SAMBA_4_0/source/librpc/ndr/libndr.h	2007-10-01 19:30:27 UTC (rev 25448)
> @@ -285,6 +285,7 @@
>  typedef void (*ndr_print_function_t)(struct ndr_print *, const char *, int, const void *);
>  
>  #include "librpc/gen_ndr/misc.h"
> +#include "libcli/util/werror.h"
>  #include "librpc/ndr/libndr_proto.h"
>  
>  extern const struct ndr_syntax_id ndr_transfer_syntax;
> 
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com

-------------- 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/20071001/0cb09ac6/attachment.bin


More information about the samba-technical mailing list