Changeset 27 for sources/src/sc_trace.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_trace.cc

    r17 r27  
    4141#include "bit2string.h"
    4242#include "hex2string.h"
    43 #include "assert.h"
    44 
     43
     44#include <cassert>
    4545#include <list>
    4646#include <cstdio>
     
    4848#include <cstring> //strlen
    4949
     50#ifdef HAVE_CONFIG_H
     51#include "config.h"
     52#endif
     53
    5054//-----------------------------------------
    5155
     
    5357
    5458//-----------------------------------------
    55 #ifdef PAT_TRACE_FORMAT
     59#ifdef CONFIG_PAT_TRACE_FORMAT
    5660
    5761extern "C" {
     
    6367#include <cstdio>
    6468
    65 #endif // PAT_TRACE_FORMAT
     69#endif // CONFIG_PAT_TRACE_FORMAT
    6670//-----------------------------------------
    6771
     
    165169    {
    166170      sc_trace_file *tf = *ptf;
    167       ASSERT(tf != NULL);
     171      assert(tf != NULL);
    168172                trace (*tf, part);
    169173    }
     
    173177}
    174178
    175 #if PAT_TRACE_FORMAT
     179#ifdef CONFIG_PAT_TRACE_FORMAT
    176180static void
    177181pat_set_value (char *buf, const signal2trace &s)
     
    283287{
    284288}
    285 #endif // PAT_TRACE_FORMAT
     289#endif // CONFIG_PAT_TRACE_FORMAT
    286290
    287291static
     
    414418  else
    415419    vcd_signal_table = (tab_t*) malloc (sizeof (tab_t) * size);
    416 #if DEBUG
     420#ifdef CONFIG_DEBUG
    417421  if (vcd_signal_table == NULL)
    418422  {
     
    486490      vcd_trace_init (tf);
    487491  } else {
    488 #if defined(DEBUG)
     492#if defined(CONFIG_DEBUG)
    489493      if (vcd_signal_table == NULL)
    490494      {
     
    580584&name)
    581585{
    582 #ifdef PAT_TRACE_FORMAT
     586#ifdef CONFIG_PAT_TRACE_FORMAT
    583587        //exemple:
    584588        //DECLAR ("a", ":2", "X", IN, "3  downto 0", "" );
     
    630634#endif
    631635        DECLAR ((char*)(name.c_str ()), ":1", format, dir,(char *) downto.c_str(), "" );
    632 #endif // PAT_TRACE_FORMAT
     636#endif // CONFIG_PAT_TRACE_FORMAT
    633637}
    634638
Note: See TracChangeset for help on using the changeset viewer.