| /netbsd-src/distrib/utils/more/ |
| H A D | input.c | 71 if (curr_pos == NULL_POSITION || ch_seek(curr_pos)) 72 return (NULL_POSITION); 76 return (NULL_POSITION); 82 return (NULL_POSITION); 118 return (NULL_POSITION); 141 if (curr_pos == NULL_POSITION || curr_pos <= (off_t)0 || 143 return (NULL_POSITION); 164 return (NULL_POSITION); 166 return (NULL_POSITION); 177 return (NULL_POSITION); [all …]
|
| H A D | prim.c | 81 if (pos == NULL_POSITION || pos == ch_length()) in eof_check() 160 if (pos == NULL_POSITION) { 166 if (position(TOP) == NULL_POSITION) { 223 if (pos == NULL_POSITION) 271 if (pos == NULL_POSITION) 296 if (pos == NULL_POSITION) 414 if ((len = ch_length()) == NULL_POSITION) 475 if (tpos != NULL_POSITION && pos < tpos) { 525 marks[i] = NULL_POSITION; in init_mark() 575 if (pos == NULL_POSITION) [all …]
|
| H A D | position.c | 127 for (a = 0; a < sc_height && table[a] == NULL_POSITION; a++); in copytable() 130 table[a] = NULL_POSITION; in copytable() 151 table[i] = NULL_POSITION; in pos_clear()
|
| H A D | line.c | 422 if (curr_pos == NULL_POSITION || ch_seek(curr_pos) || 424 return (NULL_POSITION); 466 if (curr_pos == NULL_POSITION || curr_pos <= (off_t)0 || 468 return (NULL_POSITION);
|
| H A D | linenum.c | 277 if (pos == NULL_POSITION) 325 if (sigs || cpos == NULL_POSITION) 357 if (sigs || cpos == NULL_POSITION) 389 if ((pos = position(where)) == NULL_POSITION)
|
| H A D | command.c | 163 if (position(TOP) == NULL_POSITION) { in prompt() 164 if (forw_line((off_t)0) == NULL_POSITION) in prompt() 193 if ((pos = position(BOTTOM)) != NULL_POSITION) { in prompt() 219 (pos = position(BOTTOM)) != NULL_POSITION && in prompt() 242 if (cp > cmdbuf && position(TOP) == NULL_POSITION) { in getcc()
|
| H A D | main.c | 91 initial_pos = NULL_POSITION; 186 if (initial_pos != NULL_POSITION) 201 if (quit_at_eof || position(TOP) == NULL_POSITION)
|
| H A D | less.h | 35 #define NULL_POSITION ((off_t)(-1)) macro
|
| /netbsd-src/external/bsd/less/dist/ |
| H A D | input.c | 50 int hl_before = (chop_line() && disp_pos != NULL_POSITION) ? in init_status_col() 99 if (curr_pos == NULL_POSITION) in forw_line_seg() 102 return (NULL_POSITION); in forw_line_seg() 122 return (NULL_POSITION); in forw_line_seg() 134 return (NULL_POSITION); in forw_line_seg() 159 return (NULL_POSITION); in forw_line_seg() 191 return (NULL_POSITION); in forw_line_seg() 194 wrap_pos = NULL_POSITION; in forw_line_seg() 206 return (NULL_POSITION); in forw_line_seg() 247 return (NULL_POSITION); in forw_line_seg() [all …]
|
| H A D | forwback.c | 80 if (ch_length() == NULL_POSITION) in eof_displayed() 93 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed() 109 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed() 190 if (pos == NULL_POSITION) in overlay_header() 236 if (pos != NULL_POSITION && (hilite_search == OPT_ONPLUS || is_filtering() || status_col)) { in forw() 304 if (pos == NULL_POSITION) in forw() 312 if (!force && position(TOP) != NULL_POSITION) in forw() 339 pos == NULL_POSITION && !top_scroll && in forw() 409 if (pos != NULL_POSITION && (hilite_search == OPT_ONPLUS || is_filtering() || status_col)) { in back() 423 if (pos == NULL_POSITION) in back() [all …]
|
| H A D | linenum.c | 273 if (pos == NULL_POSITION) in find_linenum() 326 if (cpos == NULL_POSITION) in find_linenum() 357 if (cpos == NULL_POSITION) in find_linenum() 402 return (NULL_POSITION); in find_pos() 410 return (NULL_POSITION); in find_pos() 411 if (cpos == NULL_POSITION) in find_pos() 412 return (NULL_POSITION); in find_pos() 420 return (NULL_POSITION); in find_pos() 428 return (NULL_POSITION); in find_pos() 429 if (cpos == NULL_POSITION) in find_pos() [all …]
|
| H A D | jump.c | 59 if (pos == NULL_POSITION) in jump_forw() 82 if (end != NULL_POSITION && end > 0) in jump_forw_buffered() 101 if (pos != NULL_POSITION && ch_seek(pos) == 0) in jump_back() 129 if (scrpos.pos == NULL_POSITION) in repaint() 147 if ((len = ch_length()) == NULL_POSITION) in jump_percent() 152 if ((len = ch_length()) == NULL_POSITION) in jump_percent() 240 if (tpos == NULL_POSITION || pos >= tpos) in jump_loc() 250 if (bpos != NULL_POSITION && pos <= bpos) in jump_loc() 265 if (pos == NULL_POSITION) in jump_loc() 291 if (pos == NULL_POSITION) in jump_loc()
|
| H A D | position.c | 96 table[i] = NULL_POSITION; in pos_clear() 117 scrpos.pos = NULL_POSITION; in pos_init() 121 if (scrpos.pos != NULL_POSITION) in pos_init() 155 if (table[i] != NULL_POSITION && table[i] != 0) in empty_lines() 184 if (table[i] == NULL_POSITION) { in get_scrpos() 185 scrpos->pos = NULL_POSITION; in get_scrpos() 198 if (table[i] != NULL_POSITION) in get_scrpos() 209 scrpos->pos = NULL_POSITION; in get_scrpos()
|
| H A D | search.c | 274 if (pos == NULL_POSITION) in repaint_hilite() 300 if (start_attnpos == NULL_POSITION) in clear_attn() 304 start_attnpos = end_attnpos = NULL_POSITION; in clear_attn() 317 if (pos == NULL_POSITION) in clear_attn() 321 (epos == NULL_POSITION || epos > old_start_attnpos)) in clear_attn() 381 prep_startpos = prep_endpos = NULL_POSITION; in clr_hlist() 495 if (epos != NULL_POSITION && epos <= n->r.hl_startpos) in hilited_range_attr() 570 start_attnpos != NULL_POSITION && in is_hilited_attr() 572 (epos == NULL_POSITION || epos >= start_attnpos)) in is_hilited_attr() 992 if (scrpos.pos == NULL_POSITION) in hilite_screen() [all …]
|
| H A D | prompt.c | 157 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1) in curr_byte() 159 if (pos == NULL_POSITION) in curr_byte() 179 return (curr_byte(where) != NULL_POSITION); in cond() 194 return (linenums && ch_length() != NULL_POSITION); in cond() 208 return (curr_byte(where) != NULL_POSITION && in cond() 216 return (ch_length() != NULL_POSITION); in cond() 251 if (pos != NULL_POSITION) in protochar() 269 if (len == NULL_POSITION) in protochar() 316 if (len == NULL_POSITION || len == ch_zero() || in protochar() 334 if (pos != NULL_POSITION && len > 0) in protochar() [all …]
|
| H A D | mark.c | 81 cmark(&marks[i], NULL_IFILE, NULL_POSITION, -1); in init_mark() 177 if (m->m_scrpos.pos == NULL_POSITION) in getmark() 207 if (scrpos.pos == NULL_POSITION) in setmark() 226 if (m->m_scrpos.pos == NULL_POSITION) in clrmark() 231 m->m_scrpos.pos = NULL_POSITION; in clrmark() 245 if (scrpos.pos == NULL_POSITION) in lastmark() 269 if (m == &marks[LASTMARK] && m->m_scrpos.pos == NULL_POSITION) in gomark() 301 return (NULL_POSITION); in markpos() 306 return (NULL_POSITION); in markpos() 340 marks[i].m_scrpos.pos = NULL_POSITION; in unmark() [all …]
|
| H A D | ch.c | 229 if ((len = ch_length()) != NULL_POSITION && pos >= len) in ch_get() 384 if (!tried && ch_fsize == NULL_POSITION) in end_logfile() 470 if (pos < ch_zero() || (len != NULL_POSITION && pos > len)) in ch_seek() 509 if (len != NULL_POSITION) in ch_end_seek() 585 return (NULL_POSITION); in ch_length() 587 return (NULL_POSITION); in ch_length() 601 return (NULL_POSITION); in ch_tell() 681 ch_fsize = NULL_POSITION; in ch_flush() 719 ch_fsize = NULL_POSITION; in ch_flush() 818 if (ch_fsize != NULL_POSITION && ch_fsize < ch_fpos) in ch_set_eof() [all …]
|
| H A D | lsystem.c | 263 if (mpos == NULL_POSITION) in pipe_mark() 266 if (tpos == NULL_POSITION) in pipe_mark() 274 else if (bpos == NULL_POSITION) in pipe_mark() 323 while (epos == NULL_POSITION || spos++ <= epos) in pipe_data()
|
| H A D | line.c | 256 line_pos = NULL_POSITION; in prewind() 346 else if (start_attnpos != NULL_POSITION && in plinestart() 700 if (pos == NULL_POSITION) in store_char() 717 if (highest_hilite != NULL_POSITION && pos != NULL_POSITION && pos > highest_hilite) in store_char() 769 if (line_pos == NULL_POSITION) in store_char() 1340 if (curr_pos == NULL_POSITION || ch_seek(curr_pos) || in forw_raw_line() 1342 return (NULL_POSITION); in forw_raw_line() 1385 if (curr_pos == NULL_POSITION || curr_pos <= ch_zero() || in back_raw_line() 1387 return (NULL_POSITION); in back_raw_line() 1485 if (pappend(*str++, NULL_POSITION)) in pappstr() [all …]
|
| H A D | tags.c | 200 return (NULL_POSITION); /* No gtags loaded! */ in tagsearch() 426 return (NULL_POSITION); in ctagsearch() 437 if (pos == NULL_POSITION) in ctagsearch() 443 return (NULL_POSITION); in ctagsearch() 679 return (NULL_POSITION); /* No gtags loaded! */ in gtagsearch()
|
| H A D | main.c | 29 public POSITION start_attnpos = NULL_POSITION; 30 public POSITION end_attnpos = NULL_POSITION; 274 if (initial_scrpos.pos == NULL_POSITION) in main()
|
| H A D | brac.c | 41 if (pos == NULL_POSITION || ch_seek(pos)) in match_brac()
|
| H A D | ifile.c | 53 { NULL_POSITION, 0 } }; 112 p->h_scrpos.pos = NULL_POSITION; in new_ifile()
|
| H A D | edit.c | 259 if (pos == NULL_POSITION) in check_modelines() 309 if (sig != SIGPIPE || ch_length() != NULL_POSITION) in close_pipe() 365 if (scrpos.pos != NULL_POSITION) in close_file()
|
| H A D | command.c | 793 if (initial_scrpos.pos == NULL_POSITION) in make_display() 1197 highest_hilite = until_hilite ? curr_len : NULL_POSITION; in forw_loop() 1857 if (pos != NULL_POSITION) in commands() 1882 if (pos != NULL_POSITION) in commands()
|