Home
last modified time | relevance | path

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

/freebsd-10-stable/contrib/less/
Dinput.c56 if (curr_pos == NULL_POSITION)
59 return (NULL_POSITION);
79 return (NULL_POSITION);
91 return (NULL_POSITION);
116 return (NULL_POSITION);
139 return (NULL_POSITION);
152 return (NULL_POSITION);
190 return (NULL_POSITION);
236 return (NULL_POSITION);
264 if (curr_pos == NULL_POSITION || curr_pos <= ch_zero())
[all …]
Dforwback.c70 if (ch_length() == NULL_POSITION) in eof_displayed()
83 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed()
100 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed()
224 if (pos == NULL_POSITION)
232 if (!force && position(TOP) != NULL_POSITION)
259 pos == NULL_POSITION && !top_scroll &&
331 if (pos == NULL_POSITION)
386 if (pos == NULL_POSITION && (!force || empty_lines(2, sc_height-1)))
403 } while (pos == NULL_POSITION);
427 if (pos == NULL_POSITION && (!force || position(BOTTOM) == 0))
[all …]
Djump.c53 if (pos == NULL_POSITION) in jump_forw()
77 if (end != NULL_POSITION && end > 0) in jump_forw_buffered()
98 if (pos != NULL_POSITION && ch_seek(pos) == 0)
127 if (scrpos.pos == NULL_POSITION) in repaint()
148 if ((len = ch_length()) == NULL_POSITION)
153 if ((len = ch_length()) == NULL_POSITION)
247 if (tpos == NULL_POSITION || pos >= tpos)
257 if (bpos != NULL_POSITION && pos <= bpos)
272 if (pos == NULL_POSITION)
298 if (pos == NULL_POSITION)
Dlinenum.c277 if (pos == NULL_POSITION)
330 if (cpos == NULL_POSITION)
362 if (cpos == NULL_POSITION)
409 return (NULL_POSITION);
417 return (NULL_POSITION);
418 if (cpos == NULL_POSITION)
419 return (NULL_POSITION);
427 return (NULL_POSITION);
435 return (NULL_POSITION);
436 if (cpos == NULL_POSITION)
[all …]
Dprompt.c168 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1)
170 if (pos == NULL_POSITION)
193 return (curr_byte(where) != NULL_POSITION);
205 return (linenums && ch_length() != NULL_POSITION);
219 return (curr_byte(where) != NULL_POSITION &&
227 return (ch_length() != NULL_POSITION);
265 if (pos != NULL_POSITION)
283 if (len == NULL_POSITION)
325 if (len == NULL_POSITION || len == ch_zero() ||
343 if (pos != NULL_POSITION && len > 0)
[all …]
Dsearch.c286 if (pos == NULL_POSITION)
309 if (start_attnpos == NULL_POSITION) in clear_attn()
313 start_attnpos = end_attnpos = NULL_POSITION; in clear_attn()
326 if (pos == NULL_POSITION) in clear_attn()
330 (epos == NULL_POSITION || epos > old_start_attnpos)) in clear_attn()
388 prep_startpos = prep_endpos = NULL_POSITION;
532 return (n != NULL && (epos == NULL_POSITION || epos > n->r.hl_startpos));
616 start_attnpos != NULL_POSITION &&
618 (epos == NULL_POSITION || epos > start_attnpos))
1039 if (scrpos.pos == NULL_POSITION) in hilite_screen()
[all …]
Dmark.c36 marks[i].m_scrpos.pos = NULL_POSITION; in init_mark()
114 if (m->m_scrpos.pos == NULL_POSITION)
165 m->m_scrpos.pos = NULL_POSITION;
179 if (scrpos.pos == NULL_POSITION) in lastmark()
204 if (m == &marks[LASTMARK] && m->m_scrpos.pos == NULL_POSITION)
244 return (NULL_POSITION);
249 return (NULL_POSITION);
286 marks[i].m_scrpos.pos = NULL_POSITION;
Dposition.c100 table[i] = NULL_POSITION; in pos_clear()
122 scrpos.pos = NULL_POSITION; in pos_init()
126 if (scrpos.pos != NULL_POSITION) in pos_init()
166 if (table[i] != NULL_POSITION && table[i] != 0)
200 if (table[i] != NULL_POSITION)
211 scrpos->pos = NULL_POSITION;
Dch.c226 if ((len = ch_length()) != NULL_POSITION && pos >= len) in ch_get()
335 (curr_pos != NULL_POSITION && st.st_size < curr_pos))) in ch_get()
401 if (!tried && ch_fsize == NULL_POSITION) in end_logfile()
489 if (pos < ch_zero() || (len != NULL_POSITION && pos > len))
529 if (len != NULL_POSITION) in ch_end_seek()
608 return (NULL_POSITION); in ch_length()
610 return (NULL_POSITION); in ch_length()
625 return (NULL_POSITION); in ch_tell()
709 ch_fsize = NULL_POSITION; in ch_flush()
742 ch_fsize = NULL_POSITION; in ch_flush()
[all …]
Dlsystem.c265 if (mpos == NULL_POSITION)
268 if (tpos == NULL_POSITION)
276 else if (bpos == NULL_POSITION)
330 while (epos == NULL_POSITION || spos++ <= epos)
Dtags.c209 return (NULL_POSITION); /* No gtags loaded! */ in tagsearch()
438 return (NULL_POSITION); in ctagsearch()
449 if (pos == NULL_POSITION) in ctagsearch()
455 return (NULL_POSITION); in ctagsearch()
697 return (NULL_POSITION); /* No gtags loaded! */ in gtagsearch()
Dline.c237 if (start_attnpos != NULL_POSITION &&
646 if (highest_hilite != NULL_POSITION &&
1239 if (curr_pos == NULL_POSITION || ch_seek(curr_pos) ||
1241 return (NULL_POSITION);
1288 if (curr_pos == NULL_POSITION || curr_pos <= ch_zero() ||
1290 return (NULL_POSITION);
1363 for (line = 0; line < sc_height && pos != NULL_POSITION; line++) in rrshift()
Dmain.c28 public POSITION start_attnpos = NULL_POSITION;
29 public POSITION end_attnpos = NULL_POSITION;
278 if (initial_scrpos.pos == NULL_POSITION)
Dbrac.c46 if (pos == NULL_POSITION || ch_seek(pos))
Difile.c50 { NULL_POSITION, 0 } };
119 p->h_scrpos.pos = NULL_POSITION;
Dcommand.c669 if (initial_scrpos.pos == NULL_POSITION) in make_display()
1047 highest_hilite = until_hilite ? curr_len : NULL_POSITION;
1679 if (pos != NULL_POSITION) in commands()
1704 if (pos != NULL_POSITION) in commands()
Dless.h233 #define NULL_POSITION ((POSITION)(-1)) macro
Doptfunc.c328 if (edit_tagfile() || (pos = tagsearch()) == NULL_POSITION)
Dedit.c189 if (scrpos.pos != NULL_POSITION) in close_file()
Ddecode.c705 if (len == NULL_POSITION || len < 3)
Dfilename.c513 return (NULL_POSITION);