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

    r1 r8  
    4141#include "bit2string.h"
    4242#include "hex2string.h"
    43 #include "assert.h"
     43#include <cassert>
    4444
    4545#include <list>
    4646#include <stdio.h>
    4747#include <iostream>
     48#ifdef HAVE_CONFIG_H
     49#include "config.h"
     50#endif
    4851
    4952//-----------------------------------------
     
    5255
    5356//-----------------------------------------
    54 #ifdef PAT_TRACE_FORMAT
     57#ifdef CONFIG_PAT_TRACE_FORMAT
    5558
    5659extern "C" {
     
    6265#include <stdio.h>
    6366
    64 #endif // PAT_TRACE_FORMAT
     67#endif // CONFIG_PAT_TRACE_FORMAT
    6568//-----------------------------------------
    6669
     
    164167    {
    165168      sc_trace_file *tf = *ptf;
    166       ASSERT(tf != NULL);
     169      assert(tf != NULL);
    167170                trace (*tf, part);
    168171    }
     
    172175}
    173176
    174 #if PAT_TRACE_FORMAT
     177#ifdef CONFIG_PAT_TRACE_FORMAT
    175178static void
    176179pat_set_value (char *buf, const signal2trace &s)
     
    282285{
    283286}
    284 #endif // PAT_TRACE_FORMAT
     287#endif // CONFIG_PAT_TRACE_FORMAT
    285288
    286289static
     
    413416  else
    414417    vcd_signal_table = (tab_t*) malloc (sizeof (tab_t) * size);
    415 #if DEBUG
     418#ifdef CONFIG_DEBUG
    416419  if (vcd_signal_table == NULL)
    417420  {
     
    485488      vcd_trace_init (tf);
    486489  } else {
    487 #if defined(DEBUG)
     490#if defined(CONFIG_DEBUG)
    488491      if (vcd_signal_table == NULL)
    489492      {
     
    579582&name)
    580583{
    581 #ifdef PAT_TRACE_FORMAT
     584#ifdef CONFIG_PAT_TRACE_FORMAT
    582585        //exemple:
    583586        //DECLAR ("a", ":2", "X", IN, "3  downto 0", "" );
     
    629632#endif
    630633        DECLAR ((char*)(name.c_str ()), ":1", format, dir,(char *) downto.c_str(), "" );
    631 #endif // PAT_TRACE_FORMAT
     634#endif // CONFIG_PAT_TRACE_FORMAT
    632635}
    633636
Note: See TracChangeset for help on using the changeset viewer.