wxString enumeration = GetAllComments(en),
enumerationVerb;
- enumerationVerb << "\\begin{verbatim}\n"
- << en.mEnumContent
- << "\n\\end{verbatim}\n";
+ enumerationVerb << _T("\\begin{verbatim}\n")
+ << en.m_EnumContent
+ << _T("\n\\end{verbatim}\n");
// remember for later use if we're not inside a class yet
if ( !m_inClass ) {
}
wxString typedefdoc;
- typedefdoc << "{\\small \\begin{verbatim}\n"
- << "typedef " << td.mOriginalType << ' ' << td.GetName()
- << "\n\\end{verbatim}}\n"
+ typedefdoc << _T("{\\small \\begin{verbatim}\n")
+ << _T("typedef ") << td.m_OriginalType << _T(' ') << td.GetName()
+ << _T("\n\\end{verbatim}}\n")
<< GetAllComments(td);
// remember for later use if we're not inside a class yet
/*
$Log$
+ Revision 1.41 2005/05/30 13:06:15 ABX
+ More warning and error fixes (work in progress with Tinderbox).
+
Revision 1.40 2005/05/30 11:49:32 ABX
More warning and error fixes (work in progress with Tinderbox).
clear_commets_queue();
}
-void CJSourceParser::AddMacroNode( char*& cur )
+void CJSourceParser::AddMacroNode( wxChar*& cur )
{
- char* start = cur;
+ wxChar* start = cur;
int lineNo = get_line_no();
AttachComments( *pPL, cur );
- get_string_between( start, cur, &pPL->mLine );
+ get_string_between( start, cur, &pPL->m_Line );
++start; // skip '#'
get_next_token( start );
// determine the type exactly and assign
// a name to the context
- if ( *start == 'd' )
+ if ( *start == _T('d') )
{
- if ( cmp_tokens_fast( start, "define", 6 ) )
+ if ( cmp_tokens_fast( start, _T("define"), 6 ) )
{
char* tok = start+6;
pPL->mDefType = SP_PREP_DEF_REDEFINE_SYMBOL;
}
}
- else if ( *start == 'i' )
+ else if ( *start == _T('i') )
{
- if ( cmp_tokens_fast( start, "include", 7 ) )
+ if ( cmp_tokens_fast( start, _T("include"), 7 ) )
{
pPL->mDefType = SP_PREP_DEF_INCLUDE_FILE;
}
- else if ( *++start == 'f' )
+ else if ( *++start == _T('f') )
{
// either "#if" or "#ifdef"
cur = start;
string condition = get_token_str( cur );
// currently, everything except '0' is true
- if ( condition == "0" ) {
+ if ( condition == _T("0") ) {
// skip until the following else or enif
while ( cur < _gSrcEnd ) {
skip_to_eol( cur );
skip_eol( cur );
get_next_token( cur );
- if ( *cur++ == '#' && *cur == 'e' )
+ if ( *cur++ == _T('#') && *cur == _T('e') )
break;
}
}
// TODO parse the condition...
}
}
- else if ( cmp_tokens_fast( start, "else", 4 ) )
+ else if ( cmp_tokens_fast( start, _T("else"), 4 ) )
{
// skip until "#endif"
while ( cur < _gSrcEnd ) {
skip_eol( cur );
get_next_token( cur );
- if ( *cur++ == '#' && cmp_tokens_fast( cur, "endif", 5 ) )
+ if ( *cur++ == _T('#') && cmp_tokens_fast( cur, "endif", 5 ) )
break;
}
}
{
if ( op.m_Name[i] == ':' && op.m_Name[i+1] == ':' )
{
- string unscoped( op.m_Name, i+2, op.m_Name.length() - ( i + 2 ) );
+ wxString unscoped( op.m_Name, i+2, op.m_Name.length() - ( i + 2 ) );
- op.mScope = string( op.m_Name, 0, i );
+ op.mScope = wxString( op.m_Name, 0, i );
op.m_Name = unscoped;
if ( !skip_imp_block( cur ) ) return;
- get_string_between( start, cur, &pEnum->mEnumContent );
+ get_string_between( start, cur, &pEnum->m_EnumContent );
if ( get_next_token(cur) )
{
if ( *nameStart == '*' ) ++nameStart;
}
- get_string_between( start, typeEnd, &pTDef->mOriginalType );
+ get_string_between( start, typeEnd, &pTDef->m_OriginalType );
get_string_between( nameStart, nameEnd, &pTDef->m_Name );
string body;
body += mTags[TAG_BOLD].start;
- AppendMulitilineStr( body, en.mEnumContent );
+ AppendMulitilineStr( body, en.m_EnumContent );
body += mTags[TAG_BOLD].end;
body += "typdef ";
body += mTags[TAG_BOLD].end;
- AppendMulitilineStr( body, td.mOriginalType );
- body += td.mOriginalType;
+ AppendMulitilineStr( body, td.m_OriginalType );
+ body += td.m_OriginalType;
body += ' ';
body += mTags[TAG_BOLD].start;
string body;
body += mTags[TAG_FIXED_FONT].start;
- string coloredLine = pd.mLine;
- AppendHighlightedSource( coloredLine, pd.mLine );
+ string coloredLine = pd.m_Line;
+ AppendHighlightedSource( coloredLine, pd.m_Line );
AppendMulitilineStr( body, coloredLine );
size_t i = 0;
- while( i < mLine.length() && mLine[i] != '"' && mLine[i] != '<' )
+ while( i < m_Line.length() && m_Line[i] != '"' && m_Line[i] != '<' )
++i;
size_t start = i;
- while( i < mLine.length() && mLine[i] != '"' && mLine[i] != '>' )
+ while( i < m_Line.length() && m_Line[i] != '"' && m_Line[i] != '>' )
++i;
- if ( start < mLine.length() )
+ if ( start < m_Line.length() )
{
string fname;
- fname.append( mLine, start, ( i - start ) );
+ fname.append( m_Line, start, ( i - start ) );
return fname;
}
void spTypeDef::DumpThis(const wxString& indent) const
{
wxLogDebug("%stypedef %s = %s",
- indent.c_str(), m_Name.c_str(), mOriginalType.c_str());
+ indent.c_str(), m_Name.c_str(), m_OriginalType.c_str());
}
void spFile::DumpThis(const wxString& indent) const