Changeset 346edc8 in git


Ignore:
Timestamp:
Feb 22, 2012, 11:03:36 AM (12 years ago)
Author:
Martin Lee <martinlee84@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
f3a82f4d26a5b3be3272d4081585f856bf75a07c
Parents:
f71453f2ec66e0b065f7b5f2c759e1db2377dd27
git-author:
Martin Lee <martinlee84@web.de>2012-02-22 11:03:36+01:00
git-committer:
Martin Lee <martinlee84@web.de>2012-02-22 15:31:04+01:00
Message:
fix: need std::
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/debug.h

    rf71453 r346edc8  
    1313
    1414#ifdef DEBUGOUTPUT
     15#include <iostream>
    1516#ifdef HAVE_IOSTREAM
    1617#include <iostream>
     
    2223extern char * deb_level_msg;
    2324#define DEBINCLEVEL(stream, msg) \
    24 (stream << deb_level_msg << "entering << " << msg << " >>" << endl, deb_inc_level())
     25(std::stream << deb_level_msg << "entering << " << msg << " >>" << std::endl, deb_inc_level())
    2526#define DEBDECLEVEL(stream, msg) \
    26 (deb_dec_level(), stream << deb_level_msg << "leaving << " << msg << " >>" << endl)
     27(deb_dec_level(), std::stream << deb_level_msg << "leaving << " << msg << " >>" << std::endl)
    2728#define DEBOUTSL(stream) \
    28 (stream << deb_level_msg, stream.flush())
     29(std::stream << deb_level_msg, std::stream.flush())
    2930#define DEBOUT(stream, objects) \
    30 (stream << objects, stream.flush())
     31(std::stream << objects, std::stream.flush())
    3132#define DEBOUTENDL(stream) \
    32 (stream << endl)
     33(std::stream << std::endl)
    3334#define DEBOUTLN(stream, objects) \
    34 (stream << deb_level_msg << objects << endl)
     35(std::stream << deb_level_msg << objects << std::endl)
    3536#else /* DEBUGOUTPUT */
    36 #define DEBINCLEVEL(stream, msg) ((void) 0)
    37 #define DEBDECLEVEL(stream, msg) ((void) 0)
    38 #define DEBOUTSL(stream) ((void) 0)
    39 #define DEBOUT(stream, objects) ((void) 0)
    40 #define DEBOUTENDL(stream) ((void) 0)
    41 #define DEBOUTLN(stream, objects) ((void) 0)
     37#define DEBINCLEVEL(stream, msg)
     38#define DEBDECLEVEL(stream, msg)
     39#define DEBOUTSL(stream)
     40#define DEBOUT(stream, objects)
     41#define DEBOUTENDL(stream)
     42#define DEBOUTLN(stream, objects)
    4243#endif /* DEBUGOUTPUT */
  • factory/fac_berlekamp.cc

    rf71453 r346edc8  
    2222    for ( int i = 0; i < n; i++ ) {
    2323        for ( int j = 0; j < n; j++ )
    24             cerr << Q[i][j] << "  ";
    25         cerr << endl;
    26     }
    27     cerr << endl;
     24            std::cerr << Q[i][j] << "  ";
     25        std::cerr << std::endl;
     26    }
     27    std::cerr << std::endl;
    2828}
    2929#endif /* DEBUGOUTPUT */
     
    3434    for ( int i = 0; i < n; i++ ) {
    3535        for ( int j = 0; j < n; j++ ) {
    36             gf_print( cerr, Q[i][j] );
    37             cerr << "  ";
    38         }
    39         cerr << endl;
    40     }
    41     cerr << endl;
     36            gf_print( std::cerr, Q[i][j] );
     37            std::cerr << "  ";
     38        }
     39        std::cerr << std::endl;
     40    }
     41    std::cerr << std::endl;
    4242}
    4343#endif /* DEBUGOUTPUT */
  • factory/fac_univar.cc

    rf71453 r346edc8  
    3232#ifdef DEBUGOUTPUT
    3333#define DEBOUTHPRINT(stream, msg, hg) \
    34 {stream << deb_level_msg << msg, stream.flush(); hprint( hg ); stream << endl;}
     34{std::stream << deb_level_msg << msg, std::stream.flush(); hprint( hg ); std::stream << std::endl;}
    3535
    3636static void
     
    3838{
    3939    int n = a[0];
    40     cerr << "( " << n << ": ";
     40    std::cerr << "( " << n << ": ";
    4141    int i = 1;
    4242    while ( i < n ) {
    4343        if ( a[i] != 0 )
    44             cerr << i << " ";
     44            std::cerr << i << " ";
    4545        i++;
    4646    }
    47     cerr << ")";
     47    std::cerr << ")";
    4848}
    4949#else /* DEBUGOUTPUT */
Note: See TracChangeset for help on using the changeset viewer.