Changeset 27 for sources/src/sc_port.cc


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_port.cc

    r12 r27  
    3636
    3737
    38 #include<iomanip>
    39 #include<map>
    40 
    41 #include"sc_port.h"
    42 #include"sc_signal.h"
    43 #include"sc_module.h"
    44 #include"entity.h"
    45 #include"global_functions.h"
    46 #include"assert.h"
     38#include <iomanip>
     39#include <map>
     40#include <cassert>
     41
     42#include "sc_port.h"
     43#include "sc_signal.h"
     44#include "sc_module.h"
     45#include "entity.h"
     46#include "global_functions.h"
     47
     48#ifdef HAVE_CONFIG_H
     49#include "config.h"
     50#endif
    4751
    4852extern "C" {
     
    5458using namespace std;
    5559
    56 #ifdef CHECK_FSM_RULES
    57 #include"fsm_rules.h"
     60#ifdef CONFIG_CHECK_FSM_RULES
     61#include "fsm_rules.h"
    5862namespace sc_core {
    5963casc_fsm_step_t casc_fsm_step = ELABORATION;
     
    108112sc_port_base::init ()
    109113{
    110 #ifdef DEBUG
     114#ifdef CONFIG_DEBUG
    111115        if (modules_stack.empty ()) {
    112116                cerr << "Internal error : modules stack empty\n";
     
    233237#endif
    234238#define iter (sc_core::pending_write_vector[i])
    235 #ifdef DEBUG
     239#ifdef CONFIG_DEBUG
    236240                if (iter.pointer == NULL) {
    237241                        cerr << "Internal error : trying to apply a posted write from an unassigned signal/port\n";
     
    255259  cerr << "done.\n";
    256260#endif
    257 #if defined(CHECK_MULTIWRITING2REGISTER)
     261#if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
    258262  sc_core::pending_writing2register_clear ();
    259263#endif
     
    310314{
    311315  const tab_t *pointer = port.get_pointer ();
    312   //ASSERT(pointer != NULL);
     316  //assert(pointer != NULL);
    313317  if (pointer == NULL)
    314318    return false; // case : sc_in not bound
     
    343347  {
    344348    /*const*/ sc_port_base *port = i->first;
    345     ASSERT(port != NULL);
     349    assert(port != NULL);
    346350    check_port (*port);
    347351  }
     
    350354}
    351355
    352 #if defined(CHECK_MULTIWRITING2REGISTER)
     356#if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
    353357typedef set<const tab_t*> pending_writing2register_set_t;
    354358pending_writing2register_set_t pending_writing2register_set;
Note: See TracChangeset for help on using the changeset viewer.