changeset 2923:a3997dc62092

* doc/ustl.sgml: Removed cout.flush() from example and from note. Added note about use of compiler flag -Wno-undef.
author jld
date Tue, 06 Oct 2009 12:31:50 +0000
parents 9ddefe3aa750
children 56796f529a99
files packages/language/cxx/ustl/current/ChangeLog packages/language/cxx/ustl/current/doc/ustl.sgml
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/packages/language/cxx/ustl/current/ChangeLog
+++ b/packages/language/cxx/ustl/current/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-06  Uwe Kindler <uwe_kindler@web.de>
+
+	* doc/ustl.sgml: Removed cout.flush() from example and from note.
+	Added note about use of compiler flag -Wno-undef.
+	
 2009-08-30  John Dallaway  <john@dallaway.org.uk>
 
 	* include/*.h: Move all headers to include/ustl/ except ustl.h and
--- a/packages/language/cxx/ustl/current/doc/ustl.sgml
+++ b/packages/language/cxx/ustl/current/doc/ustl.sgml
@@ -118,7 +118,9 @@ CYGPKG_IO_FILEIO.
 <PARA>
 To use uSTL in your eCos application, simply include the file 
 <filename>&lt;ustl.h&gt;</filename>. All uSTL classes are in the
-<varname>ustl</varname> namespace.
+<varname>ustl</varname> namespace. To prevent compiler warnings
+when compiling your eCos application with uSTL support, you need to
+add the compiler flag <OPTION>-Wno-undef</OPTION>. 
 </PARA>
 
 <PROGRAMLISTING>
@@ -128,7 +130,6 @@ using namespace ustl;
 int main (int argc, char* argv[])
 {
     cout &lt;&lt; "Hello world!\n";
-    cout.flush();
     return EXIT_SUCCESS;
 }
 </PROGRAMLISTING>
@@ -136,9 +137,8 @@ int main (int argc, char* argv[])
 <NOTE>
 <PARA>
 If you use <varname>cout</varname> for printing to the console, 
-then data will be flushed only if you finish the output with 
-<varname>endl</varname> or '\n' and then call 
-<function>cout.flush()</function> as in the example above.
+then data will get sent only if you finish the output with 
+<varname>endl</varname> or '\n'.
 </PARA>
 </NOTE>