Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7930 → Rev 7929

/programs/cmm/lib/collection.h
100,7 → 100,6
void alloc();
void add();
dword get();
dword len();
dword get_last();
void pop();
void drop();
128,11 → 127,6
return ESDWORD[pos * sizeof(dword) + buf];
}
 
:dword collection_int::len(dword pos) {
if (pos<0) || (pos+1>=count) return 0;
return get(pos+1) - get(pos);
}
 
:dword collection_int::get_last() {
return get(count-1);
}