Update of /cvsroot/basedb/basedb/plugins/src/clustering
In directory sc8-pr-cvs1:/tmp/cvs-serv19904/plugins/src/clustering
Modified Files:
main.cc
Log Message:
adressed problem with pubsetbuf
Index: main.cc
===================================================================
RCS file: /cvsroot/basedb/basedb/plugins/src/clustering/main.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** main.cc 1 Feb 2003 12:52:50 -0000 1.1
--- main.cc 12 Feb 2003 16:17:53 -0000 1.2
***************
*** 1,2 ****
--- 1,6 ----
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+
#include <stdlib.h>
#include <string.h>
***************
*** 10,14 ****
#endif
! #include "basefile.h"
#include "BaseClustering.h"
#include "StoreMergeReporter.h"
--- 14,18 ----
#endif
! #include <basefile.h>
#include "BaseClustering.h"
#include "StoreMergeReporter.h"
***************
*** 17,20 ****
--- 21,28 ----
using namespace std;
+ #ifdef HAVE_PUBSETBUF
+ char coutbuf[4096];
+ #endif
+
double get_opt(string s, map<string, string> opts);
void readandcluster(BaseFileReader& bfr, const map<string,string>& opts,
***************
*** 24,30 ****
int main(int argc, char **argv)
{
! #if !defined __GNUC__ || __GNUC__ >= 3
! char buf[4096];
! cout.rdbuf()->pubsetbuf(buf, sizeof(buf));
#endif
--- 32,37 ----
int main(int argc, char **argv)
{
! #ifdef HAVE_PUBSETBUF
! cout.rdbuf()->pubsetbuf(coutbuf, sizeof(coutbuf));
#endif
***************
*** 91,94 ****
--- 98,104 ----
}
cerr << "No spots section found\n";
+ #ifdef HAVE_PUBSETBUF
+ cout.rdbuf()->pubsetbuf(NULL, 0);
+ #endif
return 1;
}
|