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

Replaced structs with classes

parent 747e4ea9
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
namespace pyston { namespace pyston {
extern BoxedClass* dict_iterator_cls; extern BoxedClass* dict_iterator_cls;
struct BoxedDictIterator : public Box { class BoxedDictIterator : public Box {
public:
enum IteratorType { KeyIterator, ValueIterator, ItemIterator }; enum IteratorType { KeyIterator, ValueIterator, ItemIterator };
BoxedDict* d; BoxedDict* d;
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
namespace pyston { namespace pyston {
extern BoxedClass* list_iterator_cls; extern BoxedClass* list_iterator_cls;
struct BoxedListIterator : public Box { class BoxedListIterator : public Box {
public:
BoxedList* l; BoxedList* l;
int pos; int pos;
BoxedListIterator(BoxedList* l); BoxedListIterator(BoxedList* l);
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
namespace pyston { namespace pyston {
extern BoxedClass* tuple_iterator_cls; extern BoxedClass* tuple_iterator_cls;
struct BoxedTupleIterator : public Box { class BoxedTupleIterator : public Box {
public:
BoxedTuple* t; BoxedTuple* t;
int pos; int pos;
BoxedTupleIterator(BoxedTuple* t); 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