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/entity.cc

    r1 r8  
    3535 */
    3636
    37 #include<iomanip>
    38 #include<list>
    39 #include<map>
    40 #include<vector>
    41 
    42 #include"assert.h"
    43 #include"entity.h"
    44 #include"sc_port.h"
    45 #include"sc_signal.h"
    46 #include"sc_module.h"
     37#include <iomanip>
     38#include <list>
     39#include <map>
     40#include <vector>
     41
     42#include <cassert>
     43#include "entity.h"
     44#include "sc_port.h"
     45#include "sc_signal.h"
     46#include "sc_module.h"
     47#ifdef HAVE_CONFIG_H
     48#include "config.h"
     49#endif
    4750
    4851using namespace std;
     
    174177    typedef std::map<const tab_t *,equi_list_t::iterator,predic4tab_t2equi_t_t> tab_t2equi_it_t;
    175178    static tab_t2equi_it_t tab2equi_map;
    176     ASSERT(pointer != NULL);
     179    assert(pointer != NULL);
    177180
    178181    // boost
     
    239242        {
    240243                equi_t::const_iterator top_iter = e.begin ();
    241 #ifdef DEBUG
     244#ifdef CONFIG_DEBUG
    242245                if (top_iter == e.end ()) {
    243246                        cerr << "Internal error : no signal in " << e << endl;
     
    356359        }
    357360       
    358 #if defined(DUMP_SIGNALS_STATS)
     361#if defined(DUMP_SIGNAL_STATS)
    359362        static unsigned int equi_real_size;
    360363#endif
     
    388391    unsigned int table_size = get_sizeof_signals_table ();
    389392                equi_table = new tab_t[table_size]; //(0xCD);
    390 #if defined(DUMP_SIGNALS_STATS)
     393#if defined(DUMP_SIGNAL_STATS)
    391394                equi_real_size = table_size;
    392395#endif
     
    402405  bind_equi_to_table (equi_t &e, tab_t * const pointer)
    403406  {
    404     ASSERT(pointer != NULL);
     407    assert(pointer != NULL);
    405408    equi_t::iterator i;
    406409    for (i = e.begin (); i != e.end (); ++i) {
     
    454457    o << ")";
    455458#else
    456    ASSERT(e.object != NULL);
     459   assert(e.object != NULL);
    457460   o << e.object->name ();
    458461#endif
     
    493496  print_table_stats (ostream &o)
    494497  {
    495 #if defined(DUMP_SIGNALS_STATS)
     498#if defined(DUMP_SIGNAL_STATS)
    496499                int nb_reg = 0;
    497500                int nb_sig = 0;
     
    536539        }
    537540        const entity &ent = *(eq.begin ());
    538 #ifdef DEBUG
     541#ifdef CONFIG_DEBUG
    539542        if (ent.type != sc_core::entity::SIGNAL)
    540543                exit(28);
     
    543546        const char *sig_name = ent.object->name ();
    544547        const char *sep  = strchr (sig_name,'.');
    545 #ifdef DEBUG
     548#ifdef CONFIG_DEBUG
    546549        if (sep == NULL) {
    547550                exit (30);
     
    594597#endif
    595598
    596 #if defined(DUMP_SIGNALS_STATS)
     599#if defined(DUMP_SIGNAL_STATS)
    597600static unsigned int equi_real_size;
    598601#endif
     
    602605{
    603606#if 0
    604 //defined(DEBUG)
     607//defined(CONFIG_DEBUG)
    605608  equi_list_t::iterator x_equi = get_equi (x);
    606609  if ((x_equi != equi_list.end())) {
     
    639642tbind (sc_port_base &x,T &y)
    640643{
    641 //  ASSERT(x.get_pointer () != NULL); // x pointer may be NULL
    642 //  ASSERT(y.get_pointer () != NULL); // y pointer may be NULL
     644//  assert(x.get_pointer () != NULL); // x pointer may be NULL
     645//  assert(y.get_pointer () != NULL); // y pointer may be NULL
    643646  equi_list_t::iterator x_equi = get_equi (x);
    644647  equi_list_t::iterator y_equi = get_equi (y);
Note: See TracChangeset for help on using the changeset viewer.