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

123456

/freebsd-11-stable/lib/libedit/
H A Demacs.c51 #include "el.h"
60 em_delete_or_list(EditLine *el, wint_t c) argument
63 if (el->el_line.cursor == el->el_line.lastchar) {
65 if (el->el_line.cursor == el->el_line.buffer) {
67 terminal_writec(el, c); /* then do an EOF */
74 terminal_beep(el);
78 if (el->el_state.doingarg)
79 c_delafter(el, e
96 em_delete_next_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
125 em_yank(EditLine *el, wint_t c __attribute__((__unused__))) argument
161 em_kill_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
183 em_kill_region(EditLine *el, wint_t c __attribute__((__unused__))) argument
216 em_copy_region(EditLine *el, wint_t c __attribute__((__unused__))) argument
245 em_gosmacs_transpose(EditLine *el, wint_t c) argument
265 em_next_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
290 em_upper_case(EditLine *el, wint_t c __attribute__((__unused__))) argument
314 em_capitol_case(EditLine *el, wint_t c __attribute__((__unused__))) argument
346 em_lower_case(EditLine *el, wint_t c __attribute__((__unused__))) argument
370 em_set_mark(EditLine *el, wint_t c __attribute__((__unused__))) argument
384 em_exchange_mark(EditLine *el, wint_t c __attribute__((__unused__))) argument
401 em_universal_argument(EditLine *el, wint_t c __attribute__((__unused__))) argument
418 em_meta_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
431 em_toggle_overwrite(EditLine *el, wint_t c __attribute__((__unused__))) argument
445 em_copy_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
472 em_inc_search_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
485 em_inc_search_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
499 em_delete_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
[all...]
H A Dvi.c56 #include "el.h"
68 cv_action(EditLine *el, wint_t c) argument
71 if (el->el_chared.c_vcmd.action != NOP) {
73 if (c != (wint_t)el->el_chared.c_vcmd.action)
77 cv_undo(el);
78 cv_yank(el, el->el_line.buffer,
79 (int)(el->el_line.lastchar - el->el_line.buffer));
80 el
100 cv_paste(EditLine *el, wint_t c) argument
133 vi_paste_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
146 vi_paste_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
159 vi_prev_big_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
184 vi_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
209 vi_next_big_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
233 vi_next_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
256 vi_change_case(EditLine *el, wint_t c) argument
288 vi_change_meta(EditLine *el, wint_t c __attribute__((__unused__))) argument
305 vi_insert_at_bol(EditLine *el, wint_t c __attribute__((__unused__))) argument
321 vi_replace_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
340 vi_replace_mode(EditLine *el, wint_t c __attribute__((__unused__))) argument
356 vi_substitute_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
371 vi_substitute_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
389 vi_change_to_eol(EditLine *el, wint_t c __attribute__((__unused__))) argument
407 vi_insert(EditLine *el, wint_t c __attribute__((__unused__))) argument
422 vi_add(EditLine *el, wint_t c __attribute__((__unused__))) argument
447 vi_add_at_eol(EditLine *el, wint_t c __attribute__((__unused__))) argument
463 vi_delete_meta(EditLine *el, wint_t c __attribute__((__unused__))) argument
476 vi_end_big_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
500 vi_end_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
524 vi_undo(EditLine *el, wint_t c __attribute__((__unused__))) argument
551 vi_command_mode(EditLine *el, wint_t c __attribute__((__unused__))) argument
575 vi_zero(EditLine *el, wint_t c) argument
596 vi_delete_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
614 vi_list_or_eof(EditLine *el, wint_t c) argument
651 vi_kill_line_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
672 vi_search_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
685 vi_search_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
698 vi_repeat_search_next(EditLine *el, wint_t c __attribute__((__unused__))) argument
714 vi_repeat_search_prev(EditLine *el, wint_t c __attribute__((__unused__))) argument
732 vi_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
744 vi_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
756 vi_to_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
768 vi_to_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
780 vi_repeat_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
794 vi_repeat_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
812 vi_match(EditLine *el, wint_t c __attribute__((__unused__))) argument
859 vi_undo_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
873 vi_to_column(EditLine *el, wint_t c __attribute__((__unused__))) argument
887 vi_yank_end(EditLine *el, wint_t c __attribute__((__unused__))) argument
901 vi_yank(EditLine *el, wint_t c __attribute__((__unused__))) argument
913 vi_comment_out(EditLine *el, wint_t c __attribute__((__unused__))) argument
931 vi_alias(EditLine *el, wint_t c __attribute__((__unused__))) argument
957 vi_to_history_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
1002 vi_histedit(EditLine *el, wint_t c __attribute__((__unused__))) argument
1086 vi_history_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
1136 vi_redo(EditLine *el, wint_t c __attribute__((__unused__))) argument
[all...]
H A Dhist.h39 * el.hist.c: History functions
56 #define HIST_FUN_INTERNAL(el, fn, arg) \
57 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
58 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
60 #define HIST_FUN(el, fn, arg) \
61 (((el)->el_flags & NARROW_HISTORY) ? hist_convert(el, fn, arg) : \
62 HIST_FUN_INTERNAL(el, f
[all...]
H A Dsearch.c57 #include "el.h"
63 #define EL_CURSOR(el) \
64 ((el)->el_line.cursor + (((el)->el_map.type == MAP_VI) && \
65 ((el)->el_map.current == (el)->el_map.alt)))
71 search_init(EditLine *el) argument
74 el->el_search.patbuf = el_malloc(EL_BUFSIZ *
75 sizeof(*el->el_search.patbuf));
76 if (el
91 search_end(EditLine *el) argument
164 c_hmatch(EditLine *el, const Char *str) argument
179 c_setpat(EditLine *el) argument
211 ce_inc_search(EditLine *el, int dir) argument
462 cv_search(EditLine *el, int dir) argument
536 ce_search_line(EditLine *el, int dir) argument
578 cv_repeat_srch(EditLine *el, wint_t c) argument
604 cv_csearch(EditLine *el, int direction, wint_t ch, int count, int tflag) argument
[all...]
H A Dhist.c52 #include "el.h"
58 hist_init(EditLine *el) argument
61 el->el_history.fun = NULL;
62 el->el_history.ref = NULL;
63 el->el_history.buf = el_malloc(EL_BUFSIZ * sizeof(*el->el_history.buf));
64 el->el_history.sz = EL_BUFSIZ;
65 if (el->el_history.buf == NULL)
67 el->el_history.last = el
76 hist_end(EditLine *el) argument
88 hist_set(EditLine *el, hist_fun_t fun, void *ptr) argument
102 hist_get(EditLine *el) argument
161 hist_command(EditLine *el, int argc, const Char **argv) argument
199 hist_enlargebuf(EditLine *el, size_t oldsz, size_t newsz) argument
219 hist_convert(EditLine *el, int fn, void *arg) argument
[all...]
H A Del.c1 /* $NetBSD: el.c,v 1.83 2016/02/24 17:13:22 christos Exp $ */
38 static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
40 __RCSID("$NetBSD: el.c,v 1.83 2016/02/24 17:13:22 christos Exp $");
44 __FBSDID("$FreeBSD: stable/11/lib/libedit/el.c 343091 2019-01-16 12:04:29Z bapt $");
47 * el.c: EditLine interface functions
60 #include "el.h"
77 EditLine *el = el_malloc(sizeof(*el)); local
79 if (el == NULL)
82 memset(el,
127 el_end(EditLine *el) argument
161 el_reset(EditLine *el) argument
510 el_source(EditLine *el, const char *fname) argument
582 el_resize(EditLine *el) argument
603 el_beep(EditLine *el) argument
615 el_editmode(EditLine *el, int argc, const Char **argv) argument
[all...]
H A Dread.c58 #include "el.h"
72 read_init(EditLine *el) argument
75 el->el_read.read_char = read_char;
85 el_read_setfn(EditLine *el, el_rfunc_t rc) argument
87 el->el_read.read_char = (rc == EL_BUILTIN_GETCFN) ? read_char : rc;
97 el_read_getfn(EditLine *el) argument
99 return el->el_read.read_char == read_char ?
100 EL_BUILTIN_GETCFN : el->el_read.read_char;
110 read_debug(EditLine *el) argument
113 if (el
193 read_preread(EditLine *el) argument
245 read_getcmd(EditLine *el, el_action_t *cmdnum, Char *ch) argument
309 read_char(EditLine *el, wchar_t *cp) argument
399 el_wgetc(EditLine *el, wchar_t *cp) argument
448 read_prepare(EditLine *el) argument
469 read_finish(EditLine *el) argument
[all...]
H A Dcommon.c52 #include "el.h"
63 ed_end_of_file(EditLine *el, wint_t c __attribute__((__unused__))) argument
66 re_goto_bottom(el);
67 *el->el_line.lastchar = '\0';
77 ed_insert(EditLine *el, wint_t c) argument
79 int count = el->el_state.argument;
84 if (el->el_line.lastchar + el->el_state.argument >=
85 el->el_line.limit) {
87 if (!ch_enlargebufs(el, (size_
120 ed_delete_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
148 ed_delete_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
196 ed_kill_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
217 ed_move_to_end(EditLine *el, wint_t c __attribute__((__unused__))) argument
240 ed_move_to_beg(EditLine *el, wint_t c __attribute__((__unused__))) argument
263 ed_transpose_chars(EditLine *el, wint_t c) argument
289 ed_next_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
318 ed_prev_word(EditLine *el, wint_t c __attribute__((__unused__))) argument
344 ed_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
368 ed_quoted_insert(EditLine *el, wint_t c) argument
386 ed_digit(EditLine *el, wint_t c) argument
414 ed_argument_digit(EditLine *el, wint_t c) argument
555 ed_newline(EditLine *el, wint_t c __attribute__((__unused__))) argument
571 ed_delete_prev_char(EditLine *el, wint_t c __attribute__((__unused__))) argument
591 ed_clear_screen(EditLine *el, wint_t c __attribute__((__unused__))) argument
620 ed_start_over(EditLine *el, wint_t c __attribute__((__unused__))) argument
648 ed_prev_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
685 ed_next_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
712 ed_search_prev_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
780 ed_search_next_history(EditLine *el, wint_t c __attribute__((__unused__))) argument
834 ed_prev_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
877 ed_next_line(EditLine *el, wint_t c __attribute__((__unused__))) argument
911 ed_command(EditLine *el, wint_t c __attribute__((__unused__))) argument
[all...]
H A Drefresh.c53 #include "el.h"
67 #define __F el->el_errfile
80 re_printstr(EditLine *el, const char *str, Char *f, Char *t) argument
97 re_nextline(EditLine *el) argument
99 el->el_refresh.r_cursor.h = 0; /* reset it. */
107 if (el->el_refresh.r_cursor.v + 1 >= el->el_terminal.t_size.v) {
108 int i, lins = el->el_terminal.t_size.v;
109 Char *firstline = el->el_vdisplay[0];
112 el
129 re_addc(EditLine *el, wint_t c) argument
165 re_putc(EditLine *el, wint_t c, int shift) argument
201 re_refresh(EditLine *el) argument
346 re_goto_bottom(EditLine *el) argument
461 re_clear_eol(EditLine *el, int fx, int sx, int diff) argument
505 re_update_line(EditLine *el, Char *old, Char *new, int i) argument
996 re_refresh_cursor(EditLine *el) argument
1059 re_fastputc(EditLine *el, wint_t c) argument
1112 re_fastaddc(EditLine *el) argument
1154 re_clear_display(EditLine *el) argument
1170 re_clear_lines(EditLine *el) argument
[all...]
H A Dchared.c53 #include "el.h"
65 cv_undo(EditLine *el) argument
67 c_undo_t *vu = &el->el_chared.c_undo;
68 c_redo_t *r = &el->el_chared.c_redo;
72 size = (size_t)(el->el_line.lastchar - el->el_line.buffer);
74 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer);
75 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf));
78 r->count = el
89 cv_yank(EditLine *el, const Char *ptr, int size) argument
102 c_insert(EditLine *el, int num) argument
124 c_delafter(EditLine *el, int num) argument
150 c_delafter1(EditLine *el) argument
165 c_delbefore(EditLine *el, int num) argument
193 c_delbefore1(EditLine *el) argument
284 cv_next_word(EditLine *el, Char *p, Char *high, int n, int (*wtest)(wint_t)) argument
339 cv_delfini(EditLine *el) argument
399 ch_init(EditLine *el) argument
466 ch_reset(EditLine *el, int mclear) argument
494 ch__clearmacro(EditLine *el) argument
506 ch_enlargebufs(EditLine *el, size_t addlen) argument
595 ch_end(EditLine *el) argument
641 el_deletestr(EditLine *el, int n) argument
659 el_cursor(EditLine *el, int n) argument
678 c_gets(EditLine *el, Char *buf, const Char *prompt) argument
745 c_hpos(EditLine *el) argument
764 ch_resizefun(EditLine *el, el_zfunc_t f, void *a) argument
772 ch_aliasfun(EditLine *el, el_afunc_t f, void *a) argument
[all...]
H A Dprompt.c50 #include "el.h"
60 prompt_default(EditLine *el __attribute__((__unused__)))
73 prompt_default_r(EditLine *el __attribute__((__unused__)))
85 prompt_print(EditLine *el, int op) argument
92 elp = &el->el_prompt;
94 elp = &el->el_rprompt;
97 p = (*elp->p_func)(el);
99 p = ct_decode_string((char *)(void *)(*elp->p_func)(el),
100 &el->el_scratch);
108 terminal__putc(el, *
122 prompt_init(EditLine *el) argument
151 prompt_set(EditLine *el, el_pfunc_t prf, Char c, int op, int wide) argument
183 prompt_get(EditLine *el, el_pfunc_t *prf, Char *c, int op) argument
[all...]
H A Dterminal.c77 #include "el.h"
88 #define GoodStr(a) (el->el_terminal.t_str[a] != NULL && \
89 el->el_terminal.t_str[a][0] != '\0')
90 #define Str(a) el->el_terminal.t_str[a]
91 #define Val(a) el->el_terminal.t_val[a]
225 terminal_setflags(EditLine *el) argument
228 if (el->el_tty.t_tabs)
252 (void) fprintf(el->el_errfile,
254 (void) fprintf(el->el_errfile,
258 (void) fprintf(el
270 terminal_init(EditLine *el) argument
321 terminal_end(EditLine *el) argument
343 terminal_alloc(EditLine *el, const struct termcapstr *t, const char *cap) argument
409 terminal_rebuffer_display(EditLine *el) argument
428 terminal_alloc_display(EditLine *el) argument
474 terminal_free_display(EditLine *el) argument
501 terminal_move_to_line(EditLine *el, int where) argument
566 terminal_move_to_char(EditLine *el, int where) argument
663 terminal_overwrite(EditLine *el, const Char *cp, size_t n) argument
713 terminal_deletechars(EditLine *el, int num) argument
755 terminal_insertwrite(EditLine *el, Char *cp, int num) argument
814 terminal_clear_EOL(EditLine *el, int num) argument
832 terminal_clear_screen(EditLine *el) argument
853 terminal_beep(EditLine *el) argument
864 terminal_get(EditLine *el, const char **term) argument
874 terminal_set(EditLine *el, const char *term) argument
963 terminal_get_size(EditLine *el, int *lins, int *cols) argument
999 terminal_change_size(EditLine *el, int lins, int cols) argument
1019 terminal_init_arrow(EditLine *el) argument
1064 terminal_reset_arrow(EditLine *el) argument
1114 terminal_set_arrow(EditLine *el, const Char *name, keymacro_value_t *fun, int type) argument
1134 terminal_clear_arrow(EditLine *el, const Char *name) argument
1152 terminal_print_arrow(EditLine *el, const Char *name) argument
1169 terminal_bind_arrow(EditLine *el) argument
1242 terminal_tputs(EditLine *el, const char *cap, int affcnt) argument
1258 terminal__putc(EditLine *el, wint_t c) argument
1275 terminal__flush(EditLine *el) argument
1285 terminal_writec(EditLine *el, wint_t c) argument
1302 terminal_telltc(EditLine *el, int argc __attribute__((__unused__)), const Char **argv __attribute__((__unused__))) argument
1344 terminal_settc(EditLine *el, int argc __attribute__((__unused__)), const Char **argv) argument
1423 terminal_gettc(EditLine *el, int argc __attribute__((__unused__)), char **argv) argument
1477 terminal_echotc(EditLine *el, int argc __attribute__((__unused__)), const Char **argv) argument
[all...]
H A Deln.c40 #include "el.h"
43 el_getc(EditLine *el, char *cp) argument
48 num_read = el_wgetc(el, &wc);
65 el_push(EditLine *el, const char *str) argument
69 el_wpush(el, ct_decode_string(str, &el->el_lgcyconv));
74 el_gets(EditLine *el, int *nread) argument
78 tmp = el_wgets(el, nread);
87 return ct_encode_string(tmp, &el->el_lgcyconv);
92 el_parse(EditLine *el, in argument
109 el_set(EditLine *el, int op, ...) argument
279 el_get(EditLine *el, int op, ...) argument
366 el_line(EditLine *el) argument
390 el_insertstr(EditLine *el, const char *str) argument
[all...]
H A Dmap.c53 #include "el.h"
898 map_init(EditLine *el) argument
906 EL_ABORT((el->errfile, "Emacs map incorrect\n"));
908 EL_ABORT((el->errfile, "Vi command map incorrect\n"));
910 EL_ABORT((el->errfile, "Vi insert map incorrect\n"));
913 el->el_map.alt = el_malloc(sizeof(*el->el_map.alt) * N_KEYS);
914 if (el->el_map.alt == NULL)
916 el->el_map.key = el_malloc(sizeof(*el
947 map_end(EditLine *el) argument
968 map_init_nls(EditLine *el) argument
984 map_init_meta(EditLine *el) argument
1025 map_init_vi(EditLine *el) argument
1055 map_init_emacs(EditLine *el) argument
1089 map_set_editor(EditLine *el, Char *editor) argument
1108 map_get_editor(EditLine *el, const Char **editor) argument
1129 map_print_key(EditLine *el, el_action_t *map, const Char *in) argument
1152 map_print_some_keys(EditLine *el, el_action_t *map, wint_t first, wint_t last) argument
1216 map_print_all_keys(EditLine *el) argument
1251 map_bind(EditLine *el, int argc, const Char **argv) argument
1403 map_addfunc(EditLine *el, const Char *name, const Char *help, el_func_t func) argument
[all...]
H A Dtty.c56 #include "el.h"
475 tty_getty(EditLine *el, struct termios *t) argument
478 while ((rv = tcgetattr(el->el_infd, t)) == -1 && errno == EINTR)
487 tty_setty(EditLine *el, int action, const struct termios *t) argument
490 while ((rv = tcsetattr(el->el_infd, action, t)) == -1 && errno == EINTR)
499 tty_setup(EditLine *el) argument
503 if (el->el_flags & EDIT_DISABLED)
506 if (el->el_tty.t_initialized)
509 if (!isatty(el->el_outfd)) {
511 (void) fprintf(el
573 tty_init(EditLine *el) argument
590 tty_end(EditLine *el) argument
896 tty_bind_char(EditLine *el, int force) argument
957 tty_update_flag(EditLine *el, tcflag_t f, int mode, int kind) argument
966 tty_update_flags(EditLine *el, int kind) argument
981 tty_update_char(EditLine *el, int mode, int c) argument
994 tty_rawmode(EditLine *el) argument
1079 tty_cookedmode(EditLine *el) argument
1104 tty_quotemode(EditLine *el) argument
1129 tty_noquotemode(EditLine *el) argument
1151 tty_stty(EditLine *el, int argc __attribute__((__unused__)), const Char **argv) argument
1312 tty_printchar(EditLine *el, unsigned char *s) argument
1333 tty_setup_flags(EditLine *el, struct termios *tios, int mode) argument
[all...]
H A Dkeymacro.c53 * el->el_keymacro.map)
60 * are in el->el_keymacro.map, adding the key "abc" will cause
71 #include "el.h"
74 * The Nodes of the el->el_keymacro.map. The el->el_keymacro.map is a
106 keymacro_init(EditLine *el) argument
109 el->el_keymacro.buf = el_malloc(KEY_BUFSIZ *
110 sizeof(*el->el_keymacro.buf));
111 if (el->el_keymacro.buf == NULL)
113 el
122 keymacro_end(EditLine *el) argument
135 keymacro_map_cmd(EditLine *el, int cmd) argument
147 keymacro_map_str(EditLine *el, Char *str) argument
161 keymacro_reset(EditLine *el) argument
179 keymacro_get(EditLine *el, Char *ch, keymacro_value_t *val) argument
193 keymacro_add(EditLine *el, const Char *key, keymacro_value_t *val, int ntype) argument
221 keymacro_clear(EditLine *el, el_action_t *map, const Char *in) argument
241 keymacro_delete(EditLine *el, const Char *key) argument
262 keymacro_print(EditLine *el, const Char *key) argument
283 node_trav(EditLine *el, keymacro_node_t *ptr, Char *ch, keymacro_value_t *val) argument
322 node__try(EditLine *el, keymacro_node_t *ptr, const Char *str, keymacro_value_t *val, int ntype) argument
385 node__delete(EditLine *el, keymacro_node_t **inptr, const Char *str) argument
433 node__put(EditLine *el, keymacro_node_t *ptr) argument
495 node_lookup(EditLine *el, const Char *str, keymacro_node_t *ptr, size_t cnt) argument
547 node_enum(EditLine *el, keymacro_node_t *ptr, size_t cnt) argument
590 keymacro_kprint(EditLine *el, const Char *key, keymacro_value_t *val, int ntype) argument
[all...]
H A Dsig.c54 #include "el.h"
121 sig_init(EditLine *el) argument
126 el->el_signal = el_malloc(sizeof(*el->el_signal));
127 if (el->el_signal == NULL)
130 nset = &el->el_signal->sig_set;
138 el->el_signal->sig_action[i].sa_handler = SIG_ERR;
139 el->el_signal->sig_action[i].sa_flags = 0;
140 sigemptyset(&el->el_signal->sig_action[i].sa_mask);
153 sig_end(EditLine *el) argument
165 sig_set(EditLine *el) argument
192 sig_clr(EditLine *el) argument
[all...]
H A Dfilecomplete.c51 #include "el.h"
363 fn_display_match_list (EditLine *el, char **matches, size_t num, size_t width) argument
366 int screenwidth = el->el_terminal.t_size.h;
394 (void)fprintf(el->el_outfile, "%s%-*s",
397 (void)fprintf(el->el_outfile, "\n");
414 fn_complete(EditLine *el, argument
433 if (el->el_state.lastcmd == el->el_state.thiscmd)
446 li = FUN(el,line)(el);
604 _el_fn_complete(EditLine *el, int ch __attribute__((__unused__))) argument
691 _el_fn_sh_complete(EditLine *el, int ch __attribute__((__unused__))) argument
[all...]
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_nested_structs.c6 EditLine *el; member in struct:__anon4746
18 .command = { .el = 0, .hist = 0, },
19 .string = { .el = 0, .hist = 0, },
20 .filec = { .el = 0, .hist = 0, },
/freebsd-11-stable/bin/sh/
H A Dmyhistedit.h36 extern EditLine *el;
/freebsd-11-stable/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-11-stable/sys/arm64/include/
H A Ddebug_monitor.h53 int dbg_setup_watchpoint(db_expr_t addr, db_expr_t size, enum dbg_el_t el,
55 int dbg_remove_watchpoint(db_expr_t addr, db_expr_t size, enum dbg_el_t el);
/freebsd-11-stable/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-11-stable/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(unsigned, unsigned),
70 el(general_string, heim_general_string),
71 el(octet_string, heim_octet_string),
73 el(ia5_string, heim_ia5_string),
74 el(bmp_string, heim_bmp_string),
75 el(universal_strin
88 #undef el macro
170 void *el = DPO(data, t->offset); local
252 void **el = (void **)data; local
294 void *el = DPO(data, t->offset); local
317 struct template_of *el = DPO(data, t->offset); local
455 const void *el = DPOC(data, t->offset); local
484 void **el = (void **)data; local
514 const void *el = DPOC(data, t->offset); local
529 const struct template_of *el = DPOC(data, t->offset); local
591 struct template_of *el = DPO(data, t->offset); local
664 const void *el; local
709 const void *el = DPOC(data, t->offset); local
733 void **el = (void **)data; local
748 const void *el = DPOC(data, t->offset); local
759 const struct template_of *el = DPOC(data, t->offset); local
834 void *el = DPO(data, t->offset); local
856 void *el = DPO(data, t->offset); local
866 void *el = DPO(data, t->offset); local
884 struct template_of *el = DPO(data, t->offset); local
[all...]
/freebsd-11-stable/lib/libedit/TEST/
H A Dtc1.c74 prompt(EditLine *el) argument
89 complete(EditLine *el, int ch) argument
94 const LineInfo *lf = el_line(el);
110 if (el_insertstr(el, &dp->d_name[len]) == -1)
125 EditLine *el = NULL; local
149 el = el_init(*argv, stdin, stdout, stderr);
151 el_set(el, EL_EDITOR, "vi"); /* Default editor is vi */
152 el_set(el, EL_SIGNAL, 1); /* Handle signals gracefully */
153 el_set(el, EL_PROMPT_ESC, prompt, '\1');/* Set the prompt function */
156 el_set(el, EL_HIS
[all...]

Completed in 118 milliseconds

123456