This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: ISO C++ related fixes


I found these during some recent testing under Cygwin.  Ok to commit? 

Sat Aug 31 10:16:48 2002  Anthony Green  <green@redhat.com>

	* sidcpuutil.h (operator <<): added std:: prefixes for C++ ISO
	compliance.

Thu Aug 29 15:14:33 2002  Anthony Green  <green@redhat.com>

	* sidcpuutil.h (operator <<): added std:: prefixes for C++ ISO
	compliance.
	* sidmiscutil.h (sid_file_search_path): Ditto.

Index: sid/include/sidcpuutil.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidcpuutil.h,v
retrieving revision 1.19
diff -u -p -r1.19 sidcpuutil.h
--- sid/include/sidcpuutil.h	23 Apr 2002 21:00:33 -0000	1.19
+++ sid/include/sidcpuutil.h	7 Sep 2002 15:22:03 -0000
@@ -594,9 +594,9 @@ public:
     basic_cpu::cpu_trace_stream& operator<< (basic_cpu::cpu_trace_stream& s, T t)
     {
       if (LIKELY (s.cout_p))
-	cout << t;
+	std::cout << t;
       else
-	dynamic_cast <ofstream&> (s) << t;
+	dynamic_cast <std::ofstream&> (s) << t;
       return s;
     }
   
Index: sid/include/sidmiscutil.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidmiscutil.h,v
retrieving revision 1.4
diff -u -p -r1.4 sidmiscutil.h
--- sid/include/sidmiscutil.h	25 May 2001 15:32:51 -0000	1.4
+++ sid/include/sidmiscutil.h	7 Sep 2002 15:22:03 -0000
@@ -331,8 +331,8 @@ namespace sidutil
       {
 	int rc = cygwin_conv_to_full_posix_path (sep, conv_fn);
 	if (rc != 0)
-	  cerr << "sid_file_search_path: cygwin_conv_to_full_posix_path failed: " 
-	       << std_error_string () << endl;
+	  std::cerr << "sid_file_search_path: cygwin_conv_to_full_posix_path failed: " 
+	       << std_error_string () << std::endl;
 	else
 	  sep = conv_fn;
       }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]