/*-
 * Copyright (c) 1999 Qube Software, Ltd.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 * 1. Redistributions of the source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Any redistribution solely in binary form must conspicuously
 *    reproduce the following disclaimer in documentation provided with the
 *    binary redistribution.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'', WITHOUT ANY WARRANTIES, EXPRESS
 * OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  LICENSOR SHALL
 * NOT BE LIABLE FOR ANY LOSS OR DAMAGES RESULTING FROM THE USE OF THIS
 * SOFTWARE, EITHER ALONE OR IN COMBINATION WITH ANY OTHER SOFTWARE.
 *
 *	$Id: xdecl.h,v 1.5 2000/05/30 17:03:14 hugh Exp $
 */

#ifndef __xdecl_h__
#define __xdecl_h__

#ifdef XDECL_SYNTAX

#define XDECL(x)   [x]
#define TRANSIENT  __transient
#define PUBLISHED  __published
#define XDECL_IGNORE __ignore
#define XDECL_IGNORENAMESPACE(_x)       XDECL_IGNORE namespace _x

#define XUNION(x)   if (x)

#else

/* Provide dummy versions */

#define XDECL(x)
#define XUNION(x)
#define TRANSIENT
#define PUBLISHED
#define XDECL_IGNORE
#define XDECL_IGNORENAMESPACE(_x)

#endif /* XDECL_SYNTAX */

/* XXX HACK */
XDECL_IGNORENAMESPACE(std);

#endif /* __xdecl_h__ */
