Home
last modified time | relevance | path

Searched refs:chpos (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/less/
H A Dcvt.c36 * Allocate a chpos array for use by cvt_text.
41 int *chpos = (int *) ecalloc(len, sizeof(int)); in cvt_alloc_chpos()
44 chpos[i] = -1; in cvt_alloc_chpos()
45 return (chpos); in cvt_alloc_chpos()
51 * odst character (when it was in osrc) is returned in the chpos array.
53 public void cvt_text(mutable char *odst, constant char *osrc, mutable int *chpos, mutable size_t *lenp, int ops) in cvt_text()
97 if (chpos != NULL) in cvt_text()
100 chpos[dst_pos++] = (int) src_pos; /*{{type-issue}}*/ in cvt_text()
111 /* FIXME: why was this here? if (chpos != NULL) chpos[ds
40 int *chpos = (int *) ecalloc(sizeof(int), len); cvt_alloc_chpos() local
52 cvt_text(char * odst,char * osrc,int * chpos,int * lenp,int ops) cvt_text() argument
[all...]
H A Dsearch.c979 static void create_hilites(POSITION linepos, constant char *line, constant char *sp, constant char *ep, int attr, int *chpos)
987 hl.hl_startpos = linepos + chpos[start_index]; in hilite_screen()
1000 if (chpos[i] != chpos[i-1] + 1 || i == end_index) in chg_hilite()
1002 hl.hl_endpos = linepos + chpos[i-1] + 1; in chg_hilite()
1007 hl.hl_startpos = linepos + chpos[i]; in chg_hilite()
1018 static void hilite_line(POSITION linepos, constant char *line, size_t line_len, int *chpos, constant char **sp, constant char **ep, int nsp) in search_pos()
1048 AT_HILITE | AT_COLOR_SEARCH, chpos); in search_pos()
1050 AT_HILITE | AT_COLOR_SUBSEARCH(i), chpos); in search_pos()
1055 AT_HILITE | AT_COLOR_SEARCH, chpos); in search_pos()
887 create_hilites(POSITION linepos,char * line,char * sp,char * ep,int attr,int * chpos) create_hilites() argument
926 hilite_line(POSITION linepos,char * line,int line_len,int * chpos,char ** sp,char ** ep,int nsp,int cvt_ops) hilite_line() argument
1111 matches_filters(POSITION pos,char * cline,int line_len,int * chpos,POSITION linepos,char ** sp,char ** ep,int nsp) matches_filters() argument
1187 int *chpos; search_range() local
[all...]
H A Dtags.c460 int *chpos = cvt_alloc_chpos(cvt_len); in ctagsearch() local
462 cvt_text(cline, line, chpos, &line_len, cvt_ops); in ctagsearch()
465 free(chpos); in ctagsearch()
H A Dfuncs.h115 public void cvt_text(mutable char *odst, constant char *osrc, mutable int *chpos, mutable size_t *lenp, int ops);