Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7929 → Rev 7930

/programs/cmm/lib/collection.h
100,6 → 100,7
void alloc();
void add();
dword get();
dword len();
dword get_last();
void pop();
void drop();
127,6 → 128,11
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);
}