Update of /cvsroot/basedb/basedb/plugins/src/normalizers
In directory sc8-pr-cvs1:/tmp/cvs-serv19904/plugins/src/normalizers
Modified Files:
lowess_renorm.cc medianratio.cc
Log Message:
adressed problem with pubsetbuf
Index: lowess_renorm.cc
===================================================================
RCS file: /cvsroot/basedb/basedb/plugins/src/normalizers/lowess_renorm.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** lowess_renorm.cc 11 Feb 2003 14:46:05 -0000 1.2
--- lowess_renorm.cc 12 Feb 2003 16:17:53 -0000 1.3
***************
*** 20,23 ****
--- 20,28 ----
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
+
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+
#include <stdlib.h>
#include <string.h>
[...99 lines suppressed...]
***************
*** 120,127 ****
}
! #if !defined __GNUC__ || __GNUC__ >= 3
cout.rdbuf()->pubsetbuf(NULL, 0);
#endif
}
--- 129,137 ----
}
! #ifdef HAVE_PUBSETBUF
cout.rdbuf()->pubsetbuf(NULL, 0);
#endif
+ return 0;
}
Index: medianratio.cc
===================================================================
RCS file: /cvsroot/basedb/basedb/plugins/src/normalizers/medianratio.cc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** medianratio.cc 1 Feb 2003 12:52:52 -0000 1.1
--- medianratio.cc 12 Feb 2003 16:17:54 -0000 1.2
***************
*** 20,23 ****
--- 20,27 ----
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+
#include <stdlib.h>
#include <string.h>
***************
[...115 lines suppressed...]
***************
*** 106,109 ****
--- 110,126 ----
cout << "\n";
}
+ return true;
+ }
+
+ int main()
+ {
+ #ifdef HAVE_PUBSETBUF
+ cout.rdbuf()->pubsetbuf(coutbuf, sizeof(coutbuf));
+ #endif
+ int ok = dothings();
+ return !ok;
+ #ifdef HAVE_PUBSETBUF
+ cout.rdbuf()->pubsetbuf(NULL, 0);
+ #endif
}
|