Skip to content

Commit

Permalink
Merge pull request #365 from jwillemsen/jwi-taox11prepost
Browse files Browse the repository at this point in the history
Add taox11 pre.h/post.h to reduce header dependency on ACE
  • Loading branch information
jwillemsen authored Apr 2, 2024
2 parents 192454e + df99636 commit 4f7a644
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 35 deletions.
4 changes: 2 additions & 2 deletions bin/MPC/config/ridl_base_defaults.mpb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ project: taox11_basedefaults, taobaseidldefaults {
after -= TAO_IDL_EXE
idlflags -= $(TAO_IDLFLAGS)
idlflags -= -Sa -St
idlflags += -Wb,pre_include=ace/pre.h \
-Wb,post_include=ace/post.h -I$(TAOX11_ROOT)
idlflags += -Wb,pre_include=tao/x11/pre.h \
-Wb,post_include=tao/x11/post.h -I$(TAOX11_ROOT)
idlflags += $(RIDLCFLAGS) -Sci -Ssi -Sa -St
}
8 changes: 4 additions & 4 deletions docs/src/compilation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ command line options should be used when invoking the RIDL compiler. +
Command line options: +

-----------------------------------
-Wb,pre_include=ace/pre.h
-Wb,post_include=ace/post.h
-Wb,pre_include=tao/x11/pre.h
-Wb,post_include=tao/x11/post.h
-I$TAOX11_ROOT
-Sci
-Ssi
Expand Down Expand Up @@ -47,8 +47,8 @@ When a client needs to use <<ami/taox11_ami.adoc#,CORBA AMI>>, the following
command line options should be applied to the RIDL compiler:

-----------------------------------
-Wb,pre_include=ace/pre.h
-Wb,post_include=ace/post.h
-Wb,pre_include=tao/x11/pre.h
-Wb,post_include=tao/x11/post.h
-I$TAOX11_ROOT
-Sci
-Ssi
Expand Down
4 changes: 2 additions & 2 deletions tao/x11/PolicyC.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef __RIDL_POLICYC_H_INCLUDED__
#define __RIDL_POLICYC_H_INCLUDED__

#include /**/ "ace/pre.h"
#include /**/ "tao/x11/pre.h"

#include "tao/x11/stddef.h"
#include "tao/x11/basic_traits.h"
Expand Down Expand Up @@ -518,7 +518,7 @@ TAOX11_Export std::ostream& operator<< (
#include "PolicyP.h"
#endif

#include /**/ "ace/post.h"
#include /**/ "tao/x11/post.h"

#endif // __RIDL_POLICYC_H_INCLUDED__

Expand Down
3 changes: 0 additions & 3 deletions tao/x11/dynamic_any/dynany_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#pragma once

#include /**/ "ace/pre.h"

#include "tao/x11/dynamic_any/dyn_common.h"

#if defined (_MSC_VER)
Expand Down Expand Up @@ -85,5 +83,4 @@ namespace TAOX11_NAMESPACE
# pragma warning(pop)
#endif /* _MSC_VER */

#include /**/ "ace/post.h"
#endif /* TAOX11_DYNANY_I_H */
4 changes: 2 additions & 2 deletions tao/x11/pi/policyfactory_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#pragma once

#include /**/ "ace/pre.h"
#include /**/ "tao/x11/pre.h"

#include "ace/Service_Config.h"
#include "tao/x11/pi/taox11_pi_export.h"
Expand Down Expand Up @@ -48,7 +48,7 @@ namespace TAOX11_NAMESPACE

#endif

#include /**/ "ace/post.h"
#include /**/ "tao/x11/post.h"

#endif /* TAOX11_POLICYFACTORY_MANAGER_INCLUDED */

5 changes: 0 additions & 5 deletions tao/x11/portable_server/sarg_traits_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#pragma once

#include /**/ "ace/pre.h"

#include "tao/x11/stddef.h"

namespace TAOX11_NAMESPACE::PS
Expand All @@ -29,7 +27,4 @@ namespace TAOX11_NAMESPACE::PS
};
} // namespace TAOX11_NAMESPACE::PS


#include /**/ "ace/post.h"

#endif /* TAOX11_SARG_TRAITS_T_H */
6 changes: 0 additions & 6 deletions tao/x11/portable_server/servant_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@

#pragma once

#include /**/ "ace/pre.h"

#include /**/ "ace/config-all.h"

#include "tao/x11/tao_corba.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/PortableServer/Servant_Base.h"
Expand Down Expand Up @@ -90,6 +86,4 @@ namespace TAOX11_NAMESPACE {
};
} // namespace TAOX11_NAMESPACE

#include /**/ "ace/post.h"

#endif // TAOX11_SERVANT_PROXY_H_INCLUDED
8 changes: 8 additions & 0 deletions tao/x11/post.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @file post.h
* @author Johnny Willemsen
*
* @brief Restore possible alignment rules
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
8 changes: 8 additions & 0 deletions tao/x11/pre.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @file pre.h
* @author Johnny Willemsen
*
* @brief Set possible alignment rules
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
10 changes: 2 additions & 8 deletions tests/ami_test/ami_collocation/ami_test_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#ifndef TAOX11_AMI_TEST_I_H
#define TAOX11_AMI_TEST_I_H

#include /**/ "ace/pre.h"

#include "testlib/taox11_testlog.h"

#include "ami_testS.h"
Expand All @@ -29,12 +27,8 @@ class AMI_TEST_Export AMI_Test_i

private:
int32_t in_l_last_;

const std::string in_str_;

const std::string in_str_last_;
std::string const in_str_;
std::string const in_str_last_;

};
#include /**/ "ace/post.h"
#endif /* TAOX11_AMI_TEST_I_H */

3 changes: 0 additions & 3 deletions tests/ami_test/multiple_idl_ami/hello2.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#ifndef TAOX11_HELLO2_H
#define TAOX11_HELLO2_H

#include /**/ "ace/pre.h"

#include "testlib/taox11_testlog.h"

#include "hello2S.h"
Expand Down Expand Up @@ -44,6 +42,5 @@ class Hello :
IDL::traits<CORBA::ORB>::ref_type orb_;
IDL::traits<PortableServer::POA>::ref_type poa_;
};
#include /**/ "ace/post.h"
#endif /* TAOX11_HELLO2_H */

0 comments on commit 4f7a644

Please sign in to comment.