Searched refs:el (Results 1 - 25 of 127) sorted by relevance

123456

/freebsd-current/contrib/libedit/
H A Dcommon.c50 #include "el.h"
62 ed_end_of_file(EditLine *el, wint_t c __attribute__((__unused__))) argument
65 re_goto_bottom(el);
66 *el->el_line.lastchar = '\0';
76 ed_insert(EditLine *el, wint_t c) argument
78 int count = el->el_state.argument;
83 if (el->el_line.lastchar + el->el_state.argument >=
84 el->el_line.limit) {
86 if (!ch_enlargebufs(el, (size_
119 ed_delete_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
147 ed_delete_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
194 ed_kill_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
215 ed_move_to_end(EditLine *el, wint_t c __attribute__((__unused__))) argument
238 ed_move_to_beg(EditLine *el, wint_t c __attribute__((__unused__))) argument
261 ed_transpose_chars(EditLine *el, wint_t c) argument
287 ed_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
316 ed_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
342 ed_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
367 ed_quoted_insert(EditLine *el, wint_t c __attribute__((__unused__))) argument
386 ed_digit(EditLine *el, wint_t c) argument
414 ed_argument_digit(EditLine *el, wint_t c) argument
467 ed_newline(EditLine *el, wint_t c __attribute__((__unused__))) argument
483 ed_delete_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
503 ed_clear_screen(EditLine *el, wint_t c __attribute__((__unused__))) argument
532 ed_start_over(EditLine *el, wint_t c __attribute__((__unused__))) argument
560 ed_prev_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
597 ed_next_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
624 ed_search_prev_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
692 ed_search_next_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
746 ed_prev_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
789 ed_next_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
823 ed_command(EditLine *el, wint_t c __attribute__((__unused__))) argument
[all...]
H A Demacs.c49 #include "el.h"
59 em_delete_or_list(EditLine *el, wint_t c) argument
62 if (el->el_line.cursor == el->el_line.lastchar) {
64 if (el->el_line.cursor == el->el_line.buffer) {
66 terminal_writec(el, c); /* then do an EOF */
73 terminal_beep(el);
77 if (el->el_state.doingarg)
78 c_delafter(el, e
95 em_delete_next_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
124 em_yank(EditLine *el, wint_t c __attribute__((__unused__))) argument
160 em_kill_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
182 em_kill_region(EditLine *el, wint_t c __attribute__((__unused__))) argument
215 em_copy_region(EditLine *el, wint_t c __attribute__((__unused__))) argument
244 em_gosmacs_transpose(EditLine *el, wint_t c) argument
264 em_next_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
289 em_upper_case(EditLine *el, wint_t c __attribute__((__unused__))) argument
313 em_capitol_case(EditLine *el, wint_t c __attribute__((__unused__))) argument
345 em_lower_case(EditLine *el, wint_t c __attribute__((__unused__))) argument
369 em_set_mark(EditLine *el, wint_t c __attribute__((__unused__))) argument
383 em_exchange_mark(EditLine *el, wint_t c __attribute__((__unused__))) argument
400 em_universal_argument(EditLine *el, wint_t c __attribute__((__unused__))) argument
417 em_meta_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
430 em_toggle_overwrite(EditLine *el, wint_t c __attribute__((__unused__))) argument
444 em_copy_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
471 em_inc_search_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
484 em_inc_search_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
498 em_delete_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
[all...]
H A Dvi.c54 #include "el.h"
67 cv_action(EditLine *el, wint_t c) argument
70 if (el->el_chared.c_vcmd.action != NOP) {
72 if (c != (wint_t)el->el_chared.c_vcmd.action)
76 cv_undo(el);
77 cv_yank(el, el->el_line.buffer,
78 (int)(el->el_line.lastchar - el->el_line.buffer));
79 el
99 cv_paste(EditLine *el, wint_t c) argument
132 vi_paste_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
145 vi_paste_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
158 vi_prev_big_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
183 vi_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
208 vi_next_big_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
232 vi_next_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
255 vi_change_case(EditLine *el, wint_t c) argument
287 vi_change_meta(EditLine *el, wint_t c __attribute__((__unused__))) argument
304 vi_insert_at_bol(EditLine *el, wint_t c __attribute__((__unused__))) argument
320 vi_replace_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
339 vi_replace_mode(EditLine *el, wint_t c __attribute__((__unused__))) argument
355 vi_substitute_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
370 vi_substitute_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
388 vi_change_to_eol(EditLine *el, wint_t c __attribute__((__unused__))) argument
406 vi_insert(EditLine *el, wint_t c __attribute__((__unused__))) argument
421 vi_add(EditLine *el, wint_t c __attribute__((__unused__))) argument
446 vi_add_at_eol(EditLine *el, wint_t c __attribute__((__unused__))) argument
462 vi_delete_meta(EditLine *el, wint_t c __attribute__((__unused__))) argument
475 vi_end_big_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
499 vi_end_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
523 vi_undo(EditLine *el, wint_t c __attribute__((__unused__))) argument
550 vi_command_mode(EditLine *el, wint_t c __attribute__((__unused__))) argument
574 vi_zero(EditLine *el, wint_t c) argument
595 vi_delete_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
613 vi_list_or_eof(EditLine *el, wint_t c) argument
650 vi_kill_line_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
671 vi_search_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
684 vi_search_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
697 vi_repeat_search_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
713 vi_repeat_search_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
731 vi_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
743 vi_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
755 vi_to_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
767 vi_to_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
779 vi_repeat_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
793 vi_repeat_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
811 vi_match(EditLine *el, wint_t c __attribute__((__unused__))) argument
858 vi_undo_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
872 vi_to_column(EditLine *el, wint_t c __attribute__((__unused__))) argument
886 vi_yank_end(EditLine *el, wint_t c __attribute__((__unused__))) argument
900 vi_yank(EditLine *el, wint_t c __attribute__((__unused__))) argument
912 vi_comment_out(EditLine *el, wint_t c __attribute__((__unused__))) argument
930 vi_alias(EditLine *el, wint_t c __attribute__((__unused__))) argument
956 vi_to_history_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
1001 vi_histedit(EditLine *el, wint_t c __attribute__((__unused__))) argument
1088 vi_history_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
1138 vi_redo(EditLine *el, wint_t c __attribute__((__unused__))) argument
[all...]
H A Dhist.h38 * el.hist.c: History functions
55 #define HIST_FUN_INTERNAL(el, fn, arg) \
56 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
57 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
58 #define HIST_FUN(el, fn, arg) \
59 (((el)->el_flags & NARROW_HISTORY) ? hist_convert(el, fn, arg) : \
60 HIST_FUN_INTERNAL(el, f
[all...]
H A Dsearch.c55 #include "el.h"
62 #define EL_CURSOR(el) \
63 ((el)->el_line.cursor + (((el)->el_map.type == MAP_VI) && \
64 ((el)->el_map.current == (el)->el_map.alt)))
70 search_init(EditLine *el) argument
73 el->el_search.patbuf = el_calloc(EL_BUFSIZ,
74 sizeof(*el->el_search.patbuf));
75 if (el
91 search_end(EditLine *el) argument
162 c_hmatch(EditLine *el, const wchar_t *str) argument
177 c_setpat(EditLine *el) argument
206 ce_inc_search(EditLine *el, int dir) argument
453 cv_search(EditLine *el, int dir) argument
527 ce_search_line(EditLine *el, int dir) argument
569 cv_repeat_srch(EditLine *el, wint_t c) argument
596 cv_csearch(EditLine *el, int direction, wint_t ch, int count, int tflag) argument
[all...]
H A Del.c1 /* $NetBSD: el.c,v 1.101 2022/10/30 19:11:31 christos Exp $ */
38 static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
40 __RCSID("$NetBSD: el.c,v 1.101 2022/10/30 19:11:31 christos Exp $");
45 * el.c: EditLine interface functions
56 #include "el.h"
74 EditLine *el = el_calloc(1, sizeof(*el)); local
76 if (el == NULL)
79 el->el_infile = fin;
80 el
131 el_end(EditLine *el) argument
167 el_reset(EditLine *el) argument
179 el_wset(EditLine *el, int op, ...) argument
400 el_wget(EditLine *el, int op, ...) argument
514 el_wline(EditLine *el) argument
525 el_source(EditLine *el, const char *fname) argument
604 el_resize(EditLine *el) argument
625 el_beep(EditLine *el) argument
637 el_editmode(EditLine *el, int argc, const wchar_t **argv) argument
[all...]
H A Dhist.c51 #include "el.h"
57 hist_init(EditLine *el) argument
60 el->el_history.fun = NULL;
61 el->el_history.ref = NULL;
62 el->el_history.buf = el_calloc(EL_BUFSIZ, sizeof(*el->el_history.buf));
63 if (el->el_history.buf == NULL)
65 el->el_history.sz = EL_BUFSIZ;
66 el->el_history.last = el
75 hist_end(EditLine *el) argument
87 hist_set(EditLine *el, hist_fun_t fun, void *ptr) argument
101 hist_get(EditLine *el) argument
167 hist_command(EditLine *el, int argc, const wchar_t **argv) argument
226 hist_enlargebuf(EditLine *el, size_t oldsz, size_t newsz) argument
245 hist_convert(EditLine *el, int fn, void *arg) argument
[all...]
H A Dread.c55 #include "el.h"
84 read_init(EditLine *el) argument
88 if ((el->el_read = el_malloc(sizeof(*el->el_read))) == NULL)
91 ma = &el->el_read->macros;
98 el->el_read->read_char = read_char;
101 read_end(el);
109 read_end(EditLine *el) argument
112 read_clearmacros(&el->el_read->macros);
113 el_free(el
209 el_wpush(EditLine *el, const wchar_t *str) argument
230 read_getcmd(EditLine *el, el_action_t *cmdnum, wchar_t *ch) argument
280 read_char(EditLine *el, wchar_t *cp) argument
381 el_wgetc(EditLine *el, wchar_t *cp) argument
423 read_prepare(EditLine *el) argument
444 read_finish(EditLine *el) argument
453 noedit_wgets(EditLine *el, int *nread) argument
477 el_wgets(EditLine *el, int *nread) argument
[all...]
H A Dchared.c51 #include "el.h"
62 cv_undo(EditLine *el) argument
64 c_undo_t *vu = &el->el_chared.c_undo;
65 c_redo_t *r = &el->el_chared.c_redo;
69 size = (size_t)(el->el_line.lastchar - el->el_line.buffer);
71 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer);
72 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf));
75 r->count = el
86 cv_yank(EditLine *el, const wchar_t *ptr, int size) argument
99 c_insert(EditLine *el, int num) argument
121 c_delafter(EditLine *el, int num) argument
147 c_delafter1(EditLine *el) argument
162 c_delbefore(EditLine *el, int num) argument
190 c_delbefore1(EditLine *el) argument
281 cv_next_word(EditLine *el, wchar_t *p, wchar_t *high, int n, int (*wtest)(wint_t)) argument
337 cv_delfini(EditLine *el) argument
397 ch_init(EditLine *el) argument
454 ch_reset(EditLine *el) argument
483 ch_enlargebufs(EditLine *el, size_t addlen) argument
572 ch_end(EditLine *el) argument
594 el_winsertstr(EditLine *el, const wchar_t *s) argument
616 el_deletestr(EditLine *el, int n) argument
634 el_deletestr1(EditLine *el, int start, int end) argument
668 el_wreplacestr(EditLine *el, const wchar_t *s) argument
697 el_cursor(EditLine *el, int n) argument
716 c_gets(EditLine *el, wchar_t *buf, const wchar_t *prompt) argument
781 c_hpos(EditLine *el) argument
800 ch_resizefun(EditLine *el, el_zfunc_t f, void *a) argument
808 ch_aliasfun(EditLine *el, el_afunc_t f, void *a) argument
[all...]
H A Drefresh.c52 #include "el.h"
66 #define __F el->el_errfile
79 re_printstr(EditLine *el, const char *str, wchar_t *f, wchar_t *t) argument
96 re_nextline(EditLine *el) argument
98 el->el_refresh.r_cursor.h = 0; /* reset it. */
106 if (el->el_refresh.r_cursor.v + 1 >= el->el_terminal.t_size.v) {
107 int i, lins = el->el_terminal.t_size.v;
108 wint_t *firstline = el->el_vdisplay[0];
111 el
128 re_addc(EditLine *el, wint_t c) argument
163 re_putliteral(EditLine *el, const wchar_t *begin, const wchar_t *end) argument
193 re_putc(EditLine *el, wint_t c, int shift) argument
231 re_refresh(EditLine *el) argument
382 re_goto_bottom(EditLine *el) argument
497 re_clear_eol(EditLine *el, int fx, int sx, int diff) argument
541 re_update_line(EditLine *el, wchar_t *old, wchar_t *new, int i) argument
1032 re_refresh_cursor(EditLine *el) argument
1095 re_fastputc(EditLine *el, wint_t c) argument
1153 re_fastaddc(EditLine *el) argument
1195 re_clear_display(EditLine *el) argument
1211 re_clear_lines(EditLine *el) argument
[all...]
H A Dprompt.c48 #include "el.h"
58 prompt_default(EditLine *el __attribute__((__unused__)))
71 prompt_default_r(EditLine *el __attribute__((__unused__)))
83 prompt_print(EditLine *el, int op) argument
89 elp = &el->el_prompt;
91 elp = &el->el_rprompt;
94 p = (*elp->p_func)(el);
96 p = ct_decode_string((char *)(void *)(*elp->p_func)(el),
97 &el->el_scratch);
108 re_putliteral(el, litstar
123 prompt_init(EditLine *el) argument
152 prompt_set(EditLine *el, el_pfunc_t prf, wchar_t c, int op, int wide) argument
184 prompt_get(EditLine *el, el_pfunc_t *prf, wchar_t *c, int op) argument
[all...]
H A Dterminal.c84 #include "el.h"
96 #define GoodStr(a) (el->el_terminal.t_str[a] != NULL && \
97 el->el_terminal.t_str[a][0] != '\0')
98 #define Str(a) el->el_terminal.t_str[a]
99 #define Val(a) el->el_terminal.t_val[a]
233 terminal_setflags(EditLine *el) argument
236 if (el->el_tty.t_tabs)
260 (void) fprintf(el->el_errfile,
262 (void) fprintf(el->el_errfile,
266 (void) fprintf(el
278 terminal_init(EditLine *el) argument
314 terminal_end(EditLine *el) argument
336 terminal_alloc(EditLine *el, const struct termcapstr *t, const char *cap) argument
402 terminal_rebuffer_display(EditLine *el) argument
417 terminal_alloc_buffer(EditLine *el) argument
460 terminal_alloc_display(EditLine *el) argument
479 terminal_free_display(EditLine *el) argument
491 terminal_move_to_line(EditLine *el, int where) argument
531 terminal_move_to_char(EditLine *el, int where) argument
627 terminal_overwrite(EditLine *el, const wchar_t *cp, size_t n) argument
676 terminal_deletechars(EditLine *el, int num) argument
718 terminal_insertwrite(EditLine *el, wchar_t *cp, int num) argument
777 terminal_clear_EOL(EditLine *el, int num) argument
795 terminal_clear_screen(EditLine *el) argument
816 terminal_beep(EditLine *el) argument
827 terminal_get(EditLine *el, const char **term) argument
837 terminal_set(EditLine *el, const char *term) argument
926 terminal_get_size(EditLine *el, int *lins, int *cols) argument
962 terminal_change_size(EditLine *el, int lins, int cols) argument
984 terminal_init_arrow(EditLine *el) argument
1029 terminal_reset_arrow(EditLine *el) argument
1079 terminal_set_arrow(EditLine *el, const wchar_t *name, keymacro_value_t *fun, int type) argument
1099 terminal_clear_arrow(EditLine *el, const wchar_t *name) argument
1117 terminal_print_arrow(EditLine *el, const wchar_t *name) argument
1134 terminal_bind_arrow(EditLine *el) argument
1207 terminal_tputs(EditLine *el, const char *cap, int affcnt) argument
1223 terminal__putc(EditLine *el, wint_t c) argument
1242 terminal__flush(EditLine *el) argument
1252 terminal_writec(EditLine *el, wint_t c) argument
1269 terminal_telltc(EditLine *el, int argc __attribute__((__unused__)), const wchar_t **argv __attribute__((__unused__))) argument
1311 terminal_settc(EditLine *el, int argc __attribute__((__unused__)), const wchar_t **argv) argument
1398 terminal_gettc(EditLine *el, int argc __attribute__((__unused__)), char **argv) argument
1452 terminal_echotc(EditLine *el, int argc __attribute__((__unused__)), const wchar_t **argv) argument
[all...]
H A Dkeymacro.c51 * el->el_keymacro.map)
58 * are in el->el_keymacro.map, adding the key "abc" will cause
69 #include "el.h"
73 * The Nodes of the el->el_keymacro.map. The el->el_keymacro.map is a
105 keymacro_init(EditLine *el) argument
108 el->el_keymacro.buf = el_calloc(KEY_BUFSIZ,
109 sizeof(*el->el_keymacro.buf));
110 if (el->el_keymacro.buf == NULL)
112 el
121 keymacro_end(EditLine *el) argument
134 keymacro_map_cmd(EditLine *el, int cmd) argument
146 keymacro_map_str(EditLine *el, wchar_t *str) argument
160 keymacro_reset(EditLine *el) argument
179 keymacro_get(EditLine *el, wchar_t *ch, keymacro_value_t *val) argument
193 keymacro_add(EditLine *el, const wchar_t *key, keymacro_value_t *val, int ntype) argument
222 keymacro_clear(EditLine *el, el_action_t *map, const wchar_t *in) argument
240 keymacro_delete(EditLine *el, const wchar_t *key) argument
261 keymacro_print(EditLine *el, const wchar_t *key) argument
282 node_trav(EditLine *el, keymacro_node_t *ptr, wchar_t *ch, keymacro_value_t *val) argument
317 node__try(EditLine *el, keymacro_node_t *ptr, const wchar_t *str, keymacro_value_t *val, int ntype) argument
378 node__delete(EditLine *el, keymacro_node_t **inptr, const wchar_t *str) argument
426 node__put(EditLine *el, keymacro_node_t *ptr) argument
487 node_lookup(EditLine *el, const wchar_t *str, keymacro_node_t *ptr, size_t cnt) argument
540 node_enum(EditLine *el, keymacro_node_t *ptr, size_t cnt) argument
583 keymacro_kprint(EditLine *el, const wchar_t *key, keymacro_value_t *val, int ntype) argument
[all...]
H A Deln.c38 #include "el.h"
41 el_getc(EditLine *el, char *cp) argument
46 num_read = el_wgetc(el, &wc);
62 el_push(EditLine *el, const char *str) argument
66 el_wpush(el, ct_decode_string(str, &el->el_lgcyconv));
71 el_gets(EditLine *el, int *nread) argument
75 tmp = el_wgets(el, nread);
84 return ct_encode_string(tmp, &el->el_lgcyconv);
89 el_parse(EditLine *el, in argument
105 el_set(EditLine *el, int op, ...) argument
275 el_get(EditLine *el, int op, ...) argument
361 el_line(EditLine *el) argument
385 el_insertstr(EditLine *el, const char *str) argument
391 el_replacestr(EditLine *el, const char *str) argument
[all...]
H A Dmap.c51 #include "el.h"
901 map_init(EditLine *el) argument
909 EL_ABORT((el->el_errfile, "Emacs map incorrect\n"));
911 EL_ABORT((el->el_errfile, "Vi command map incorrect\n"));
913 EL_ABORT((el->el_errfile, "Vi insert map incorrect\n"));
916 el->el_map.alt = el_calloc(N_KEYS, sizeof(*el->el_map.alt));
917 if (el->el_map.alt == NULL)
919 el->el_map.key = el_calloc(N_KEYS, sizeof(*el
953 map_end(EditLine *el) argument
974 map_init_nls(EditLine *el) argument
990 map_init_meta(EditLine *el) argument
1031 map_init_vi(EditLine *el) argument
1061 map_init_emacs(EditLine *el) argument
1095 map_set_editor(EditLine *el, wchar_t *editor) argument
1114 map_get_editor(EditLine *el, const wchar_t **editor) argument
1135 map_print_key(EditLine *el, el_action_t *map, const wchar_t *in) argument
1158 map_print_some_keys(EditLine *el, el_action_t *map, wint_t first, wint_t last) argument
1222 map_print_all_keys(EditLine *el) argument
1257 map_bind(EditLine *el, int argc, const wchar_t **argv) argument
1403 map_addfunc(EditLine *el, const wchar_t *name, const wchar_t *help, el_func_t func) argument
[all...]
H A Dtty.c54 #include "el.h"
474 tty_getty(EditLine *el, struct termios *t) argument
477 while ((rv = tcgetattr(el->el_infd, t)) == -1 && errno == EINTR)
486 tty_setty(EditLine *el, int action, const struct termios *t) argument
489 while ((rv = tcsetattr(el->el_infd, action, t)) == -1 && errno == EINTR)
498 tty_setup(EditLine *el) argument
500 int rst = (el->el_flags & NO_RESET) == 0;
502 if (el->el_flags & EDIT_DISABLED)
505 if (el->el_tty.t_initialized)
508 if (!isatty(el
572 tty_init(EditLine *el) argument
589 tty_end(EditLine *el, int how) argument
896 tty_bind_char(EditLine *el, int force) argument
959 tty_update_flag(EditLine *el, tcflag_t f, int mode, int kind) argument
968 tty_update_flags(EditLine *el, int kind) argument
983 tty_update_char(EditLine *el, int mode, int c) argument
996 tty_rawmode(EditLine *el) argument
1081 tty_cookedmode(EditLine *el) argument
1106 tty_quotemode(EditLine *el) argument
1131 tty_noquotemode(EditLine *el) argument
1153 tty_stty(EditLine *el, int argc __attribute__((__unused__)), const wchar_t **argv) argument
1314 tty_printchar(EditLine *el, unsigned char *s) argument
1335 tty_setup_flags(EditLine *el, struct termios *tios, int mode) argument
1345 tty_get_signal_character(EditLine *el, int sig) argument
[all...]
H A Dsig.c52 #include "el.h"
119 sig_init(EditLine *el) argument
124 el->el_signal = el_malloc(sizeof(*el->el_signal));
125 if (el->el_signal == NULL)
128 nset = &el->el_signal->sig_set;
136 el->el_signal->sig_action[i].sa_handler = SIG_ERR;
137 el->el_signal->sig_action[i].sa_flags = 0;
138 sigemptyset(&el->el_signal->sig_action[i].sa_mask);
151 sig_end(EditLine *el) argument
163 sig_set(EditLine *el) argument
190 sig_clr(EditLine *el) argument
[all...]
H A Dfilecomplete.c49 #include "el.h"
195 escape_filename(EditLine * el, const char *filename, int single_match, argument
207 wchar_t *temp = el->el_line.buffer;
213 while (temp != el->el_line.cursor) {
219 (temp == el->el_line.buffer || temp[-1] != '\\'))
543 fn_display_match_list(EditLine * el, char **matches, size_t num, size_t width, argument
547 int screenwidth = el->el_terminal.t_size.h;
577 (void)fprintf(el->el_outfile, "%s%s%s",
580 (void)fprintf(el->el_outfile, "%-*s",
583 (void)fprintf(el
660 fn_complete2(EditLine *el, char *(*complete_func)(const char *, int), char **(*attempted_completion_function)(const char *, int, int), const wchar_t *word_break, const wchar_t *special_prefixes, const char *(*app_func)(const char *), size_t query_items, int *completion_type, int *over, int *point, int *end, unsigned int flags) argument
830 fn_complete(EditLine *el, char *(*complete_func)(const char *, int), char **(*attempted_completion_function)(const char *, int, int), const wchar_t *word_break, const wchar_t *special_prefixes, const char *(*app_func)(const char *), size_t query_items, int *completion_type, int *over, int *point, int *end) argument
848 _el_fn_complete(EditLine *el, int ch __attribute__((__unused__))) argument
860 _el_fn_sh_complete(EditLine *el, int ch) argument
[all...]
H A Dliteral.c44 #include "el.h"
47 literal_init(EditLine *el) argument
49 el_literal_t *l = &el->el_literal;
55 literal_end(EditLine *el) argument
57 literal_clear(el);
61 literal_clear(EditLine *el) argument
63 el_literal_t *l = &el->el_literal;
78 literal_add(EditLine *el, const wchar_t *buf, const wchar_t *end, int *wp) argument
80 el_literal_t *l = &el->el_literal;
128 literal_get(EditLine *el, wint_ argument
[all...]
/freebsd-current/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_nested_structs.c6 EditLine *el; member in struct:__anon5262
18 .command = { .el = 0, .hist = 0, },
19 .string = { .el = 0, .hist = 0, },
20 .filec = { .el = 0, .hist = 0, },
/freebsd-current/bin/sh/
H A Dmyhistedit.h35 extern EditLine *el;
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dalist.c57 alist_el_t *el = arg; local
58 uintptr_t num = (uintptr_t)el->ale_name;
96 alist_el_t *el = arg1; local
99 alist->al_namefree(el->ale_name);
101 alist->al_valfree(el->ale_name);
102 free(el);
115 alist_el_t *el; local
117 el = xmalloc(sizeof (alist_el_t));
118 el->ale_name = name;
119 el
149 alist_el_t *el = arg1; local
201 alist_el_t *el = node; local
[all...]
/freebsd-current/crypto/heimdal/lib/asn1/
H A Dtemplate.c50 #define el(name, type) { \ macro
66 el(integer, int),
67 el(heim_integer, heim_integer),
68 el(integer, int),
69 el(integer64, int64_t),
70 el(unsigned, unsigned),
71 el(unsigned64, uint64_t),
72 el(general_string, heim_general_string),
73 el(octet_string, heim_octet_string),
75 el(ia5_strin
90 #undef el macro
172 void *el = DPO(data, t->offset); local
254 void **el = (void **)data; local
296 void *el = DPO(data, t->offset); local
319 struct template_of *el = DPO(data, t->offset); local
457 const void *el = DPOC(data, t->offset); local
486 void **el = (void **)data; local
516 const void *el = DPOC(data, t->offset); local
531 const struct template_of *el = DPOC(data, t->offset); local
593 struct template_of *el = DPO(data, t->offset); local
666 const void *el; local
711 const void *el = DPOC(data, t->offset); local
735 void **el = (void **)data; local
750 const void *el = DPOC(data, t->offset); local
761 const struct template_of *el = DPOC(data, t->offset); local
836 void *el = DPO(data, t->offset); local
858 void *el = DPO(data, t->offset); local
868 void *el = DPO(data, t->offset); local
886 struct template_of *el = DPO(data, t->offset); local
[all...]
/freebsd-current/contrib/libucl/uthash/
H A Dutlist.h419 #define LL_COUNT(head,el,counter) \
420 LL_COUNT2(head,el,counter,next) \
422 #define LL_COUNT2(head,el,counter,next) \
425 LL_FOREACH2(head,el,next){ ++counter; } \
428 #define LL_FOREACH(head,el) \
429 LL_FOREACH2(head,el,next)
431 #define LL_FOREACH2(head,el,next) \
432 for(el=head;el;el
[all...]
/freebsd-current/contrib/libedit/TEST/
H A Dtc1.c73 prompt(EditLine *el) argument
88 complete(EditLine *el, int ch) argument
93 const LineInfo *lf = el_line(el);
109 if (el_insertstr(el, &dp->d_name[len]) == -1)
124 EditLine *el = NULL; local
148 el = el_init(*argv, stdin, stdout, stderr);
150 el_set(el, EL_EDITOR, "vi"); /* Default editor is vi */
151 el_set(el, EL_SIGNAL, 1); /* Handle signals gracefully */
152 el_set(el, EL_PROMPT_ESC, prompt, '\1');/* Set the prompt function */
155 el_set(el, EL_HIS
[all...]

Completed in 278 milliseconds

123456