Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. struct _anchors {
  3.         collection anchor_name;
  4.         collection anchor_position;
  5.         void add();
  6.         int get_anchor_pos();
  7. } anchors;
  8.  
  9. void _anchors::add(dword _name, _pos)
  10. {
  11.         anchor_name.add(_name);
  12.         anchor_position.add(itoa(_pos));
  13. }
  14.  
  15. int _anchors::get_anchor_pos(dword _get_name)
  16. {
  17.         dword pos_name = anchor_name.get_pos_by_name(_get_name);
  18.         if (pos_name==-1) return -1;
  19.         return atoi(anchor_position.get(pos_name));
  20. }
  21.  
  22.