Changeset 540


Ignore:
Timestamp:
Oct 12, 2005 5:16:05 PM (14 years ago)
Author:
andreasw
Message:
  • added const qualifier in TripletToCSRConverter
  • added include for cstdio to *.cpp files that use sprintf and don't include it via other headers (both items reported by Ivan Oliveira)
Location:
branches/dev
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Algorithm/LinearSolvers/IpTripletToCSRConverter.hpp

    r501 r540  
    7979
    8080      /** Comparison operator.  This is required for the sort function. */
    81       bool operator< (const TripletEntry& Tentry)
     81      bool operator< (const TripletEntry& Tentry) const
    8282      {
    8383        return ((i_row_ < Tentry.i_row_) ||
  • branches/dev/LinAlg/IpCompoundMatrix.cpp

    r501 r540  
    99#include "IpCompoundMatrix.hpp"
    1010#include "IpCompoundVector.hpp"
     11
     12#ifdef HAVE_CSTDIO
     13# include <cstdio>
     14#else
     15# ifdef HAVE_STDIO_H
     16#  include <stdio.h>
     17# else
     18#  error "don't have header file for stdio"
     19# endif
     20#endif
    1121
    1222namespace Ipopt
  • branches/dev/LinAlg/IpCompoundSymMatrix.cpp

    r501 r540  
    99#include "IpCompoundSymMatrix.hpp"
    1010#include "IpCompoundVector.hpp"
     11
     12#ifdef HAVE_CSTDIO
     13# include <cstdio>
     14#else
     15# ifdef HAVE_STDIO_H
     16#  include <stdio.h>
     17# else
     18#  error "don't have header file for stdio"
     19# endif
     20#endif
    1121
    1222namespace Ipopt
  • branches/dev/LinAlg/IpCompoundVector.cpp

    r501 r540  
    1616# else
    1717#  error "don't have header file for math"
     18# endif
     19#endif
     20
     21#ifdef HAVE_CSTDIO
     22# include <cstdio>
     23#else
     24# ifdef HAVE_STDIO_H
     25#  include <stdio.h>
     26# else
     27#  error "don't have header file for stdio"
    1828# endif
    1929#endif
  • branches/dev/LinAlg/IpSumMatrix.cpp

    r501 r540  
    88
    99#include "IpSumMatrix.hpp"
     10
     11#ifdef HAVE_CSTDIO
     12# include <cstdio>
     13#else
     14# ifdef HAVE_STDIO_H
     15#  include <stdio.h>
     16# else
     17#  error "don't have header file for stdio"
     18# endif
     19#endif
    1020
    1121namespace Ipopt
  • branches/dev/LinAlg/IpSumSymMatrix.cpp

    r501 r540  
    88
    99#include "IpSumSymMatrix.hpp"
     10
     11#ifdef HAVE_CSTDIO
     12# include <cstdio>
     13#else
     14# ifdef HAVE_STDIO_H
     15#  include <stdio.h>
     16# else
     17#  error "don't have header file for stdio"
     18# endif
     19#endif
    1020
    1121namespace Ipopt
Note: See TracChangeset for help on using the changeset viewer.