Home
last modified time | relevance | path

Searched refs:NULL_POSITION (Results 1 – 25 of 30) sorted by relevance

12

/netbsd-src/distrib/utils/more/
H A Dinput.c71 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 Dprim.c81 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 Dposition.c127 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 Dline.c422 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 Dlinenum.c277 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 Dcommand.c163 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 Dmain.c91 initial_pos = NULL_POSITION;
186 if (initial_pos != NULL_POSITION)
201 if (quit_at_eof || position(TOP) == NULL_POSITION)
H A Dless.h35 #define NULL_POSITION ((off_t)(-1)) macro
/netbsd-src/external/bsd/less/dist/
H A Dinput.c50 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 Dforwback.c80 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 Dlinenum.c273 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 Djump.c59 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 Dposition.c96 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 Dsearch.c274 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 Dprompt.c157 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 Dmark.c81 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 Dch.c229 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 Dlsystem.c263 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 Dline.c256 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 Dtags.c200 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 Dmain.c29 public POSITION start_attnpos = NULL_POSITION;
30 public POSITION end_attnpos = NULL_POSITION;
274 if (initial_scrpos.pos == NULL_POSITION) in main()
H A Dbrac.c41 if (pos == NULL_POSITION || ch_seek(pos)) in match_brac()
H A Difile.c53 { NULL_POSITION, 0 } };
112 p->h_scrpos.pos = NULL_POSITION; in new_ifile()
H A Dedit.c259 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 Dcommand.c793 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()

12