#include "docripper.h"
-#include <iostream.h>
+#if wxUSE_IOSTREAMH
+ #include <iostream.h>
+#else
+ #include <iostream>
+#endif
// script templates
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();
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;
}
void RipperDocGen::ProcessFile( const char* sourceFile )
{
- cout << "Processing file " << sourceFile << "..." << endl;
+ wxSTD cout << "Processing file " << sourceFile << "..." << wxSTD endl;
spFile* pCtx = mpParser->ParseFile( sourceFile );
if ( pCtx == NULL )
{
- cout << "Cannot open file " << sourceFile << ", skipped..." << endl;
+ wxSTD cout << "Cannot open file " << sourceFile << ", skipped..." << wxSTD endl;
return;
}
void RipperDocGen::VisitPreprocessorLine( spPreprocessorLine& pd )
{
if ( pd.mDefType != SP_PREP_DEF_REDEFINE_SYMBOL )
+
+
return;
+
if ( CheckIfUncommented( pd, *mpMacroIdx ) )
return;