Support new marshal types from Python 3.4

This commit is contained in:
Michael Hansen
2014-01-21 00:07:34 -08:00
parent 6ecbcfb564
commit 176a049a68
9 changed files with 131 additions and 27 deletions

View File

@@ -52,7 +52,10 @@ public:
PycRef<PycCode> code() const { return m_code; }
void intern(PycRef<PycString> str) { m_interns.push_back(str); }
PycRef<PycString> getIntern(int ref);
PycRef<PycString> getIntern(int ref) const;
void refObject(PycRef<PycObject> str) { m_refs.push_back(str); }
PycRef<PycObject> getRef(int ref) const;
private:
void setVersion(unsigned int magic);
@@ -63,6 +66,7 @@ private:
PycRef<PycCode> m_code;
std::list<PycRef<PycString> > m_interns;
std::list<PycRef<PycObject> > m_refs;
};
#endif