[uClibc-cvs] CVS uClibc++/include

CVS User gkajmowi gkajmowi at codepoet.org
Tue Nov 30 17:38:11 UTC 2004


Update of /var/cvs/uClibc++/include
In directory nail:/tmp/cvs-serv2709/include

Modified Files:
	fstream sstream streambuf 
Log Message:
Fixed issues with fstream


--- /var/cvs/uClibc++/include/fstream	2004/09/17 02:47:50	1.6
+++ /var/cvs/uClibc++/include/fstream	2004/11/30 17:38:10	1.7
@@ -112,10 +112,11 @@
 					return 0;
 				}
 			}
-			return *this;
+			return this;
 		}
 		basic_filebuf<charT,traits>* close(){
 			if(fp != 0){
+				overflow();
 				int retval = fclose(fp);
 				if(retval !=0){		//Error of some sort
 					return 0;
@@ -243,7 +244,7 @@
 			if(r!=0){	//Nothing to do
 				traits::copy(buffer, basic_streambuf<charT,traits>::pbase(), r);
 			}
-			
+
 			size_t retval = fwrite(buffer, sizeof(charT), s, fp);
 			if(retval !=s){
 				if(retval == 0){
--- /var/cvs/uClibc++/include/sstream	2004/09/08 14:27:06	1.2
+++ /var/cvs/uClibc++/include/sstream	2004/11/30 17:38:10	1.3
@@ -177,7 +177,7 @@
 			}
 
 			//Test for error conditions
-			if(newpos < 0 || newpos > data.length()){
+			if(newpos > data.length()){
 				return -1;
 			}
 
--- /var/cvs/uClibc++/include/streambuf	2004/09/01 16:39:31	1.4
+++ /var/cvs/uClibc++/include/streambuf	2004/11/30 17:38:10	1.5
@@ -102,7 +102,7 @@
 		}
 
 		int_type sputbackc(char_type c){
-			if(mgbeg == 0 || mgnext == mgbeg){
+			if(mgbeg == 0 || mgnext == mgbeg || !traits::eq(c,gptr()[-1])){
 				return ios_base::failbit;
 			}
 			gbump(-1);



More information about the uClibc-cvs mailing list