summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7a00073)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56224
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// search in the methods of the api classes provided
real = api->RecursiveUpwardFindMethod(m, &m_gccInterface);
// search in the methods of the api classes provided
real = api->RecursiveUpwardFindMethod(m, &m_gccInterface);
{
bool exit = false;
wxMethodPtrArray overloads =
{
bool exit = false;
wxMethodPtrArray overloads =
warning += wxString::Format(": in the real headers there are %d overloads of '%s' for "
"'%s' all with different signatures:\n",
overloads.GetCount(), m.GetName(), api->GetName());
warning += wxString::Format(": in the real headers there are %d overloads of '%s' for "
"'%s' all with different signatures:\n",
overloads.GetCount(), m.GetName(), api->GetName());
warning += wxString::Format(": in the real headers there is a method '%s' for '%s'"
" but has different signature:\n",
m.GetName(), api->GetName());
warning += wxString::Format(": in the real headers there is a method '%s' for '%s'"
" but has different signature:\n",
m.GetName(), api->GetName());
// get a list of the prototypes with _all_ possible attributes:
warning += "\tdoxy header: " + m.GetAsString(true, true, true, true);
// get a list of the prototypes with _all_ possible attributes:
warning += "\tdoxy header: " + m.GetAsString(true, true, true, true);
-/////////////////////////////////////////////////////////////////////////////
+ /////////////////////////////////////////////////////////////////////////////
// Name: xmlparser.cpp
// Purpose: Parser of the API/interface XML files
// Author: Francesco Montorsi
// Name: xmlparser.cpp
// Purpose: Parser of the API/interface XML files
// Author: Francesco Montorsi
return true;
if (g_verbose)
return true;
if (g_verbose)
LogMessage("Type '%s' does not match type '%s'", m_strType, m.m_strType);
LogMessage("Type '%s' does not match type '%s'", m_strType, m.m_strType);
+ LogMessage(" => TypeClean %s / %s; IsConst %d / %d; IsStatic %d / %d; IsPointer %d / %d; IsReference %d / %d",
+ m_strTypeClean, m.m_strTypeClean, IsConst(), m.IsConst(),
+ IsStatic(), m.IsStatic(), IsPointer(), m.IsPointer(),
+ IsReference(), m.IsReference());
+ }
{
if (GetReturnType() != m.GetReturnType() ||
GetName() != m.GetName())
{
if (GetReturnType() != m.GetReturnType() ||
GetName() != m.GetName())
+ {
+ if (g_verbose)
+ LogMessage("The method '%s' does not match method '%s'; different names/rettype", GetName(), m.GetName());
if (m_args.GetCount()!=m.m_args.GetCount()) {
if (g_verbose)
if (m_args.GetCount()!=m.m_args.GetCount()) {
if (g_verbose)
IsPureVirtual() != m.IsPureVirtual() ||
IsDeprecated() != m.IsDeprecated() ||
GetAccessSpecifier() != m.GetAccessSpecifier())
IsPureVirtual() != m.IsPureVirtual() ||
IsDeprecated() != m.IsDeprecated() ||
GetAccessSpecifier() != m.GetAccessSpecifier())
+ {
+ if (g_verbose)
+ LogMessage("The method '%s' does not match method '%s'; different attributes", GetName(), m.GetName());
+
// check everything else
return MatchesExceptForAttributes(m);
// check everything else
return MatchesExceptForAttributes(m);
LogError("class %s has two methods with the same prototype: '%s'",
m_strName, m_methods[i].GetAsString());
return false;
LogError("class %s has two methods with the same prototype: '%s'",
m_strName, m_methods[i].GetAsString());
return false;
- ((wxClass*)this)->m_methods.RemoveAt(j);
- j--;
+
+ // fix the problem?
+ //((wxClass*)this)->m_methods.RemoveAt(j);
+ //j--;
// but is a little bit faster
bool getID(unsigned long *id, const wxString& str)
{
// but is a little bit faster
bool getID(unsigned long *id, const wxString& str)
{
- const wxStringCharType * const start = str.wx_str();
+ const wxStringCharType * const start = str.wx_str()+1;
wxStringCharType *end;
#if wxUSE_UNICODE_WCHAR
unsigned long val = wcstoul(start, &end, GCCXML_BASE);
wxStringCharType *end;
#if wxUSE_UNICODE_WCHAR
unsigned long val = wcstoul(start, &end, GCCXML_BASE);