summaryrefslogtreecommitdiff
path: root/netsvcs
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-01 14:54:54 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-01 14:54:54 +0000
commit390e1225ecb0ead241ad8ec2dd1a68d163b3e82a (patch)
treeca394172cf6d56d2b2679e8b8cd876eda23a0a3f /netsvcs
parent44294068852cf81a7254ac151865bcf9a2660bec (diff)
downloadATCD-390e1225ecb0ead241ad8ec2dd1a68d163b3e82a.tar.gz
move inline functions to .i and changed inline to ACE_INLINE
Diffstat (limited to 'netsvcs')
-rw-r--r--netsvcs/lib/Base_Optimizer.cpp9
-rw-r--r--netsvcs/lib/Base_Optimizer.h21
-rw-r--r--netsvcs/lib/Base_Optimizer.i22
-rw-r--r--netsvcs/lib/Makefile3
4 files changed, 35 insertions, 20 deletions
diff --git a/netsvcs/lib/Base_Optimizer.cpp b/netsvcs/lib/Base_Optimizer.cpp
new file mode 100644
index 00000000000..1e6393c9151
--- /dev/null
+++ b/netsvcs/lib/Base_Optimizer.cpp
@@ -0,0 +1,9 @@
+// $Id$
+
+#define ACE_BUILD_DLL
+
+#include "Base_Optimizer.h"
+
+#if !defined (__ACE_INLINE__)
+# include "Base_Optimizer.i"
+#endif /* __ACE_INLINE__ */
diff --git a/netsvcs/lib/Base_Optimizer.h b/netsvcs/lib/Base_Optimizer.h
index b01e6f4c461..41f8b7f6c5f 100644
--- a/netsvcs/lib/Base_Optimizer.h
+++ b/netsvcs/lib/Base_Optimizer.h
@@ -17,6 +17,8 @@
#if !defined (BASE_OPTIMIZER_H)
#define BASE_OPTIMIZER_H
+#include "ace/OS.h"
+
template<class Base, class Member>
struct Base_Optimizer : public Base
// = TITLE
@@ -31,23 +33,4 @@ struct Base_Optimizer : public Base
Member m_;
};
-template<class Base, class Member> inline
-Base_Optimizer<Base, Member>::Base_Optimizer (void)
-{
-}
-
-template<class Base, class Member> inline
-Base_Optimizer<Base, Member>::Base_Optimizer (const Base &base,
- const Member &member)
- : Base (base),
- m_ (member)
-{
-}
-
-template<class Base, class Member> inline
-Base_Optimizer<Base, Member>::Base_Optimizer (const Base &base)
- : Base (base)
-{
-}
-
#endif /* BASE_OPTIMIZER_H */
diff --git a/netsvcs/lib/Base_Optimizer.i b/netsvcs/lib/Base_Optimizer.i
new file mode 100644
index 00000000000..eba6c3b3128
--- /dev/null
+++ b/netsvcs/lib/Base_Optimizer.i
@@ -0,0 +1,22 @@
+/* -*- C++ -*- */
+// $Id$
+
+template<class Base, class Member> ACE_INLINE
+Base_Optimizer<Base, Member>::Base_Optimizer (void)
+{
+}
+
+template<class Base, class Member> ACE_INLINE
+Base_Optimizer<Base, Member>::Base_Optimizer (const Base &base,
+ const Member &member)
+ : Base (base),
+ m_ (member)
+{
+}
+
+template<class Base, class Member> ACE_INLINE
+Base_Optimizer<Base, Member>::Base_Optimizer (const Base &base)
+ : Base (base)
+{
+}
+
diff --git a/netsvcs/lib/Makefile b/netsvcs/lib/Makefile
index 8b02a108171..d9ce8ff29d6 100644
--- a/netsvcs/lib/Makefile
+++ b/netsvcs/lib/Makefile
@@ -15,7 +15,8 @@ FILES = TS_Server_Handler \
Log_Message_Receiver \
Server_Logging_Handler \
Token_Handler \
- Logging_Strategy
+ Logging_Strategy \
+ Base_Optimizer
DEFS = $(addsuffix .h,$(FILES))
LSRC = $(addsuffix .cpp,$(FILES))