Changeset 141

Show
Ignore:
Timestamp:
04/04/05 20:01:09 (4 years ago)
Author:
athomas
Message:

Added Fixed Point? template, made Type Resolver? use GCC cxxabi functions when
compiling under GCC.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libcrash/trunk/crash/Makefile.am

    r139 r141  
    1212libcrash_la_SOURCES= \ 
    1313        Allocator.h \ 
     14        FixedPoint.h \ 
    1415        Singleton.h \ 
    1516        Tree.h \ 
  • libcrash/trunk/crash/TypeResolver.cc

    r135 r141  
    11#include <crash/TypeResolver.h> 
     2#ifdef __GNUC__ 
     3#include <cxxabi.h> 
     4#else 
    25#include <string> 
    36#include <vector> 
     
    58#include <set> 
    69#include <time.h> 
     10#endif 
    711 
    812using namespace std; 
     
    2731 
    2832string type2string(const std::type_info &type) { 
     33#ifdef __GNUC__ 
     34int status; 
     35 
     36        return abi::__cxa_demangle(type.name(), 0, 0, &status); 
     37#else 
    2938        RESOLVE(string); 
    3039        RESOLVE(char); 
     
    4453        RESOLVE(time_t); 
    4554        return type.name(); 
     55#endif 
    4656} 
    4757