Searched refs:INC_MOD (Results 1 – 3 of 3) sorted by relevance
/freebsd/bin/ed/ |
H A D | glbl.c | 190 active_ndx = INC_MOD(active_ndx, active_last - 1); in unset_active_nodes() 192 } else active_ndx = INC_MOD(active_ndx, active_last - 1); in unset_active_nodes()
|
H A D | main.c | 465 else if ((addr = INC_MOD(current_addr, addr_last)) != 0) in exec_command() 882 if ((n = dir ? INC_MOD(n, addr_last) : DEC_MOD(n, addr_last))) { in get_matching_node_addr() 1066 ep = get_addressed_line_node(INC_MOD(to, addr_last)); in join_lines() 1097 long n = INC_MOD(second_addr, addr_last); in move_lines() 1107 push_undo_stack(UMOV, addr, INC_MOD(addr, addr_last)) == NULL) { in move_lines() 1183 n = get_addressed_line_node(INC_MOD(to, addr_last)); in delete_lines() 1209 ep = get_addressed_line_node(INC_MOD(to, addr_last)); in display_lines()
|
H A D | ed.h | 88 #define INC_MOD(l, k) ((l) + 1 > (k) ? 0 : (l) + 1) macro
|