Subversion Repositories Kolibri OS

Rev

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

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