Lines Matching refs:addr
256 long addr;
260 while ((addr = next_addr()) >= 0) {
263 second_addr = addr;
267 current_addr = addr;
269 if ((addr_cnt = min(addr_cnt, 2)) == 1 || second_addr != addr)
271 return (addr == ERR) ? ERR : 0;
289 long addr = current_addr;
306 addr += (c == '-' || c == '^') ? -n : n;
308 addr += (c == '-' || c == '^') ? -1 : 1;
314 STRTOL(addr, ibufp);
320 addr = (c == '.') ? current_addr : addr_last;
325 if ((addr = get_matching_node_addr(
334 if ((addr = get_marked_node_addr(*ibufp++)) < 0)
344 if ((addr = next_addr()) < 0)
345 addr = addr_last;
352 else if (addr < 0 || addr_last < addr) {
356 return addr;
364 #define GET_THIRD_ADDR(addr) \
378 addr = second_addr; \
383 #define GET_THIRD_ADDR(addr) \
394 addr = second_addr; \
448 long addr = 0;
476 else if ((addr = INC_MOD(current_addr, addr_last)) != 0)
477 current_addr = addr;
606 GET_THIRD_ADDR(addr);
607 if (first_addr <= addr && addr < second_addr) {
613 if (move_lines(addr) < 0)
667 if ((addr = read_file(*fnp ? fnp : old_filename, second_addr)) < 0)
669 else if (addr && addr != addr_last)
762 GET_THIRD_ADDR(addr);
765 if (copy_lines(addr) < 0)
801 if ((addr = write_file(*fnp ? fnp : old_filename,
804 else if (addr == addr_last && *fnp != '!')
1105 move_lines(long addr)
1110 int done = (addr == first_addr - 1 || addr == second_addr);
1118 push_undo_stack(UMOV, addr, INC_MOD(addr, addr_last)) == NULL) {
1123 if (addr < first_addr) {
1125 b2 = get_addressed_line_node(addr);
1128 b2 = get_addressed_line_node(addr);
1136 current_addr = addr + ((addr < first_addr) ?
1149 copy_lines(long addr)
1156 current_addr = addr;
1157 if (first_addr <= addr && addr < second_addr) {
1158 n = addr - first_addr + 1;
1159 m = second_addr - addr;