Changeset 111 for trunk/lib/Gnuplot.cc


Ignore:
Timestamp:
Jun 28, 2006, 5:18:42 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Reverted Gnuplot plot to return nothing (void). fputs have different return values on linux and BSD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Gnuplot.cc

    r108 r111  
    7777
    7878 
    79   int Gnuplot::command(const std::string& cmdstr)
     79  void Gnuplot::command(const std::string& cmdstr)
    8080  {
    81     int r = fputs(cmdstr.c_str(),pipe_);
    82     if (!r && *(cmdstr.rbegin())!='\n')
    83       r=fputc('\n',pipe_);
    84     return (r ? r : fflush(pipe_));
     81    fputs(cmdstr.c_str(),pipe_);
     82    if (*(cmdstr.rbegin())!='\n')
     83      fputc('\n',pipe_);
     84    fflush(pipe_);
    8585  }
    8686
Note: See TracChangeset for help on using the changeset viewer.