Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 26) sorted by relevance

12

/libedit-20250104-3.1/src/
Dprompt.c86 wchar_t *p; in prompt_print() local
99 for (; *p; p++) { in prompt_print()
102 while (*p && *p != elp->p_ignore) in prompt_print()
103 p++; in prompt_print()
104 if (!*p || !p[1]) { in prompt_print()
154 el_prompt_t *p; in prompt_set() local
167 p->p_func = prf; in prompt_set()
170 p->p_ignore = c; in prompt_set()
172 p->p_pos.v = 0; in prompt_set()
173 p->p_pos.h = 0; in prompt_set()
[all …]
Dchared.c217 if (iswalnum(p) || p == L'_') in cv__isword()
241 p--; in c__prev_word()
244 while ((p >= low) && !(*wtest)(*p)) in c__prev_word()
246 while ((p >= low) && (*wtest)(*p)) in c__prev_word()
251 p++; in c__prev_word()
266 while ((p < high) && !(*wtest)(*p)) in c__next_word()
268 while ((p < high) && (*wtest)(*p)) in c__next_word()
295 while ((p < high) && iswspace(*p)) in cv_next_word()
315 p--; in cv_prev_word()
317 while ((p > low) && iswspace(*p)) in cv_prev_word()
[all …]
Dparse.c147 p = *ptr; in parse__escape()
153 p++; in parse__escape()
184 ++p; in parse__escape()
195 --p; in parse__escape()
215 p--; in parse__escape()
222 --p; in parse__escape()
226 c = *p; in parse__escape()
230 p++; in parse__escape()
231 c = (*p == '?') ? '\177' : (*p & 0237); in parse__escape()
233 c = *p; in parse__escape()
[all …]
Deln.c118 ret = prompt_set(el, p, 0, op, 0); in el_set()
125 ret = ch_resizefun(el, p, arg); in el_set()
132 ret = ch_aliasfun(el, p, arg); in el_set()
141 ret = prompt_set(el, p, c, op, 0); in el_set()
289 ret = prompt_get(el, p, 0, op); in el_get()
298 ret = prompt_get(el, p, &wc, op); in el_get()
366 const wchar_t *p; in el_line() local
375 for (p = winfo->buffer; p < winfo->cursor; p++) in el_line()
376 offset += ct_enc_width(*p); in el_line()
380 for (p = winfo->buffer; p < winfo->lastchar; p++) in el_line()
[all …]
Dchartype.c53 void *p; in ct_conv_cbuff_resize() local
61 if (p == NULL) { in ct_conv_cbuff_resize()
67 conv->cbuff = p; in ct_conv_cbuff_resize()
74 void *p; in ct_conv_wbuff_resize() local
82 if (p == NULL) { in ct_conv_wbuff_resize()
88 conv->wbuff = p; in ct_conv_wbuff_resize()
149 wchar_t *p; in ct_decode_argv() local
165 for (i = 0, p = conv->wbuff; i < argc; ++i) { in ct_decode_argv()
170 wargv[i] = p; in ct_decode_argv()
171 bytes = (ssize_t)mbstowcs(p, argv[i], bufspace); in ct_decode_argv()
[all …]
Dhistory.c196 #define history_def_setsize(p, num)(void) (((history_t *)p)->max = (num)) argument
197 #define history_def_getsize(p) (((history_t *)p)->cur) argument
198 #define history_def_getunique(p) (((((history_t *)p)->flags) & H_UNIQUE) != 0) argument
254 history_t *h = (history_t *) p; in history_def_first()
274 history_t *h = (history_t *) p; in history_def_last()
294 history_t *h = (history_t *) p; in history_def_next()
319 history_t *h = (history_t *) p; in history_def_prev()
345 history_t *h = (history_t *) p; in history_def_curr()
366 history_t *h = (history_t *) p; in history_def_set()
393 history_t *h = (history_t *) p; in history_set_nth()
[all …]
Del.c218 el_pfunc_t p = va_arg(ap, el_pfunc_t); in el_wset() local
220 rv = prompt_set(el, p, 0, op, 1); in el_wset()
225 el_zfunc_t p = va_arg(ap, el_zfunc_t); in el_wset() local
227 rv = ch_resizefun(el, p, arg); in el_wset()
232 el_afunc_t p = va_arg(ap, el_afunc_t); in el_wset() local
234 rv = ch_aliasfun(el, p, arg); in el_wset()
240 el_pfunc_t p = va_arg(ap, el_pfunc_t); in el_wset() local
439 el_pfunc_t *p = va_arg(ap, el_pfunc_t *); in el_wget() local
440 rv = prompt_get(el, p, 0, op); in el_wget()
445 el_pfunc_t *p = va_arg(ap, el_pfunc_t *); in el_wget() local
[all …]
Drefresh.c543 wchar_t *o, *n, *p, c; in re_update_line() local
615 for (o = ofd, p = n; in re_update_line()
616 p < nls && o < ols && *o == *p; in re_update_line()
617 o++, p++) in re_update_line()
623 if (((nse - nsb) < (p - n)) && in re_update_line()
626 nse = p; in re_update_line()
639 for (n = nfd, p = o; in re_update_line()
640 p < ols && n < nls && *p == *n; in re_update_line()
641 p++, n++) in re_update_line()
652 ose = p; in re_update_line()
[all …]
Dgetline.c102 char *p = NULL; in main() local
106 while ((len = getline(&p, &n, stdin)) != -1) in main()
107 (void)printf("%zd %s", len, p); in main()
108 free(p); in main()
DMakefile.in114 am__vpath_adj = case $$p in \
115 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
116 *) f=$$p;; \
118 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
123 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
125 for p in $$list; do echo "$$p $$p"; done | \
431 list2=; for p in $$list; do \
432 if test -f $$p; then \
433 list2="$$list2 $$p"; \
446 for p in $$list; do \
[all …]
Dtokenizer.c430 const Char **p; in FUN() local
432 p = tok_realloc(tok->argv, tok->amax * sizeof(*p)); in FUN()
433 if (p == NULL) { in FUN()
437 tok->argv = p; in FUN()
Dmap.c1261 const wchar_t *p; in map_bind() local
1276 for (argc = 1; (p = argv[argc]) != NULL; argc++) in map_bind()
1277 if (p[0] == '-') in map_bind()
1278 switch (p[1]) { in map_bind()
1312 argv[0], (wint_t)p[1]); in map_bind()
1405 void *p; in map_addfunc() local
1411 if ((p = el_realloc(el->el_map.func, nf * in map_addfunc()
1414 el->el_map.func = p; in map_addfunc()
1415 if ((p = el_realloc(el->el_map.help, nf * sizeof(*el->el_map.help))) in map_addfunc()
1418 el->el_map.help = p; in map_addfunc()
Dreadline.c238 struct passwd *p; in _default_history_file() local
245 if ((p = getpwuid(getuid())) == NULL) in _default_history_file()
248 len = strlen(p->pw_dir) + sizeof("/.history"); in _default_history_file()
252 (void)snprintf(path, len, "%s/.history", p->pw_dir); in _default_history_file()
266 char *p; in rl_set_prompt() local
280 if (p[1] == RL_PROMPT_START_IGNORE) { in rl_set_prompt()
281 memmove(p, p + 2, 1 + strlen(p + 2)); in rl_set_prompt()
283 *p = RL_PROMPT_START_IGNORE; in rl_set_prompt()
442 readline(const char *p) in readline() argument
445 const char * volatile prompt = p; in readline()
[all …]
Dkeymacro.c634 const wchar_t *p; in keymacro__decode_str() local
645 for (p = str; *p != 0; p++) { in keymacro__decode_str()
648 ssize_t l = ct_visual_char(dbuf, VISUAL_WIDTH_MAX, *p); in keymacro__decode_str()
Demacs.c97 wchar_t *cp, *p, *kp; in em_delete_next_word() local
105 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) in em_delete_next_word()
107 *kp++ = *p; in em_delete_next_word()
Dtty.c1242 const wchar_t *p; in tty_stty() local
1253 p = wcschr(s, L'='); in tty_stty()
1255 if ((p ? strncmp(m->m_name, ct_encode_string(d, in tty_stty()
1256 &el->el_scratch), (size_t)(p - d)) : in tty_stty()
1259 (p == NULL || m->m_type == MD_CHAR)) in tty_stty()
1267 if (p) { in tty_stty()
1269 int v = *++p ? parse__escape(&p) : in tty_stty()
Dcommon.c121 wchar_t *cp, *p, *kp; in ed_delete_prev_word() local
129 for (p = cp, kp = el->el_chared.c_kill.buf; p < el->el_line.cursor; p++) in ed_delete_prev_word()
130 *kp++ = *p; in ed_delete_prev_word()
Dterminal.c1139 char *p; in terminal_bind_arrow() local
1156 p = el->el_terminal.t_str[arrow[i].key]; in terminal_bind_arrow()
1157 if (!p || !*p) in terminal_bind_arrow()
1159 for (n = 0; n < VISUAL_WIDTH_MAX && p[n]; ++n) in terminal_bind_arrow()
1160 wt_str[n] = p[n]; in terminal_bind_arrow()
1164 j = (unsigned char) *p; in terminal_bind_arrow()
1178 if (p[1] && (dmap[j] == map[j] || in terminal_bind_arrow()
/libedit-20250104-3.1/doc/
DMakefile.in125 am__vpath_adj = case $$p in \
127 *) f=$$p;; \
129 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
134 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
136 for p in $$list; do echo "$$p $$p"; done | \
349 } | while read p; do \
351 echo "$$d$$p"; echo "$$p"; \
392 } | while read p; do \
394 echo "$$d$$p"; echo "$$p"; \
435 } | while read p; do \
[all …]
/libedit-20250104-3.1/
DMakefile.in137 am__vpath_adj = case $$p in \
138 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
139 *) f=$$p;; \
141 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
146 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
148 for p in $$list; do echo "$$p $$p"; done | \
441 for p in $$list; do \
442 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
443 echo "$$d$$p"; \
453 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
[all …]
Dltmain.sh6337 if (!p)
6340 return p;
6446 for (p = wrapper; *p; p++)
6458 for (p = path; *p; p = p_next)
6520 char *p;
6537 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6538 p--;
6539 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6544 *p = '\0';
6781 char *p;
[all …]
Dconfigure2227 static char *e (char **p, int i)
2229 return p[i];
2235 va_start (v,p);
2236 s = g (p, va_arg (v,int));
8829 if test "X$pkg" = "X$p"; then
8862 if test "X$pkg" = "X$p"; then
8950 if test "X$pkg" = "X$p"; then
15540 iptr p = 0;
18328 p
18342 p
[all …]
Daclocal.m4206 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
364 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
/libedit-20250104-3.1/m4/
Dltoptions.m4170 [p=${PACKAGE-default}
180 if test "X$pkg" = "X$p"; then
224 [p=${PACKAGE-default}
234 if test "X$pkg" = "X$p"; then
278 [p=${PACKAGE-default}
288 if test "X$pkg" = "X$p"; then
Dlibtool.m41194 p
7709 case $prev$p in
7714 if test x-L = x"$p" ||
7715 test x-R = x"$p" ||
7717 prev=$p
7723 case $p in
7724 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7725 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7726 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7729 case $p in
[all …]

12