]> git.saurik.com Git - wxWidgets.git/commitdiff
Added checks for wxUSE_IOSTREAMH to #include the correct header file based on setup...
authorGeorge Tasker <gtasker@allenbrook.com>
Tue, 15 Jan 2002 14:49:31 +0000 (14:49 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Tue, 15 Jan 2002 14:49:31 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dbtable.cpp
utils/HelpGen/src/docripper.cpp
utils/projgen/makeproj.cpp

index 661af5ebb6286cb44d2213a2b2b5ef800ef8c565..fcdbf3e1b42aa0d2a7b8a3640d4f6a00711c8fbb 100644 (file)
 #endif
 
 #ifdef DBDEBUG_CONSOLE
-    #include "iostream.h"
+#if wxUSE_IOSTREAMH
+    #include <iostream.h>
+#else
+    #include <iostream>
+#endif
     #include "wx/ioswrap.h"
 #endif
 
index 9599d619200dc84b8b21ee0dd6186c401348a120..3b50e47cbcab2d4d705e7e237d1fb79512744317 100644 (file)
 
 #include "docripper.h"
 
-#include <iostream.h>
+#if wxUSE_IOSTREAMH
+    #include <iostream.h>
+#else
+    #include <iostream>
+#endif
 
 // script templates
 
@@ -178,12 +182,14 @@ void RipperDocGen::AppendComments( spContext& fromContext, string& str )
                        if ( lst[i]->StartsParagraph() )
                        {
                                str += mTags[TAG_PARAGRAPH].start;
+
                        }
        
                str += lst[i]->mText;
        }
 
        // remove new lines, and insert paragraph breaks
+
        // if empty lines found
 
        size_t len = str.length();
@@ -192,22 +198,38 @@ void RipperDocGen::AppendComments( spContext& fromContext, string& str )
        
                if ( str[n] == 10 || 
                     str[n] == 13  ) 
+
                {
+
                        if ( n + 2 < len )
+
                        {
+
                                if ( ( str[n] == 13 && str[n+1] == 10 &&  // FIXME:: quick-hack
+
                                           str[n+2] == 13 ) ||
+
                                         ( str[n] == 10 && str[n+1] == 10 )
+
                            )
+
                                {
+
                                        str.insert( n + 1, "<p>" ); // FIXME:: quick-hack
+
                                        len += 3;
+
                                }
+
                        }
 
+
+
                        str[n] = ' ';
+
                }
 
+
        str += mTags[TAG_PARAGRAPH].end;
 }
 
@@ -423,9 +445,12 @@ void RipperDocGen::VisitTypeDef( spTypeDef& td )
 void RipperDocGen::VisitPreprocessorLine( spPreprocessorLine& pd )
 {
        if ( pd.mDefType != SP_PREP_DEF_REDEFINE_SYMBOL )
+
        
+
                return;
 
+
        if ( CheckIfUncommented( pd, *mpMacroIdx ) )
                return;
 
index e52a40d5246c8b1825c9a050fad6daa5822aae4d..0f0fdf76a94317a5e808f1db1c1383717db0fab7 100644 (file)
 #include "wx/wx.h"
 #include "wx/resource.h"
 
-#include "iostream.h"
-#include "fstream.h"
+#if wxUSE_IOSTREAMH
+#include <iostream.h>
+#include <fstream.h>
+#else
+#include <iostream>
+#include <fstream>
+#endif
 
 #include "makeproj.h"
 #include "projgenrc.h"