Ignore:
Timestamp:
May 4, 2009, 8:51:56 PM (15 years ago)
Author:
buchmann
Message:

SystemCASS now uses autoconf/automake to build the API. Regression tests still
use the old Makefiles.
(thanks to Nicolas Pouillon)

The library directory no longer is "lib-arch-system". The directory now is "lib-linux". Everyone needs to pay attention about SYSTEMCASS environment variable.

Changes:

  • system header includes
  • Add includes to config.h (generated by autoconf/automake)
  • test:
    • linux preprocessor macro instead of _WIN32
    • CONFIG_DEBUG instead of DEBUG

Removes:

  • Makefile
  • guess_endianness.cc
  • guess_os.sh
  • assert.h (we now use standard assert.h)
  • Options.def
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_object.cc

    r17 r27  
    4040#include <map>
    4141
    42 #include "assert.h"
     42#include <cassert>
    4343#include "sc_object.h"
    4444//#include "sc_port.h"
     
    4646#include "sc_signal.h"
    4747#include "module_hierarchy.h"
     48#ifdef HAVE_CONFIG_H
     49#include "config.h"
     50#endif
    4851
    4952using namespace std;
     
    7174//    out += ".";
    7275  }
    73 //  ASSERT(name != NULL);
     76//  assert(name != NULL);
    7477  if (name)
    7578    out += name;
     
    203206{
    204207        object2name_t::iterator i = object2fullname.find (this);
    205 #ifdef DEBUG
     208#ifdef CONFIG_DEBUG
    206209        if (i == object2fullname.end ()) {
    207210                cerr << "Internal error : can't find name of " << this << "\n";
     
    217220/*
    218221        object2name_t::iterator i = object2fullname.find (this);
    219 #ifdef DEBUG
     222#ifdef CONFIG_DEBUG
    220223        if (i == object2fullname.end ()) {
    221224                cerr << "Internal error : can't find name of " << this << "\n";
     
    235238    string     out;
    236239    sc_object* obj = *it;
    237     ASSERT(obj != NULL);
     240    assert(obj != NULL);
    238241    build_full_name (out, *obj);
    239242  }
     
    243246{
    244247        object2infos_t::iterator i = object2infos.find (this);
    245 #ifdef DEBUG
     248#ifdef CONFIG_DEBUG
    246249        if (i == object2infos.end ()) {
    247250                cerr << "Internal error : can't find kind of " << this << "\n";
Note: See TracChangeset for help on using the changeset viewer.