Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 35) sorted by relevance

12

/libedit-20250104-3.1/src/
DMakefile.am5 ASRC= $(srcdir)/vi.c $(srcdir)/emacs.c $(srcdir)/common.c
7 vi.h: Makefile $(srcdir)/vi.c
10 emacs.h: Makefile $(srcdir)/emacs.c
28 libedit_la_SOURCES = chared.c common.c el.c eln.c emacs.c hist.c keymacro.c map.c chartype.c parse.…
29 prompt.c read.c refresh.c search.c sig.c terminal.c tty.c vi.c \
30 reallocarr.c wcsdup.c \
31 tokenizer.c tokenizern.c \
32 history.c historyn.c \
33 filecomplete.c readline.c chared.h literal.c el.h hist.h \
48 libedit_la_SOURCES += vis.c
[all …]
Dvis.c102 #define iscgraph(c) isgraph_l(c, LC_C_LOCALE) argument
105 #define iscgraph(c) isgraph(c) argument
125 #define iswoctal(c) (((u_char)(c)) >= L'0' && ((u_char)(c)) <= L'7') argument
126 #define iswwhite(c) (c == L' ' || c == L'\t' || c == L'\n') argument
127 #define iswsafe(c) (c == L'\b' || c == BELL || c == L'\r') argument
128 #define xtoa(c) L"0123456789abcdef"[c] argument
129 #define XTOA(c) L"0123456789ABCDEF"[c] argument
170 || c == L'$' || c == L'-' || c == L'_' || c == L'.' || c == L'+' in do_hvis()
172 || c == L'!' || c == L'*' || c == L'\'' || c == L'(' || c == L')' in do_hvis()
195 (!iswspace(c) && (c < 33 || (c > 60 && c < 62) || c > 126)) || in do_mvis()
[all …]
Dunvis.c77 #define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7') argument
78 #define xtod(c) (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10)) argument
79 #define XTOD(c) (isdigit(c) ? (c - '0') : ((c - 'A') + 10)) argument
245 *cp = c; in unvis()
249 switch(c) { in unvis()
251 *cp = c; in unvis()
319 *cp = c; in unvis()
327 if (c == '-') in unvis()
337 *cp |= c; in unvis()
341 if (c == '?') in unvis()
[all …]
Dchartype.c188 ct_enc_width(wchar_t c) in ct_enc_width() argument
206 l = wctomb(dst, c); in ct_encode_char()
261 int t = ct_chr_class(c); in ct_visual_width()
270 return wcwidth(c); in ct_visual_width()
293 if (c == '\177') in ct_visual_char()
301 *dst = c; in ct_visual_char()
330 ct_chr_class(wchar_t c) in ct_chr_class() argument
332 if (c == '\t') in ct_chr_class()
334 else if (c == '\n') in ct_chr_class()
336 else if (c < 0x100 && iswcntrl(c)) in ct_chr_class()
[all …]
Dparse.c145 wint_t c; in parse__escape() local
156 c = '\007'; /* Bell */ in parse__escape()
159 c = '\010'; /* Backspace */ in parse__escape()
165 c = '\012'; /* New Line */ in parse__escape()
177 c = '\033'; /* Escape */ in parse__escape()
187 c = 0; in parse__escape()
193 c = (c << 4) | ((int)(h - hex)); in parse__escape()
218 c = (c << 3) | (ch - '0'); in parse__escape()
226 c = *p; in parse__escape()
233 c = *p; in parse__escape()
[all …]
DMakefile.in142 am__libedit_la_SOURCES_DIST = chared.c common.c el.c eln.c emacs.c \
143 hist.c keymacro.c map.c chartype.c parse.c prompt.c read.c \
144 refresh.c search.c sig.c terminal.c tty.c vi.c reallocarr.c \
145 wcsdup.c tokenizer.c tokenizern.c history.c historyn.c \
146 filecomplete.c readline.c chared.h literal.c el.h hist.h \
150 strlcat.c getline.c vis.c unvis.c
377 ASRC = $(srcdir)/vi.c $(srcdir)/emacs.c $(srcdir)/common.c
380 libedit_la_SOURCES = chared.c common.c el.c eln.c emacs.c hist.c \
381 keymacro.c map.c chartype.c parse.c prompt.c read.c refresh.c \
382 search.c sig.c terminal.c tty.c vi.c reallocarr.c wcsdup.c \
[all …]
Dvi.c67 cv_action(EditLine *el, wint_t c) in cv_action() argument
75 if (!(c & YANK)) in cv_action()
81 if (!(c & YANK)) { in cv_action()
85 if (c & INSERT) in cv_action()
91 el->el_chared.c_vcmd.action = c; in cv_action()
99 cv_paste(EditLine *el, wint_t c) in cv_paste() argument
264 c = *el->el_line.cursor; in vi_change_case()
265 if (iswupper(c)) in vi_change_case()
267 else if (iswlower(c)) in vi_change_case()
574 vi_zero(EditLine *el, wint_t c) in vi_zero() argument
[all …]
Dcommon.c76 ed_insert(EditLine *el, wint_t c) in ed_insert() argument
80 if (c == '\0') in ed_insert()
95 *el->el_line.cursor++ = c; in ed_insert()
102 *el->el_line.cursor++ = c; in ed_insert()
165 terminal_writec(el, c); in ed_delete_next_char()
273 c = el->el_line.cursor[-2]; in ed_transpose_chars()
275 el->el_line.cursor[-1] = c; in ed_transpose_chars()
390 if (!iswdigit(c)) in ed_digit()
406 return ed_insert(el, c); in ed_digit()
418 if (!iswdigit(c)) in ed_argument_digit()
[all …]
Demacs.c59 em_delete_or_list(EditLine *el, wint_t c) in em_delete_or_list() argument
66 terminal_writec(el, c); /* then do an EOF */ in em_delete_or_list()
124 em_yank(EditLine *el, wint_t c __attribute__((__unused__))) in em_yank() argument
160 em_kill_line(EditLine *el, wint_t c __attribute__((__unused__))) in em_kill_line() argument
244 em_gosmacs_transpose(EditLine *el, wint_t c) in em_gosmacs_transpose() argument
249 c = el->el_line.cursor[-2]; in em_gosmacs_transpose()
251 el->el_line.cursor[-1] = c; in em_gosmacs_transpose()
264 em_next_word(EditLine *el, wint_t c __attribute__((__unused__))) in em_next_word() argument
289 em_upper_case(EditLine *el, wint_t c __attribute__((__unused__))) in em_upper_case() argument
369 em_set_mark(EditLine *el, wint_t c __attribute__((__unused__))) in em_set_mark() argument
[all …]
Drefresh.c70 c; \
146 re_putc(el, c, 1); in re_addc()
166 wint_t c; in re_putliteral() local
171 if (c == 0 || w < 0) in re_putliteral()
196 int i, w = wcwidth(c); in re_putc()
199 ELRE_DEBUG(1, (__F, "printing %5x '%lc'\r\n", c, c)); in re_putc()
614 if (c == *n) { in re_update_line()
638 if (c == *o) { in re_update_line()
1100 w = wcwidth(c); in re_fastputc()
1155 wchar_t c; in re_fastaddc() local
[all …]
Dfilecomplete.c131 needs_escaping(wchar_t c) in needs_escaping() argument
133 switch (c) { in needs_escaping()
164 needs_dquote_escaping(char c) in needs_dquote_escaping() argument
166 switch (c) { in needs_dquote_escaping()
204 char c; in escape_filename() local
234 c = *s; in escape_filename()
260 c = *s; in escape_filename()
261 if (!needs_escaping(c)) { in escape_filename()
263 escaped_str[offset++] = c; in escape_filename()
278 escaped_str[offset++] = c; in escape_filename()
[all …]
Dprompt.c152 prompt_set(EditLine *el, el_pfunc_t prf, wchar_t c, int op, int wide) in prompt_set() argument
170 p->p_ignore = c; in prompt_set()
184 prompt_get(EditLine *el, el_pfunc_t *prf, wchar_t *c, int op) in prompt_get() argument
198 if (c) in prompt_get()
199 *c = p->p_ignore; in prompt_get()
Dgetline.c60 int c = fgetc(fp); in getdelim() local
61 if (c == -1) { in getdelim()
71 *ptr++ = c; in getdelim()
72 if (c == delimiter) { in getdelim()
Dterminal.c404 coord_t *c = &el->el_terminal.t_size; in terminal_rebuffer_display() local
408 c->h = Val(T_co); in terminal_rebuffer_display()
409 c->v = Val(T_li); in terminal_rebuffer_display()
420 coord_t *c = &el->el_terminal.t_size; in terminal_alloc_buffer() local
426 for (i = 0; i < c->v; i++) { in terminal_alloc_buffer()
435 b[c->v] = NULL; in terminal_alloc_buffer()
654 wchar_t c; in terminal_overwrite() local
1199 terminal_putc(int c) in terminal_putc() argument
1203 return fputc(c, terminal_outfile); in terminal_putc()
1227 if (c == MB_FILL_CHAR) in terminal__putc()
[all …]
Dreadline.c221 *c = (wchar_t)i; in _getc_function()
797 replace(char **tmp, int c) in replace() argument
2059 rl_insert(int count, int c) in rl_insert() argument
2067 arr[0] = (char)c; in rl_insert()
2105 if (map[c] == NULL) in rl_bind_wrapper()
2110 (*map[c])(1, c); in rl_bind_wrapper()
2123 if ((size_t)c >= sizeof(map) / sizeof(map[0]) || c < 0) in rl_add_defun()
2243 rl_stuff_char(int c) in rl_stuff_char() argument
2247 buf[0] = (char)c; in rl_stuff_char()
2581 if (c == -1) in rl_echo_signal_char()
[all …]
Dtty.c983 tty_update_char(EditLine *el, int mode, int c) { in tty_update_char() argument
985 && (el->el_tty.t_c[TS_IO][c] != el->el_tty.t_c[EX_IO][c])) in tty_update_char()
986 el->el_tty.t_c[mode][c] = el->el_tty.t_c[TS_IO][c]; in tty_update_char()
987 if (el->el_tty.t_t[mode][MD_CHAR].t_clrmask & C_SH(c)) in tty_update_char()
988 el->el_tty.t_c[mode][c] = el->el_tty.t_vdisable; in tty_update_char()
1268 int c = ffs((int)m->m_value); in tty_stty() local
1271 assert(c != 0); in tty_stty()
1272 c--; in tty_stty()
1273 c = tty__getcharindex(c); in tty_stty()
1274 assert(c != -1); in tty_stty()
[all …]
Dhistory.c508 hentry_t *c; in history_def_insert() local
510 c = h_malloc(sizeof(*c)); in history_def_insert()
511 if (c == NULL) in history_def_insert()
514 h_free(c); in history_def_insert()
517 c->data = NULL; in history_def_insert()
519 c->next = h->list.next; in history_def_insert()
520 c->prev = &h->list; in history_def_insert()
521 h->list.next->prev = c; in history_def_insert()
522 h->list.next = c; in history_def_insert()
524 h->cursor = c; in history_def_insert()
[all …]
Dsearch.c573 cv_repeat_srch(EditLine *el, wint_t c) in cv_repeat_srch() argument
579 c, el->el_search.patlen, ct_encode_string(el->el_search.patbuf, &conv)); in cv_repeat_srch()
582 el->el_state.lastcmd = (el_action_t) c; /* Hack to stop c_setpat */ in cv_repeat_srch()
585 switch (c) { in cv_repeat_srch()
608 wchar_t c; in cv_csearch() local
609 if (el_wgetc(el, &c) != 1) in cv_csearch()
611 ch = c; in cv_csearch()
Deln.c139 int c = va_arg(ap, int); in el_set() local
141 ret = prompt_set(el, p, c, op, 0); in el_set()
296 char *c = va_arg(ap, char *); in el_get() local
299 *c = (char)wc; in el_get()
Dtokenizer.c77 #define Strchr(s, c) strchr(s, c) argument
84 #define Strchr(s, c) wcschr(s, c) argument
Del.c241 int c = va_arg(ap, int); in el_wset() local
243 rv = prompt_set(el, p, (wchar_t)c, op, 1); in el_wset()
446 wchar_t *c = va_arg(ap, wchar_t *); in el_wget() local
448 rv = prompt_get(el, p, c, op); in el_wget()
/libedit-20250104-3.1/
DChangeLog22 * src/chartype.c: Add missing stdint.h
71 * src/getline.c,src/sys.h: Provide getline.c implementation if not available
77 * examples/test_filecompletion.c, examples/wtc1.c: err.h not supported by
204 * examples/fileman.c, examples/tc1.c: fix pedantic compiler warnings
301 * src/el.c: Ignore comment lines in .editrc
391 * src/fgetln.c: use src/tools/compat/fgetln.c instead of
392 othersrc/libexec/tnftpd/libnetbsd/fgetln.c
422 * patches/cvs_export.sh: strlcat.c and strlcpy.c was moved to
477 * histedit.h, histedit.c, readline.c, editline/readline.h: From
484 * history.c, key.c: From upstream source; Fix memory leaks found by
[all …]
/libedit-20250104-3.1/examples/
DMakefile.am7 tc1_SOURCES = tc1.c
8 fileman_SOURCES = fileman.c
11 wtc1_SOURCES = wtc1.c
13 EXTRA_DIST = fuzz1.c
DMakefile.in312 tc1_SOURCES = tc1.c
313 fileman_SOURCES = fileman.c
314 wtc1_SOURCES = wtc1.c
315 EXTRA_DIST = fuzz1.c
319 .SUFFIXES: .c .lo .o .obj
370 -rm -f *.tab.c
382 .c.o:
389 .c.obj:
396 .c.lo:
/libedit-20250104-3.1/src/editline/
Dreadline.h85 #define CTRL(c) ((c) & 037) argument
89 #define UNCTRL(c) (((c) - 'a' + 'A')|control_character_bit) argument

12