Subversion Repositories Kolibri OS

Rev

Rev 7752 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7738 leency 1
 
2
	collection anchor_name;
3
	collection anchor_position;
4
	void add();
5
	int get_pos_by_name();
7752 leency 6
	void clear();
7
} anchors;
7738 leency 8
9
 
10
{
11
	anchor_name.add(_name);
12
	anchor_position.add(itoa(_pos));
13
}
14
15
 
7752 leency 16
{
7738 leency 17
	dword pos_name = anchor_name.get_pos_by_name(_get_name);
18
	if (ESBYTE[_get_name]==NULL) return 0;
7752 leency 19
	if (pos_name==-1) {
20
		return -1;
21
	} else {
22
		return atoi(anchor_position.get(pos_name));
23
	}
24
}
7738 leency 25
26
 
7752 leency 27
{
28
	anchor_name.drop();
29
	anchor_position.drop();
30
}
31