mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Decoding simple files with functions and assignments is now possible
This commit is contained in:
parent
b89ae8b2ac
commit
03042b7e23
12 changed files with 330 additions and 180 deletions
10
string.cpp
10
string.cpp
|
|
@ -39,11 +39,15 @@ bool PycString::isEqual(PycRef<PycObject> obj) const
|
|||
return false;
|
||||
|
||||
PycRef<PycString> strObj = obj.cast<PycString>();
|
||||
if (m_value == strObj->m_value)
|
||||
return true;
|
||||
return (strcmp(m_value, strObj->m_value) == 0);
|
||||
return isEqual(strObj->m_value);
|
||||
}
|
||||
|
||||
bool PycString::isEqual(const char* str) const
|
||||
{
|
||||
if (m_value == str)
|
||||
return true;
|
||||
return (strcmp(m_value, str) == 0);
|
||||
}
|
||||
|
||||
void OutputString(PycRef<PycString> str, QuoteStyle style, FILE* F)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue