More fixes and wxWidgets coding standards.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1300,7 +1300,7 @@ void HelpGenVisitor::VisitOperation( spOperation& op )
|
|||||||
"\\%sfunc{%s%s}{%s}{",
|
"\\%sfunc{%s%s}{%s}{",
|
||||||
op.mIsConstant ? "const" : "",
|
op.mIsConstant ? "const" : "",
|
||||||
op.mIsVirtual ? "virtual " : "",
|
op.mIsVirtual ? "virtual " : "",
|
||||||
op.mRetType.c_str(),
|
op.m_RetType.c_str(),
|
||||||
funcname.c_str());
|
funcname.c_str());
|
||||||
m_textFunc += func;
|
m_textFunc += func;
|
||||||
}
|
}
|
||||||
@@ -1317,7 +1317,7 @@ void HelpGenVisitor::VisitParameter( spParameter& param )
|
|||||||
m_textFunc << ", ";
|
m_textFunc << ", ";
|
||||||
}
|
}
|
||||||
|
|
||||||
m_textFunc << "\\param{" << param.mType << " }{" << param.GetName();
|
m_textFunc << "\\param{" << param.m_Type << " }{" << param.GetName();
|
||||||
wxString defvalue = param.mInitVal;
|
wxString defvalue = param.mInitVal;
|
||||||
if ( !defvalue.empty() ) {
|
if ( !defvalue.empty() ) {
|
||||||
m_textFunc << " = " << defvalue;
|
m_textFunc << " = " << defvalue;
|
||||||
@@ -1878,7 +1878,7 @@ bool DocManager::DumpDifferences(spContext *ctxTop) const
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( param.GetType() != ctxParam->mType ) {
|
if ( param.GetType() != ctxParam->m_Type ) {
|
||||||
foundDiff = true;
|
foundDiff = true;
|
||||||
|
|
||||||
wxLogError("Type of parameter '%s' of '%s::%s' "
|
wxLogError("Type of parameter '%s' of '%s::%s' "
|
||||||
@@ -1886,7 +1886,7 @@ bool DocManager::DumpDifferences(spContext *ctxTop) const
|
|||||||
ctxParam->m_Name.c_str(),
|
ctxParam->m_Name.c_str(),
|
||||||
nameClass.c_str(),
|
nameClass.c_str(),
|
||||||
nameMethod.c_str(),
|
nameMethod.c_str(),
|
||||||
ctxParam->mType.c_str(),
|
ctxParam->m_Type.c_str(),
|
||||||
param.GetType().GetName().c_str());
|
param.GetType().GetName().c_str());
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
@@ -2192,6 +2192,9 @@ static const wxString GetVersionString()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.38 2005/05/24 09:06:20 ABX
|
||||||
|
More fixes and wxWidgets coding standards.
|
||||||
|
|
||||||
Revision 1.37 2005/05/23 15:22:08 ABX
|
Revision 1.37 2005/05/23 15:22:08 ABX
|
||||||
Initial HelpGen source cleaning.
|
Initial HelpGen source cleaning.
|
||||||
|
|
||||||
|
@@ -898,13 +898,13 @@ static inline void skip_scope_block( char*& cur )
|
|||||||
// moves tokens like '*' '**', '***', '&' from the name
|
// moves tokens like '*' '**', '***', '&' from the name
|
||||||
// to the type
|
// to the type
|
||||||
|
|
||||||
static void arrange_indirection_tokens_between( string& type,
|
static void arrange_indirection_tokens_between( wxString& type,
|
||||||
string& identifier )
|
wxString& identifier )
|
||||||
{
|
{
|
||||||
// TBD:: FIXME:: return value of operators !
|
// TBD:: FIXME:: return value of operators !
|
||||||
|
|
||||||
while ( identifier[0u] == '*' ||
|
while ( identifier[0u] == _T('*') ||
|
||||||
identifier[0u] == '&'
|
identifier[0u] == _T('&')
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
type += identifier[0u];
|
type += identifier[0u];
|
||||||
@@ -1626,10 +1626,10 @@ bool CJSourceParser::ParseNameAndRetVal( char*& cur, bool& isAMacro )
|
|||||||
string toerase("WXDLLEXPORT ");
|
string toerase("WXDLLEXPORT ");
|
||||||
while((pos = rettype.find(toerase, pos)) != string::npos)
|
while((pos = rettype.find(toerase, pos)) != string::npos)
|
||||||
rettype.erase(pos, toerase.length());
|
rettype.erase(pos, toerase.length());
|
||||||
pOp->mRetType = rettype;
|
pOp->m_RetType = rettype;
|
||||||
}
|
}
|
||||||
|
|
||||||
arrange_indirection_tokens_between( pOp->mRetType, pOp->m_Name );
|
arrange_indirection_tokens_between( pOp->m_RetType, pOp->m_Name );
|
||||||
|
|
||||||
cur = savedPos;
|
cur = savedPos;
|
||||||
restore_line_no( tmpLnNo );
|
restore_line_no( tmpLnNo );
|
||||||
@@ -1753,9 +1753,9 @@ bool CJSourceParser::ParseArguments( char*& cur )
|
|||||||
size_t len = blockSizes[ typeBlock ];
|
size_t len = blockSizes[ typeBlock ];
|
||||||
len = size_t ( (blocks[ typeBlock ] + len) - blocks[ 0 ] );
|
len = size_t ( (blocks[ typeBlock ] + len) - blocks[ 0 ] );
|
||||||
|
|
||||||
pPar->mType = string( blocks[0], len );
|
pPar->m_Type = string( blocks[0], len );
|
||||||
|
|
||||||
arrange_indirection_tokens_between( pPar->mType, pPar->m_Name );
|
arrange_indirection_tokens_between( pPar->m_Type, pPar->m_Name );
|
||||||
|
|
||||||
if ( *cur == ')' )
|
if ( *cur == ')' )
|
||||||
{
|
{
|
||||||
@@ -1877,7 +1877,7 @@ void CJSourceParser::ParseMemberVar( char*& cur )
|
|||||||
skip_next_token_back( cur );
|
skip_next_token_back( cur );
|
||||||
skip_token_back( cur );
|
skip_token_back( cur );
|
||||||
|
|
||||||
pAttr->mType = get_token_str( cur );
|
pAttr->m_Type = get_token_str( cur );
|
||||||
|
|
||||||
// if comma, than variable list continues
|
// if comma, than variable list continues
|
||||||
// otherwise the variable type reached - stop
|
// otherwise the variable type reached - stop
|
||||||
@@ -1916,12 +1916,12 @@ void CJSourceParser::ParseMemberVar( char*& cur )
|
|||||||
if ( !pAttr )
|
if ( !pAttr )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( pAttr->mType.empty() )
|
if ( pAttr->m_Type.empty() )
|
||||||
pAttr->mType = type;
|
pAttr->m_Type = type;
|
||||||
pAttr->mVisibility = mCurVis;
|
pAttr->mVisibility = mCurVis;
|
||||||
|
|
||||||
if ( !pAttr->m_Name.empty() )
|
if ( !pAttr->m_Name.empty() )
|
||||||
arrange_indirection_tokens_between( pAttr->mType, pAttr->m_Name );
|
arrange_indirection_tokens_between( pAttr->m_Type, pAttr->m_Name );
|
||||||
}
|
}
|
||||||
|
|
||||||
cur = savedPos;
|
cur = savedPos;
|
||||||
|
@@ -493,7 +493,7 @@ void RipperDocGen::VisitAttribute( spAttribute& attr )
|
|||||||
{
|
{
|
||||||
string body;
|
string body;
|
||||||
body += mTags[TAG_BOLD].start;
|
body += mTags[TAG_BOLD].start;
|
||||||
body += attr.mType;
|
body += attr.m_Type;
|
||||||
body += mTags[TAG_BOLD].end;
|
body += mTags[TAG_BOLD].end;
|
||||||
|
|
||||||
body += mTags[TAG_ITALIC].start;
|
body += mTags[TAG_ITALIC].start;
|
||||||
|
@@ -192,7 +192,7 @@ inline void ScriptTemplate::PrintVar( TVarInfo* pInfo,
|
|||||||
{
|
{
|
||||||
char buf[128];
|
char buf[128];
|
||||||
|
|
||||||
switch ( pInfo->mType )
|
switch ( pInfo->m_Type )
|
||||||
{
|
{
|
||||||
case TVAR_INTEGER :
|
case TVAR_INTEGER :
|
||||||
{
|
{
|
||||||
@@ -214,7 +214,7 @@ inline void ScriptTemplate::PrintVar( TVarInfo* pInfo,
|
|||||||
cout << "DBG:: pInfo->mOfs value is " << (int)pInfo->mOfs << endl;
|
cout << "DBG:: pInfo->mOfs value is " << (int)pInfo->mOfs << endl;
|
||||||
cout << "DBG:: d+pInfo->mOfs is " << (int)((char*)dataObj + pInfo->mOfs) << endl;
|
cout << "DBG:: d+pInfo->mOfs is " << (int)((char*)dataObj + pInfo->mOfs) << endl;
|
||||||
cout << "DBG:: pInfo->m_Name is " << pInfo->m_Name << endl;
|
cout << "DBG:: pInfo->m_Name is " << pInfo->m_Name << endl;
|
||||||
cout << "DBG:: pInfo->mType is " << pInfo->mType << endl;
|
cout << "DBG:: pInfo->m_Type is " << pInfo->m_Type << endl;
|
||||||
cout << "DBG:: end of dump. " << endl;
|
cout << "DBG:: end of dump. " << endl;
|
||||||
|
|
||||||
cout << "DBG:: cs value is " << endl << cs << endl;
|
cout << "DBG:: cs value is " << endl << cs << endl;
|
||||||
|
@@ -90,12 +90,12 @@ struct TVarInfo
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const char* m_Name;
|
const char* m_Name;
|
||||||
int mType;
|
int m_Type;
|
||||||
int mOfs;
|
int mOfs;
|
||||||
|
|
||||||
TVarInfo( const char* name, int ofs, int varType )
|
TVarInfo( const char* name, int ofs, int varType )
|
||||||
: m_Name(name),
|
: m_Name(name),
|
||||||
mType( varType ),
|
m_Type( varType ),
|
||||||
mOfs( ofs )
|
mOfs( ofs )
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
@@ -423,7 +423,7 @@ spOperation::spOperation()
|
|||||||
|
|
||||||
string spOperation::GetFullName(MarkupTagsT tags)
|
string spOperation::GetFullName(MarkupTagsT tags)
|
||||||
{
|
{
|
||||||
string txt = tags[TAG_BOLD].start + mRetType;
|
string txt = tags[TAG_BOLD].start + m_RetType;
|
||||||
txt += " ";
|
txt += " ";
|
||||||
txt += m_Name;
|
txt += m_Name;
|
||||||
txt += "( ";
|
txt += "( ";
|
||||||
@@ -441,7 +441,7 @@ string spOperation::GetFullName(MarkupTagsT tags)
|
|||||||
|
|
||||||
txt += tags[TAG_BOLD].start;
|
txt += tags[TAG_BOLD].start;
|
||||||
|
|
||||||
txt += param.mType;
|
txt += param.m_Type;
|
||||||
|
|
||||||
txt += tags[TAG_BOLD].end;
|
txt += tags[TAG_BOLD].end;
|
||||||
txt += tags[TAG_ITALIC].start;
|
txt += tags[TAG_ITALIC].start;
|
||||||
@@ -575,13 +575,13 @@ void spContext::DumpThis(const wxString& WXUNUSED(indent)) const
|
|||||||
void spParameter::DumpThis(const wxString& indent) const
|
void spParameter::DumpThis(const wxString& indent) const
|
||||||
{
|
{
|
||||||
wxLogDebug("%sparam named '%s' of type '%s'",
|
wxLogDebug("%sparam named '%s' of type '%s'",
|
||||||
indent.c_str(), m_Name.c_str(), mType.c_str());
|
indent.c_str(), m_Name.c_str(), m_Type.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void spAttribute::DumpThis(const wxString& indent) const
|
void spAttribute::DumpThis(const wxString& indent) const
|
||||||
{
|
{
|
||||||
wxLogDebug("%svariable named '%s' of type '%s'",
|
wxLogDebug("%svariable named '%s' of type '%s'",
|
||||||
indent.c_str(), m_Name.c_str(), mType.c_str());
|
indent.c_str(), m_Name.c_str(), m_Type.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void spOperation::DumpThis(const wxString& indent) const
|
void spOperation::DumpThis(const wxString& indent) const
|
||||||
@@ -614,7 +614,7 @@ void spOperation::DumpThis(const wxString& indent) const
|
|||||||
mIsConstant ? "const " : "",
|
mIsConstant ? "const " : "",
|
||||||
mIsVirtual ? "virtual " : "",
|
mIsVirtual ? "virtual " : "",
|
||||||
protection.c_str(),
|
protection.c_str(),
|
||||||
mScope.c_str(), m_Name.c_str(), mRetType.c_str());
|
mScope.c_str(), m_Name.c_str(), m_RetType.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void spPreprocessorLine::DumpThis(const wxString& indent) const
|
void spPreprocessorLine::DumpThis(const wxString& indent) const
|
||||||
|
@@ -500,7 +500,7 @@ class spParameter : public spContext
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// type of argument (parameter)
|
// type of argument (parameter)
|
||||||
string mType;
|
wxString m_Type;
|
||||||
|
|
||||||
// "stringified" initial value
|
// "stringified" initial value
|
||||||
string mInitVal;
|
string mInitVal;
|
||||||
@@ -521,7 +521,7 @@ class spAttribute : public spContext
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// type of the attribute
|
// type of the attribute
|
||||||
string mType;
|
wxString m_Type;
|
||||||
|
|
||||||
// it's initial value
|
// it's initial value
|
||||||
string mInitVal;
|
string mInitVal;
|
||||||
@@ -542,7 +542,7 @@ class spOperation : public spContext
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// type of return value
|
// type of return value
|
||||||
string mRetType;
|
wxString m_RetType;
|
||||||
|
|
||||||
// argument list
|
// argument list
|
||||||
//MParamListT mParams;
|
//MParamListT mParams;
|
||||||
|
Reference in New Issue
Block a user