Ignore:
Timestamp:
May 4, 2009, 8:51:56 PM (16 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_module.cc

    r12 r27  
    4848#include "sc_clock.h" // is_clock
    4949#include "entity.h"
    50 #include "assert.h"
     50#include <cassert>
     51#ifdef HAVE_CONFIG_H
     52#include "config.h"
     53#endif
    5154
    5255//
     
    160163  sensitivity_list_t::iterator i;
    161164  for (i = sensitivity_list.begin (); i != sensitivity_list.end (); ++i) {
    162 #if defined(_DEBUG)
     165#if defined(CONFIG_DEBUG) && 0
    163166    if (i->get_interface() == NULL)
    164167    {
     
    238241          sensitive (this)
    239242{
    240   ASSERT(nm != NULL);
     243  assert(nm != NULL);
    241244#if 0
    242245  cerr << "sc_module constructor with const char * parameter\n";
     
    498501  if (m_pushed == false)
    499502    return;
    500   ASSERT(sc_core::module_name_stack.empty () == false);
     503  assert(sc_core::module_name_stack.empty () == false);
    501504  sc_core::module_name_stack.pop_back ();
    502505        modules_stack.pop ();
     
    504507  cout << "~sc_module_name <- " << m_name << endl;
    505508#endif
    506   ASSERT(temp_list.empty () == false);
     509  assert(temp_list.empty () == false);
    507510  sc_module *last1 = temp_list.back();
    508511  temp_list.pop_back();
     
    526529  if (m.dont_initialize == false)
    527530  {
    528     ASSERT(m.module != NULL);
    529 #if DEBUG
     531    assert(m.module != NULL);
     532#ifdef CONFIG_DEBUG
    530533    std::cerr << "Warning : SystemCASS doesn't perform SC_METHOD(S) initializations.\n"
    531534              << "Please turn off automatic initialization for '" << m.name
Note: See TracChangeset for help on using the changeset viewer.