Use less conflicting filenames

This commit is contained in:
Michael Hansen
2011-10-23 17:48:10 -07:00
parent 99662d8119
commit c474d368a1
20 changed files with 95 additions and 123 deletions

30
pyc_string.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef _PYC_STRING_H
#define _PYC_STRING_H
#include "pyc_object.h"
#include <cstdio>
class PycString : public PycObject {
public:
PycString(int type = TYPE_STRING)
: PycObject(type), m_value(0), m_length(0) { }
~PycString() { if (m_value) delete[] m_value; }
bool isEqual(PycRef<PycObject> obj) const;
bool isEqual(const char* str) const;
void load(class PycData* stream, class PycModule* mod);
int length() const { return m_length; }
const char* value() const { return m_value; }
private:
char* m_value;
int m_length;
};
void OutputString(PycRef<PycString> str, char prefix = 0,
bool triple = false, FILE* F = stdout);
#endif