Changeset 2339 in Sophya for trunk/SophyaLib/BaseTools
- Timestamp:
- Mar 10, 2003, 2:49:04 PM (23 years ago)
- Location:
- trunk/SophyaLib/BaseTools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/datatype.cc
r2327 r2339 12 12 { 13 13 } 14 /* 14 15 #if defined(__SGICC__) 15 template <class uint_1> 16 template <class T> 17 string DataTypeInfo<T>::getTypeName() 18 { 19 if (typeid(T) == typeid(uint_1)) return("uint_1"); 20 else if (typeid(T) == typeid(uint_2)) return("uint_2"); 21 else if (typeid(T) == typeid(int_2)) return("int_2"); 22 else if (typeid(T) == typeid(int_4)) return("int_4"); 23 else if (typeid(T) == typeid(int_8)) return("int_8"); 24 else if (typeid(T) == typeid(uint_4)) return("uint_4"); 25 else if (typeid(T) == typeid(uint_8)) return("uint_8"); 26 else if (typeid(T) == typeid(r_4)) return("r_4"); 27 else if (typeid(T) == typeid(r_8)) return("r_8"); 28 else if (typeid(T) == typeid(complex<r_4>)) return(" complex<r_4> "); 29 else if (typeid(T) == typeid(complex<r_8>)) return(" complex<r_8> "); 30 else return("???unknowntype???"); 31 } 32 #else 33 */ 34 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 16 35 string DataTypeInfo<uint_1>::getTypeName() { return("uint_1"); } 17 template <class uint_2> 36 DECL_TEMP_SPEC 18 37 string DataTypeInfo<uint_2>::getTypeName() { return("uint_2"); } 19 template <class int_2> 38 DECL_TEMP_SPEC 20 39 string DataTypeInfo<int_2>::getTypeName() { return("int_2"); } 21 template <class int_4> 40 DECL_TEMP_SPEC 22 41 string DataTypeInfo<int_4>::getTypeName() { return("int_4"); } 23 template <class int_8> 42 DECL_TEMP_SPEC 24 43 string DataTypeInfo<int_8>::getTypeName() { return("int_8"); } 25 template <class uint_4> 44 DECL_TEMP_SPEC 26 45 string DataTypeInfo<uint_4>::getTypeName() { return("uint_4"); } 27 template <class uint_8> 46 DECL_TEMP_SPEC 28 47 string DataTypeInfo<uint_8>::getTypeName() { return("uint_8"); } 29 template <class r_4> 48 DECL_TEMP_SPEC 30 49 string DataTypeInfo<r_4>::getTypeName() { return("r_4"); } 31 template <class r_8> 50 DECL_TEMP_SPEC 32 51 string DataTypeInfo<r_8>::getTypeName() { return("r_8"); } 33 template <class complex<r_4> > 52 DECL_TEMP_SPEC 34 53 string DataTypeInfo< complex<r_4> >::getTypeName() { return(" complex<r_4> "); } 35 template <class complex<r_8> > 54 DECL_TEMP_SPEC 36 55 string DataTypeInfo< complex<r_8> >::getTypeName() { return(" complex<r_8> "); } 37 #else 38 string DataTypeInfo<uint_1>::getTypeName() { return("uint_1"); } 39 string DataTypeInfo<uint_2>::getTypeName() { return("uint_2"); } 40 string DataTypeInfo<int_2>::getTypeName() { return("int_2"); } 41 string DataTypeInfo<int_4>::getTypeName() { return("int_4"); } 42 string DataTypeInfo<int_8>::getTypeName() { return("int_8"); } 43 string DataTypeInfo<uint_4>::getTypeName() { return("uint_4"); } 44 string DataTypeInfo<uint_8>::getTypeName() { return("uint_8"); } 45 string DataTypeInfo<r_4>::getTypeName() { return("r_4"); } 46 string DataTypeInfo<r_8>::getTypeName() { return("r_8"); } 47 string DataTypeInfo< complex<r_4> >::getTypeName() { return(" complex<r_4> "); } 48 string DataTypeInfo< complex<r_8> >::getTypeName() { return(" complex<r_8> "); } 56 /* 49 57 #endif 50 58 */ 51 59 52 60 string DecodeGCCTypeName(string gcctype) -
trunk/SophyaLib/BaseTools/dvlist.cc
r2327 r2339 475 475 476 476 /* --Methode-- */ 477 #if defined(__SGICC__) 478 template <class DVList> 479 #endif 477 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 480 478 void ObjFileIO<DVList>::WriteSelf(POutPersist& s) const 481 479 { … … 529 527 530 528 /* --Methode-- */ 531 #if defined(__SGICC__) 532 template <class DVList> 533 #endif 529 DECL_TEMP_SPEC /* equivalent a template <> , pour SGI-CC en particulier */ 534 530 void ObjFileIO<DVList>::ReadSelf(PInPersist& s) 535 531 { -
trunk/SophyaLib/BaseTools/machdefs_mkmf.h
r2322 r2339 244 244 /* HAS_STR_NPOS : has string::npos and not a global NPOS */ 245 245 /* NO_IOS_COMPLEX : does not have operator << defined for complex */ 246 /* DECL_TEMP_SPEC : Template specialization declaration */ 246 247 247 248 … … 262 263 #define CC_HAS_RTTI_SUPPORT 263 264 #endif 265 266 267 #ifndef DECL_TEMP_SPEC 268 #define DECL_TEMP_SPEC 269 #endif 270 264 271 265 272 /* now the specific things */ … … 314 321 #ifndef ANSI_TEMPLATES 315 322 #define ANSI_TEMPLATES 323 #undef DECL_TEMP_SPEC 324 #define DECL_TEMP_SPEC template <> 316 325 #endif 317 326 #endif -
trunk/SophyaLib/BaseTools/pexceptions.cc
r2322 r2339 6 6 7 7 // egcs ne semble pas connaitre set_new_handler (Reza 26/04/99) 8 #ifdef __GNUG__ 8 // ca ne passe plus avec SGI-CC -LANG:std $CHECK$ Reza 14/02/2003 9 #if defined( __GNUG__ ) || defined(__SGICC__) 9 10 void PFailHandler(void) {} 10 11 void InitFailNewHandler() {}
Note:
See TracChangeset
for help on using the changeset viewer.