Ignore:
Timestamp:
Jun 25, 2008, 1:08:04 PM (16 years ago)
Author:
nipo
Message:

Checkin autotools magic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/with_autoconf/src/sc_port.cc

    r4 r8  
    3636
    3737
    38 #include<iomanip>
    39 #include<list>
    40 #include<map>
    41 #include<vector>
    42 
    43 #include"sc_port.h"
    44 #include"sc_signal.h"
    45 #include"sc_module.h"
    46 #include"entity.h"
    47 #include"global_functions.h"
    48 #include"assert.h"
     38#include <iomanip>
     39#include <list>
     40#include <map>
     41#include <vector>
     42
     43#include "sc_port.h"
     44#include "sc_signal.h"
     45#include "sc_module.h"
     46#include "entity.h"
     47#include "global_functions.h"
     48#include <cassert>
     49#ifdef HAVE_CONFIG_H
     50#include "config.h"
     51#endif
    4952
    5053extern "C" {
     
    5659using namespace std;
    5760
    58 #ifdef CHECK_FSM_RULES
    59 #include"fsm_rules.h"
     61#ifdef CONFIG_CHECK_FSM_RULES
     62#include "fsm_rules.h"
    6063namespace sc_core {
    6164casc_fsm_step_t casc_fsm_step = ELABORATION;
     
    110113sc_port_base::init ()
    111114{
    112 #ifdef DEBUG
     115#ifdef CONFIG_DEBUG
    113116        if (modules_stack.empty ()) {
    114117                cerr << "Internal error : modules stack empty\n";
     
    235238#endif
    236239#define iter (sc_core::pending_write_vector[i])
    237 #ifdef DEBUG
     240#ifdef CONFIG_DEBUG
    238241                if (iter.pointer == NULL) {
    239242                        cerr << "Internal error : trying to apply a posted write from an unassigned signal/port\n";
     
    257260  cerr << "done.\n";
    258261#endif
    259 #if defined(CHECK_MULTIWRITING2REGISTER)
     262#if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
    260263  sc_core::pending_writing2register_clear ();
    261264#endif
     
    312315{
    313316  const tab_t *pointer = port.get_pointer ();
    314   //ASSERT(pointer != NULL);
     317  //assert(pointer != NULL);
    315318  if (pointer == NULL)
    316319    return false; // case : sc_in not bound
     
    345348  {
    346349    /*const*/ sc_port_base *port = i->first;
    347     ASSERT(port != NULL);
     350    assert(port != NULL);
    348351    check_port (*port);
    349352  }
     
    352355}
    353356
    354 #if defined(CHECK_MULTIWRITING2REGISTER)
     357#if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
    355358typedef set<const tab_t*> pending_writing2register_set_t;
    356359pending_writing2register_set_t pending_writing2register_set;
Note: See TracChangeset for help on using the changeset viewer.