Home
last modified time | relevance | path

Searched refs:el (Results 1 – 25 of 210) sorted by relevance

123456789

/freebsd/contrib/libedit/
H A Dcommon.c62 ed_end_of_file(EditLine *el, wint_t c __attribute__((__unused__))) in ed_end_of_file() argument
65 re_goto_bottom(el); in ed_end_of_file()
66 *el->el_line.lastchar = '\0'; in ed_end_of_file()
76 ed_insert(EditLine *el, wint_t c) in ed_insert() argument
78 int count = el->el_state.argument; in ed_insert()
83 if (el->el_line.lastchar + el->el_state.argument >= in ed_insert()
84 el->el_line.limit) { in ed_insert()
86 if (!ch_enlargebufs(el, (size_t) count)) in ed_insert()
91 if (el->el_state.inputmode == MODE_INSERT in ed_insert()
92 || el->el_line.cursor >= el->el_line.lastchar) in ed_insert()
[all …]
H A Dvi.c67 cv_action(EditLine *el, wint_t c) in cv_action() argument
70 if (el->el_chared.c_vcmd.action != NOP) { in cv_action()
72 if (c != (wint_t)el->el_chared.c_vcmd.action) in cv_action()
76 cv_undo(el); in cv_action()
77 cv_yank(el, el->el_line.buffer, in cv_action()
78 (int)(el->el_line.lastchar - el->el_line.buffer)); in cv_action()
79 el->el_chared.c_vcmd.action = NOP; in cv_action()
80 el->el_chared.c_vcmd.pos = 0; in cv_action()
82 el->el_line.lastchar = el->el_line.buffer; in cv_action()
83 el->el_line.cursor = el->el_line.buffer; in cv_action()
[all …]
H A Dchared.c62 cv_undo(EditLine *el) in cv_undo() argument
64 c_undo_t *vu = &el->el_chared.c_undo; in cv_undo()
65 c_redo_t *r = &el->el_chared.c_redo; in cv_undo()
69 size = (size_t)(el->el_line.lastchar - el->el_line.buffer); in cv_undo()
71 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer); in cv_undo()
72 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf)); in cv_undo()
75 r->count = el->el_state.doingarg ? el->el_state.argument : 0; in cv_undo()
76 r->action = el->el_chared.c_vcmd.action; in cv_undo()
78 r->cmd = el->el_state.thiscmd; in cv_undo()
79 r->ch = el->el_state.thisch; in cv_undo()
[all …]
H A Dsearch.c62 #define EL_CURSOR(el) \ argument
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) in search_init() argument
73 el->el_search.patbuf = el_calloc(EL_BUFSIZ, in search_init()
74 sizeof(*el->el_search.patbuf)); in search_init()
75 if (el->el_search.patbuf == NULL) in search_init()
77 el->el_search.patbuf[0] = L'\0'; in search_init()
78 el->el_search.patlen = 0; in search_init()
79 el->el_search.patdir = -1; in search_init()
[all …]
H A Demacs.c59 em_delete_or_list(EditLine *el, wint_t c) in em_delete_or_list() argument
62 if (el->el_line.cursor == el->el_line.lastchar) { in em_delete_or_list()
64 if (el->el_line.cursor == el->el_line.buffer) { in em_delete_or_list()
66 terminal_writec(el, c); /* then do an EOF */ in em_delete_or_list()
73 terminal_beep(el); in em_delete_or_list()
77 if (el->el_state.doingarg) in em_delete_or_list()
78 c_delafter(el, el->el_state.argument); in em_delete_or_list()
80 c_delafter1(el); in em_delete_or_list()
81 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_or_list()
82 el->el_line.cursor = el->el_line.lastchar; in em_delete_or_list()
[all …]
H A Dread.c84 read_init(EditLine *el) in read_init() argument
88 if ((el->el_read = el_malloc(sizeof(*el->el_read))) == NULL) in read_init()
91 ma = &el->el_read->macros; in read_init()
98 el->el_read->read_char = read_char; in read_init()
101 read_end(el); in read_init()
109 read_end(EditLine *el) in read_end() argument
112 read_clearmacros(&el->el_read->macros); in read_end()
113 el_free(el->el_read->macros.macro); in read_end()
114 el->el_read->macros.macro = NULL; in read_end()
115 el_free(el->el_read); in read_end()
[all …]
H A Drefresh.c66 #define __F el->el_errfile
79 re_printstr(EditLine *el, const char *str, wchar_t *f, wchar_t *t) in re_printstr() argument
96 re_nextline(EditLine *el) in re_nextline() argument
98 el->el_refresh.r_cursor.h = 0; /* reset it. */ in re_nextline()
106 if (el->el_refresh.r_cursor.v + 1 >= el->el_terminal.t_size.v) { in re_nextline()
107 int i, lins = el->el_terminal.t_size.v; in re_nextline()
108 wint_t *firstline = el->el_vdisplay[0]; in re_nextline()
111 el->el_vdisplay[i - 1] = el->el_vdisplay[i]; in re_nextline()
114 el->el_vdisplay[i - 1] = firstline; in re_nextline()
116 el->el_refresh.r_cursor.v++; in re_nextline()
[all …]
H A Del.c74 EditLine *el = el_calloc(1, sizeof(*el)); in el_init_internal() local
76 if (el == NULL) in el_init_internal()
79 el->el_infile = fin; in el_init_internal()
80 el->el_outfile = fout; in el_init_internal()
81 el->el_errfile = ferr; in el_init_internal()
83 el->el_infd = fdin; in el_init_internal()
84 el->el_outfd = fdout; in el_init_internal()
85 el->el_errfd = fderr; in el_init_internal()
87 el->el_prog = wcsdup(ct_decode_string(prog, &el->el_scratch)); in el_init_internal()
88 if (el->el_prog == NULL) { in el_init_internal()
[all …]
H A Dhist.c57 hist_init(EditLine *el) in hist_init() argument
60 el->el_history.fun = NULL; in hist_init()
61 el->el_history.ref = NULL; in hist_init()
62 el->el_history.buf = el_calloc(EL_BUFSIZ, sizeof(*el->el_history.buf)); in hist_init()
63 if (el->el_history.buf == NULL) in hist_init()
65 el->el_history.sz = EL_BUFSIZ; in hist_init()
66 el->el_history.last = el->el_history.buf; in hist_init()
75 hist_end(EditLine *el) in hist_end() argument
78 el_free(el->el_history.buf); in hist_end()
79 el->el_history.buf = NULL; in hist_end()
[all …]
H A Dterminal.c96 #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) in terminal_setflags() argument
236 if (el->el_tty.t_tabs) in terminal_setflags()
260 (void) fprintf(el->el_errfile, in terminal_setflags()
262 (void) fprintf(el->el_errfile, in terminal_setflags()
266 (void) fprintf(el->el_errfile, "no clear EOL capability.\n"); in terminal_setflags()
268 (void) fprintf(el->el_errfile, "no delete char capability.\n"); in terminal_setflags()
[all …]
H A Dtty.c474 tty_getty(EditLine *el, struct termios *t) in tty_getty() argument
477 while ((rv = tcgetattr(el->el_infd, t)) == -1 && errno == EINTR) in tty_getty()
486 tty_setty(EditLine *el, int action, const struct termios *t) in tty_setty() argument
489 while ((rv = tcsetattr(el->el_infd, action, t)) == -1 && errno == EINTR) in tty_setty()
498 tty_setup(EditLine *el) in tty_setup() argument
500 int rst = (el->el_flags & NO_RESET) == 0; in tty_setup()
502 if (el->el_flags & EDIT_DISABLED) in tty_setup()
505 if (el->el_tty.t_initialized) in tty_setup()
508 if (!isatty(el->el_outfd)) { in tty_setup()
510 (void) fprintf(el->el_errfile, "%s: isatty: %s\n", __func__, in tty_setup()
[all …]
H A Dkeymacro.c105 keymacro_init(EditLine *el) in keymacro_init() argument
108 el->el_keymacro.buf = el_calloc(KEY_BUFSIZ, in keymacro_init()
109 sizeof(*el->el_keymacro.buf)); in keymacro_init()
110 if (el->el_keymacro.buf == NULL) in keymacro_init()
112 el->el_keymacro.map = NULL; in keymacro_init()
113 keymacro_reset(el); in keymacro_init()
121 keymacro_end(EditLine *el) in keymacro_end() argument
124 el_free(el->el_keymacro.buf); in keymacro_end()
125 el->el_keymacro.buf = NULL; in keymacro_end()
126 node__free(el->el_keymacro.map); in keymacro_end()
[all …]
H A Dmap.c901 map_init(EditLine *el) in map_init() argument
909 EL_ABORT((el->el_errfile, "Emacs map incorrect\n")); in map_init()
911 EL_ABORT((el->el_errfile, "Vi command map incorrect\n")); in map_init()
913 EL_ABORT((el->el_errfile, "Vi insert map incorrect\n")); in map_init()
916 el->el_map.alt = el_calloc(N_KEYS, sizeof(*el->el_map.alt)); in map_init()
917 if (el->el_map.alt == NULL) in map_init()
919 el->el_map.key = el_calloc(N_KEYS, sizeof(*el->el_map.key)); in map_init()
920 if (el->el_map.key == NULL) in map_init()
922 el->el_map.emacs = el_map_emacs; in map_init()
923 el->el_map.vic = el_map_vi_command; in map_init()
[all …]
H A Deln.c41 el_getc(EditLine *el, char *cp) in el_getc() argument
46 num_read = el_wgetc(el, &wc); in el_getc()
62 el_push(EditLine *el, const char *str) in el_push() argument
66 el_wpush(el, ct_decode_string(str, &el->el_lgcyconv)); in el_push()
71 el_gets(EditLine *el, int *nread) in el_gets() argument
75 tmp = el_wgets(el, nread); in el_gets()
84 return ct_encode_string(tmp, &el->el_lgcyconv); in el_gets()
89 el_parse(EditLine *el, int argc, const char *argv[]) in el_parse() argument
94 wargv = (void *)ct_decode_argv(argc, argv, &el->el_lgcyconv); in el_parse()
97 ret = el_wparse(el, argc, wargv); in el_parse()
[all …]
H A Dhist.h55 #define HIST_FUN_INTERNAL(el, fn, arg) \ argument
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) \ argument
59 (((el)->el_flags & NARROW_HISTORY) ? hist_convert(el, fn, arg) : \
60 HIST_FUN_INTERNAL(el, fn, arg))
62 #define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) argument
63 #define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) argument
64 #define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) argument
65 #define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) argument
[all …]
H A Dprompt.c58 prompt_default(EditLine *el __attribute__((__unused__))) in prompt_default() argument
71 prompt_default_r(EditLine *el __attribute__((__unused__))) in prompt_default_r() argument
83 prompt_print(EditLine *el, int op) in prompt_print() argument
89 elp = &el->el_prompt; in prompt_print()
91 elp = &el->el_rprompt; in prompt_print()
94 p = (*elp->p_func)(el); in prompt_print()
96 p = ct_decode_string((char *)(void *)(*elp->p_func)(el), in prompt_print()
97 &el->el_scratch); in prompt_print()
108 re_putliteral(el, litstart, p++); in prompt_print()
111 re_putc(el, *p, 1); in prompt_print()
[all …]
H A Dsig.c119 sig_init(EditLine *el) in sig_init() argument
124 el->el_signal = el_malloc(sizeof(*el->el_signal)); in sig_init()
125 if (el->el_signal == NULL) in sig_init()
128 nset = &el->el_signal->sig_set; in sig_init()
136 el->el_signal->sig_action[i].sa_handler = SIG_ERR; in sig_init()
137 el->el_signal->sig_action[i].sa_flags = 0; in sig_init()
138 sigemptyset(&el->el_signal->sig_action[i].sa_mask); in sig_init()
151 sig_end(EditLine *el) in sig_end() argument
154 el_free(el->el_signal); in sig_end()
155 el->el_signal = NULL; in sig_end()
[all …]
H A Dfilecomplete.c195 escape_filename(EditLine * el, const char *filename, int single_match, in escape_filename() argument
207 wchar_t *temp = el->el_line.buffer; in escape_filename()
213 while (temp != el->el_line.cursor) { in escape_filename()
219 (temp == el->el_line.buffer || temp[-1] != '\\')) in escape_filename()
543 fn_display_match_list(EditLine * el, char **matches, size_t num, size_t width, in fn_display_match_list() argument
547 int screenwidth = el->el_terminal.t_size.h; in fn_display_match_list()
577 (void)fprintf(el->el_outfile, "%s%s%s", in fn_display_match_list()
580 (void)fprintf(el->el_outfile, "%-*s", in fn_display_match_list()
583 (void)fprintf(el->el_outfile, "\n"); in fn_display_match_list()
660 fn_complete2(EditLine *el, in fn_complete2() argument
[all …]
/freebsd/contrib/netbsd-tests/lib/libcurses/check_files/
H A Dclear5.chk2 el
3 el
4 el
5 el
6 el
7 el
8 el
9 el
10 el
11 el
[all …]
/freebsd/contrib/tcsh/nls/spanish/
H A Dset34 2 Borrar el carácter detrás del cursor
5 3 Cortar desde el comienzo de la palabra hasta el cursor - se guarda en el buffer
6 4 Cortar desde el comienzo de la línea hasta el cursor - se guarda en el buffer
7 5 Ir hasta el comienzo de la palabra
8 6 Ir hasta el comienzo de la línea
9 7 Convertir en mayúsculas los caracteres desde el cursor hasta el final de la palabra
10 8 Vi: cambiar a mayúsculas o minúsculas el carácter bajo el cursor y avanza una posición
11 9 Vi: cambia hasta el final de la línea
17 15 Copia la palabra hasta el cursor
18 16 Copia el área entre la marca y el cursor al buffer
[all …]
/freebsd/contrib/libucl/uthash/
H A Dutlist.h419 #define LL_COUNT(head,el,counter) \ argument
420 LL_COUNT2(head,el,counter,next) \
422 #define LL_COUNT2(head,el,counter,next) \ argument
425 LL_FOREACH2(head,el,next){ ++counter; } \
428 #define LL_FOREACH(head,el) \ argument
429 LL_FOREACH2(head,el,next)
431 #define LL_FOREACH2(head,el,next) \ argument
432 for(el=head;el;el=(el)->next)
434 #define LL_FOREACH_SAFE(head,el,tmp) \ argument
435 LL_FOREACH_SAFE2(head,el,tmp,next)
[all …]
/freebsd/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
170 void *el = DPO(data, t->offset); _asn1_decode() local
252 void **el = (void **)data; _asn1_decode() local
294 void *el = DPO(data, t->offset); _asn1_decode() local
317 struct template_of *el = DPO(data, t->offset); _asn1_decode() local
455 const void *el = DPOC(data, t->offset); _asn1_encode() local
484 void **el = (void **)data; _asn1_encode() local
514 const void *el = DPOC(data, t->offset); _asn1_encode() local
529 const struct template_of *el = DPOC(data, t->offset); _asn1_encode() local
591 struct template_of *el = DPO(data, t->offset); _asn1_encode() local
664 const void *el; _asn1_encode() local
709 const void *el = DPOC(data, t->offset); _asn1_length() local
733 void **el = (void **)data; _asn1_length() local
748 const void *el = DPOC(data, t->offset); _asn1_length() local
759 const struct template_of *el = DPOC(data, t->offset); _asn1_length() local
834 void *el = DPO(data, t->offset); _asn1_free() local
856 void *el = DPO(data, t->offset); _asn1_free() local
866 void *el = DPO(data, t->offset); _asn1_free() local
884 struct template_of *el = DPO(data, t->offset); _asn1_free() local
[all...]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dalist.c57 alist_el_t *el = arg; in alist_hash() local
58 uintptr_t num = (uintptr_t)el->ale_name; in alist_hash()
96 alist_el_t *el = arg1; in alist_free_cb() local
99 alist->al_namefree(el->ale_name); in alist_free_cb()
101 alist->al_valfree(el->ale_name); in alist_free_cb()
102 free(el); in alist_free_cb()
115 alist_el_t *el; in alist_add() local
117 el = xmalloc(sizeof (alist_el_t)); in alist_add()
118 el->ale_name = name; in alist_add()
119 el->ale_value = value; in alist_add()
[all …]
/freebsd/contrib/libedit/TEST/
H A Dtc1.c73 prompt(EditLine *el) in prompt() argument
88 complete(EditLine *el, int ch) in complete() argument
93 const LineInfo *lf = el_line(el); in complete()
109 if (el_insertstr(el, &dp->d_name[len]) == -1) in complete()
124 EditLine *el = NULL; in main() local
148 el = el_init(*argv, stdin, stdout, stderr); in main()
150 el_set(el, EL_EDITOR, "vi"); /* Default editor is vi */ in main()
151 el_set(el, EL_SIGNAL, 1); /* Handle signals gracefully */ in main()
152 el_set(el, EL_PROMPT_ESC, prompt, '\1');/* Set the prompt function */ in main()
155 el_set(el, EL_HIST, history, hist); in main()
[all …]
H A Dwtc1.c21 prompt(EditLine *el) in prompt() argument
57 complete(EditLine *el, int ch) in complete() argument
63 const LineInfoW *lf = el_wline(el); in complete()
93 if (el_winsertstr(el, dir) == -1) in complete()
110 EditLine *el = NULL; in main() local
133 el = el_init(argv[0], stdin, stdout, stderr); in main()
135 el_wset(el, EL_EDITOR, L"vi"); /* Default editor is vi */ in main()
136 el_wset(el, EL_SIGNAL, 1); /* Handle signals gracefully */ in main()
137 el_wset(el, EL_PROMPT_ESC, prompt, '\1'); /* Set the prompt function */ in main()
139 el_wset(el, EL_HIST, history_w, hist); /* FIXME - history_w? */ in main()
[all …]

123456789