char search_bf[128];
};
-static inline struct browser_line *disasm_line__browser(struct disasm_line *dl)
+static inline struct browser_line *browser_line(struct disasm_line *dl)
{
return (void *) dl - sizeof(struct browser_line);
}
{
struct annotate_browser *ab = container_of(browser, struct annotate_browser, b);
struct disasm_line *dl = list_entry(entry, struct disasm_line, al.node);
- struct browser_line *bdl = disasm_line__browser(dl);
+ struct browser_line *bdl = browser_line(dl);
bool current_entry = ui_browser__is_current_entry(browser, row);
bool change_color = (!annotate_browser__opts.hide_src_code &&
(!current_entry || (browser->use_navkeypressed &&
if (!target)
return;
- bcursor = disasm_line__browser(cursor);
- btarget = disasm_line__browser(target);
+ bcursor = browser_line(cursor);
+ btarget = browser_line(target);
if (annotate_browser__opts.hide_src_code) {
from = bcursor->idx_asm;
u32 idx;
pos = rb_entry(nd, struct disasm_line, al.rb_node);
- bpos = disasm_line__browser(pos);
+ bpos = browser_line(pos);
idx = bpos->idx;
if (annotate_browser__opts.hide_src_code)
browser->b.seek(&browser->b, offset, SEEK_CUR);
dl = list_entry(browser->b.top, struct disasm_line, al.node);
- bdl = disasm_line__browser(dl);
+ bdl = browser_line(dl);
if (annotate_browser__opts.hide_src_code) {
if (bdl->idx_asm < offset)
if (dlt == NULL)
continue;
- bdlt = disasm_line__browser(dlt);
+ bdlt = browser_line(dlt);
if (++bdlt->jump_sources > browser->max_jump_sources)
browser->max_jump_sources = bdlt->jump_sources;
if (browser.b.width < line_len)
browser.b.width = line_len;
- bpos = disasm_line__browser(pos);
+ bpos = browser_line(pos);
bpos->idx = browser.nr_entries++;
if (pos->al.offset != -1) {
bpos->idx_asm = browser.nr_asm_entries++;