/programs/cmm/lib/patterns/history.h |
---|
3,6 → 3,7 |
struct _history { |
collection items; |
int active; |
void clear(); |
int add(); |
int back(); |
int forward(); |
35,4 → 36,10 |
dword _history::current() |
{ |
return items.get(active-1); |
} |
} |
:void _history::clear() |
{ |
items.drop(); |
active=0; |
} |