/programs/cmm/TWB/anchors.h |
---|
1,10 → 1,12 |
struct _anchors { |
char current[256]; |
collection anchor_name; |
collection anchor_position; |
void add(); |
int get_pos_by_name(); |
void clear(); |
void take_anchor_from(); |
} anchors; |
void _anchors::add(dword _name, _pos) |
30,3 → 32,12 |
anchor_position.drop(); |
} |
void _anchors::take_anchor_from(dword _URL) |
{ |
int anchor_pos; |
if (!current) && (_URL) && (anchor_pos = strrchr(_URL, '#')) { |
strncpy(#current, _URL+anchor_pos-1, sizeof(_anchors.current)-1); |
ESBYTE[_URL+anchor_pos-1] = EOS; |
} |
} |