Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/less/
HDinput.c58 if (curr_pos == NULL_POSITION)
61 return (NULL_POSITION);
81 return (NULL_POSITION);
93 return (NULL_POSITION);
118 return (NULL_POSITION);
141 return (NULL_POSITION);
154 return (NULL_POSITION);
193 return (NULL_POSITION);
250 return (NULL_POSITION);
285 if (curr_pos == NULL_POSITION || curr_pos <= ch_zero())
[all …]
HDforwback.c76 if (ch_length() == NULL_POSITION) in eof_displayed()
89 return (pos == NULL_POSITION || pos == ch_length()); in eof_displayed()
106 return (pos == NULL_POSITION || pos == 0); in entire_file_displayed()
230 if (pos == NULL_POSITION)
238 if (!force && position(TOP) != NULL_POSITION)
265 pos == NULL_POSITION && !top_scroll &&
337 if (pos == NULL_POSITION)
392 if (pos == NULL_POSITION && (!force || empty_lines(2, sc_height-1)))
409 } while (pos == NULL_POSITION);
433 if (pos == NULL_POSITION && (!force || position(BOTTOM) == 0))
[all …]
HDjump.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)
HDlinenum.c279 if (pos == NULL_POSITION)
332 if (cpos == NULL_POSITION)
363 if (cpos == NULL_POSITION)
410 return (NULL_POSITION);
418 return (NULL_POSITION);
419 if (cpos == NULL_POSITION)
420 return (NULL_POSITION);
428 return (NULL_POSITION);
436 return (NULL_POSITION);
437 if (cpos == NULL_POSITION)
[all …]
HDposition.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)
198 if (table[i] == NULL_POSITION) {
199 scrpos->pos = NULL_POSITION;
212 if (table[i] != NULL_POSITION)
223 scrpos->pos = NULL_POSITION;
HDsearch.c288 if (pos == NULL_POSITION)
313 if (start_attnpos == NULL_POSITION) in clear_attn()
317 start_attnpos = end_attnpos = NULL_POSITION; in clear_attn()
330 if (pos == NULL_POSITION) in clear_attn()
334 (epos == NULL_POSITION || epos > old_start_attnpos)) in clear_attn()
395 prep_startpos = prep_endpos = NULL_POSITION;
539 return (n != NULL && (epos == NULL_POSITION || epos > n->r.hl_startpos));
623 start_attnpos != NULL_POSITION &&
625 (epos == NULL_POSITION || epos >= start_attnpos))
1046 if (scrpos.pos == NULL_POSITION) in hilite_screen()
[all …]
HDprompt.c168 while (pos == NULL_POSITION && where >= 0 && where < sc_height-1)
170 if (pos == NULL_POSITION)
193 return (curr_byte(where) != NULL_POSITION);
208 return (linenums && ch_length() != NULL_POSITION);
222 return (curr_byte(where) != NULL_POSITION &&
230 return (ch_length() != NULL_POSITION);
269 if (pos != NULL_POSITION)
287 if (len == NULL_POSITION)
334 if (len == NULL_POSITION || len == ch_zero() ||
352 if (pos != NULL_POSITION && len > 0)
[all …]
HDmark.c82 cmark(&marks[i], NULL_IFILE, NULL_POSITION, -1); in init_mark()
187 if (m->m_scrpos.pos == NULL_POSITION)
222 if (scrpos.pos == NULL_POSITION)
243 if (m->m_scrpos.pos == NULL_POSITION)
248 m->m_scrpos.pos = NULL_POSITION;
263 if (scrpos.pos == NULL_POSITION) in lastmark()
289 if (m == &marks[LASTMARK] && m->m_scrpos.pos == NULL_POSITION)
323 return (NULL_POSITION);
328 return (NULL_POSITION);
366 marks[i].m_scrpos.pos = NULL_POSITION;
[all …]
HDch.c226 if ((len = ch_length()) != NULL_POSITION && pos >= len) in ch_get()
329 (curr_pos != NULL_POSITION && st.st_size < curr_pos))) in ch_get()
395 if (!tried && ch_fsize == NULL_POSITION) in end_logfile()
484 if (pos < ch_zero() || (len != NULL_POSITION && pos > len))
524 if (len != NULL_POSITION) in ch_end_seek()
603 return (NULL_POSITION); in ch_length()
605 return (NULL_POSITION); in ch_length()
620 return (NULL_POSITION); in ch_tell()
704 ch_fsize = NULL_POSITION; in ch_flush()
737 ch_fsize = NULL_POSITION; in ch_flush()
[all …]
HDlsystem.c272 if (mpos == NULL_POSITION)
275 if (tpos == NULL_POSITION)
283 else if (bpos == NULL_POSITION)
336 while (epos == NULL_POSITION || spos++ <= epos)
HDtags.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()
HDmain.c28 public POSITION start_attnpos = NULL_POSITION;
29 public POSITION end_attnpos = NULL_POSITION;
276 if (initial_scrpos.pos == NULL_POSITION)
HDline.c313 if (start_attnpos != NULL_POSITION &&
688 if (highest_hilite != NULL_POSITION && pos > highest_hilite)
1302 if (curr_pos == NULL_POSITION || ch_seek(curr_pos) ||
1304 return (NULL_POSITION);
1351 if (curr_pos == NULL_POSITION || curr_pos <= ch_zero() ||
1353 return (NULL_POSITION);
1425 for (line = 0; line < sc_height && pos != NULL_POSITION; line++) in rrshift()
HDbrac.c46 if (pos == NULL_POSITION || ch_seek(pos))
HDifile.c51 { NULL_POSITION, 0 } };
121 p->h_scrpos.pos = NULL_POSITION;
HDcommand.c739 if (initial_scrpos.pos == NULL_POSITION) in make_display()
1153 highest_hilite = until_hilite ? curr_len : NULL_POSITION;
1810 if (pos != NULL_POSITION) in commands()
1835 if (pos != NULL_POSITION) in commands()
HDless.h235 #define NULL_POSITION ((POSITION)(-1)) macro
HDedit.c187 if (scrpos.pos != NULL_POSITION) in close_file()
HDoptfunc.c337 if (edit_tagfile() || (pos = tagsearch()) == NULL_POSITION)
HDdecode.c843 if (len == NULL_POSITION || len < 3)
HDfilename.c516 return (NULL_POSITION);