Commit 8399ad46 authored by Krzysztof Klinikowski's avatar Krzysztof Klinikowski

Replaced structs with classes

parent 747e4ea9
......@@ -21,7 +21,8 @@
namespace pyston {
extern BoxedClass* dict_iterator_cls;
struct BoxedDictIterator : public Box {
class BoxedDictIterator : public Box {
public:
enum IteratorType { KeyIterator, ValueIterator, ItemIterator };
BoxedDict* d;
......
......@@ -21,7 +21,8 @@
namespace pyston {
extern BoxedClass* list_iterator_cls;
struct BoxedListIterator : public Box {
class BoxedListIterator : public Box {
public:
BoxedList* l;
int pos;
BoxedListIterator(BoxedList* l);
......
......@@ -21,7 +21,8 @@
namespace pyston {
extern BoxedClass* tuple_iterator_cls;
struct BoxedTupleIterator : public Box {
class BoxedTupleIterator : public Box {
public:
BoxedTuple* t;
int pos;
BoxedTupleIterator(BoxedTuple* t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment