diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/IIOP/test/cubit.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/IIOP/test/cubit.h')
-rw-r--r-- | TAO/IIOP/test/cubit.h | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/TAO/IIOP/test/cubit.h b/TAO/IIOP/test/cubit.h index 78d6b604052..12d99b4e403 100644 --- a/TAO/IIOP/test/cubit.h +++ b/TAO/IIOP/test/cubit.h @@ -1,6 +1,6 @@ // $Id$ -// @(#)cubit.hh 1.1 95/09/10 +// @(#)cubit.hh 1.1 95/09/10 // Copyright 1994-1995 by Sun Microsystems Inc. // All Rights Reserved // @@ -15,12 +15,12 @@ // mean lots of narrowing/widening/RTTI infrastructure. // -#ifndef _CUBIT_HH -#define _CUBIT_HH +#ifndef _CUBIT_HH +#define _CUBIT_HH -#ifdef _MSC_VER -#pragma pack (push, 1) // VC++, known padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (push, 1) // VC++, known padding rules +#endif // VC++ #include <corba/orb.h> #include <corba/stub.h> @@ -30,16 +30,16 @@ // C style binding // -typedef CORBA_Object Cubit; +typedef CORBA_Object Cubit; typedef Cubit *Cubit_ptr, *CubitRef; -extern CORBA_TypeCode_ptr TC_Cubit_Many; -extern CORBA_TypeCode_ptr TC_Cubit_oneof; +extern CORBA_TypeCode_ptr TC_Cubit_Many; +extern CORBA_TypeCode_ptr TC_Cubit_oneof; struct Cubit_Many { - CORBA_Octet o; - CORBA_Long l; - CORBA_Short s; + CORBA_Octet o; + CORBA_Long l; + CORBA_Short s; }; enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, @@ -48,61 +48,61 @@ enum Cubit_discrim {e_0th = 0, e_1st = 1, e_2nd = 2, struct Cubit_oneof { Cubit_discrim _disc; - union { - CORBA_Octet o; - CORBA_Short s; - CORBA_Long l; + union { + CORBA_Octet o; + CORBA_Short s; + CORBA_Long l; Cubit_Many cm; }; }; CORBA_Octet Cubit_cube_octet ( - Cubit_ptr target, - CORBA_Octet o, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Octet o, + CORBA_Environment &env ); CORBA_Short Cubit_cube_short ( - Cubit_ptr target, - CORBA_Short s, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Short s, + CORBA_Environment &env ); CORBA_Long Cubit_cube_long ( - Cubit_ptr target, - CORBA_Long l, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Long l, + CORBA_Environment &env ); Cubit_Many * Cubit_cube_struct ( - Cubit_ptr target, - Cubit_Many &values, - CORBA_Environment &env + Cubit_ptr target, + Cubit_Many &values, + CORBA_Environment &env ); Cubit_oneof * Cubit_cube_union ( - Cubit_ptr target, + Cubit_ptr target, Cubit_oneof &values, - CORBA_Environment &env + CORBA_Environment &env ); void Cubit_please_exit ( - Cubit_ptr target, - CORBA_Environment &env + Cubit_ptr target, + CORBA_Environment &env ); -extern const CORBA_Char *Cubit__id; // type ID +extern const CORBA_Char *Cubit__id; // type ID extern const TAO_Skel_Entry Cubit_operations []; -#ifdef _MSC_VER -#pragma pack (pop) // VC++, go back to other padding rules -#endif // VC++ +#ifdef _MSC_VER +#pragma pack (pop) // VC++, go back to other padding rules +#endif // VC++ -#endif // _CUBIT_HH +#endif // _CUBIT_HH |