forked from KolibriOS/kolibrios
e1d611df85
git-svn-id: svn://kolibrios.org@7738 a494cfbc-eb01-0410-851d-a64ba20cac60
22 lines
428 B
C
22 lines
428 B
C
|
|
struct _anchors {
|
|
collection anchor_name;
|
|
collection anchor_position;
|
|
void add();
|
|
int get_anchor_pos();
|
|
} anchors;
|
|
|
|
void _anchors::add(dword _name, _pos)
|
|
{
|
|
anchor_name.add(_name);
|
|
anchor_position.add(itoa(_pos));
|
|
}
|
|
|
|
int _anchors::get_anchor_pos(dword _get_name)
|
|
{
|
|
dword pos_name = anchor_name.get_pos_by_name(_get_name);
|
|
if (pos_name==-1) return -1;
|
|
return atoi(anchor_position.get(pos_name));
|
|
}
|
|
|