Author: sebor
Date: Mon Sep 19 17:31:27 2005
New Revision: 290321
URL: http://svn.apache.org/viewcvs?rev=290321&view=rev
Log:
2005-09-19 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-14 (part 3)
* extern_function_template.cpp: Renamed...
* extern_function_template_imp.cpp: ...to this.
* EXTERN_FUNCTION_TEMPLATE.cpp: Changed dependency on the above.
Added:
incubator/stdcxx/trunk/etc/config/src/extern_function_template_imp.cpp
- copied unchanged from r290002,
incubator/stdcxx/trunk/etc/config/src/extern_function_template.cpp
Removed:
incubator/stdcxx/trunk/etc/config/src/extern_function_template.cpp
Modified:
incubator/stdcxx/trunk/etc/config/src/EXTERN_FUNCTION_TEMPLATE.cpp
Modified: incubator/stdcxx/trunk/etc/config/src/EXTERN_FUNCTION_TEMPLATE.cpp
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/src/EXTERN_FUNCTION_TEMPLATE.cpp?rev=290321&r1=290320&r2=290321&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXTERN_FUNCTION_TEMPLATE.cpp
(original)
+++ incubator/stdcxx/trunk/etc/config/src/EXTERN_FUNCTION_TEMPLATE.cpp Mon Sep
19 17:31:27 2005
@@ -4,14 +4,14 @@
# include "config.h"
#endif // _RWSTD_USE_CONFIG
-// establish a dependency on extern_function_template.{cpp,o}
-#ifndef _RWSTD_NO_extern_function_template
+// establish a dependency on extern_function_template_imp.{cpp,o}
+#ifndef _RWSTD_NO_extern_function_template_imp
// link the object file produced by compiling this file
// with the object file below
-// LDOPTS = ./extern_function_template.o
+// LDOPTS = ./extern_function_template_imp.o
-#endif // _RWSTD_NO_extern_function_template
+#endif // _RWSTD_NO_extern_function_template_imp
template <class T>
@@ -24,7 +24,7 @@
template <class T>
S<T> foobar (S<T> s)
{
- // foobar<int>() explicitly instantiated in extern_function_template.cpp
+ // foobar<int>() explicitly instantiated in
extern_function_template_imp.cpp
// is defined to set s.t to 1
s.t = -1;
@@ -35,7 +35,7 @@
int main ()
{
- // S<int>::bar () is defined to return 1 in extern_function_template.o
+ // S<int>::bar () is defined to return 1 in extern_function_template_imp.o
S<int> s;
@@ -45,7 +45,7 @@
res += foobar (s).t;
// verify that the call resolves to the definition emitted
- // by the explicit instantiation in extern_function_template.o
+ // by the explicit instantiation in extern_function_template_imp.o
// and not the one here
return !(1 == res);
}