Home
last modified time | relevance | path

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

12345678910

/freebsd-9-stable/lib/libedit/
Dvi.c55 cv_action(EditLine *el, int c) in cv_action() argument
58 if (el->el_chared.c_vcmd.action != NOP) { in cv_action()
60 if (c != el->el_chared.c_vcmd.action) in cv_action()
64 cv_undo(el); in cv_action()
65 cv_yank(el, el->el_line.buffer, in cv_action()
66 (int)(el->el_line.lastchar - el->el_line.buffer)); in cv_action()
67 el->el_chared.c_vcmd.action = NOP; in cv_action()
68 el->el_chared.c_vcmd.pos = 0; in cv_action()
70 el->el_line.lastchar = el->el_line.buffer; in cv_action()
71 el->el_line.cursor = el->el_line.buffer; in cv_action()
[all …]
Dcommon.c53 ed_end_of_file(EditLine *el, int c __unused) in ed_end_of_file() argument
56 re_goto_bottom(el); in ed_end_of_file()
57 *el->el_line.lastchar = '\0'; in ed_end_of_file()
67 ed_insert(EditLine *el, int c) in ed_insert() argument
69 int count = el->el_state.argument; in ed_insert()
74 if (el->el_line.lastchar + el->el_state.argument >= in ed_insert()
75 el->el_line.limit) { in ed_insert()
77 if (!ch_enlargebufs(el, (size_t) count)) in ed_insert()
82 if (el->el_state.inputmode == MODE_INSERT in ed_insert()
83 || el->el_line.cursor >= el->el_line.lastchar) in ed_insert()
[all …]
Demacs.c53 em_delete_or_list(EditLine *el, int c) in em_delete_or_list() argument
56 if (el->el_line.cursor == el->el_line.lastchar) { in em_delete_or_list()
58 if (el->el_line.cursor == el->el_line.buffer) { in em_delete_or_list()
60 term_writec(el, c); /* then do an EOF */ in em_delete_or_list()
67 term_beep(el); in em_delete_or_list()
71 if (el->el_state.doingarg) in em_delete_or_list()
72 c_delafter(el, el->el_state.argument); in em_delete_or_list()
74 c_delafter1(el); in em_delete_or_list()
75 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_or_list()
76 el->el_line.cursor = el->el_line.lastchar; in em_delete_or_list()
[all …]
Dsearch.c56 #define EL_CURSOR(el) \ argument
57 ((el)->el_line.cursor + (((el)->el_map.type == MAP_VI) && \
58 ((el)->el_map.current == (el)->el_map.alt)))
64 search_init(EditLine *el) in search_init() argument
67 el->el_search.patbuf = (char *) el_malloc(EL_BUFSIZ); in search_init()
68 if (el->el_search.patbuf == NULL) in search_init()
70 el->el_search.patlen = 0; in search_init()
71 el->el_search.patdir = -1; in search_init()
72 el->el_search.chacha = '\0'; in search_init()
73 el->el_search.chadir = CHAR_FWD; in search_init()
[all …]
Dread.c64 read_init(EditLine *el) in read_init() argument
67 el->el_read.read_char = read_char; in read_init()
77 el_read_setfn(EditLine *el, el_rfunc_t rc) in el_read_setfn() argument
79 el->el_read.read_char = (rc == EL_BUILTIN_GETCFN) ? read_char : rc; in el_read_setfn()
89 el_read_getfn(EditLine *el) in el_read_getfn() argument
91 return (el->el_read.read_char == read_char) ? in el_read_getfn()
92 EL_BUILTIN_GETCFN : el->el_read.read_char; in el_read_getfn()
102 read_debug(EditLine *el) in read_debug() argument
105 if (el->el_line.cursor > el->el_line.lastchar) in read_debug()
106 (void) fprintf(el->el_errfile, "cursor > lastchar\r\n"); in read_debug()
[all …]
Dchared.c58 cv_undo(EditLine *el) in cv_undo() argument
60 c_undo_t *vu = &el->el_chared.c_undo; in cv_undo()
61 c_redo_t *r = &el->el_chared.c_redo; in cv_undo()
65 size = el->el_line.lastchar - el->el_line.buffer; in cv_undo()
67 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer); in cv_undo()
68 memcpy(vu->buf, el->el_line.buffer, size); in cv_undo()
71 r->count = el->el_state.doingarg ? el->el_state.argument : 0; in cv_undo()
72 r->action = el->el_chared.c_vcmd.action; in cv_undo()
74 r->cmd = el->el_state.thiscmd; in cv_undo()
75 r->ch = el->el_state.thisch; in cv_undo()
[all …]
Drefresh.c64 #define __F el->el_errfile
77 re_printstr(EditLine *el, const char *str, char *f, char *t) in re_printstr() argument
94 re_nextline(EditLine *el) in re_nextline() argument
96 el->el_refresh.r_cursor.h = 0; /* reset it. */ in re_nextline()
104 if (el->el_refresh.r_cursor.v + 1 >= el->el_term.t_size.v) { in re_nextline()
105 int i, lins = el->el_term.t_size.v; in re_nextline()
106 char *firstline = el->el_vdisplay[0]; in re_nextline()
109 el->el_vdisplay[i - 1] = el->el_vdisplay[i]; in re_nextline()
112 el->el_vdisplay[i - 1] = firstline; in re_nextline()
114 el->el_refresh.r_cursor.v++; in re_nextline()
[all …]
Del.c63 EditLine *el = (EditLine *) el_malloc(sizeof(EditLine)); in el_init() local
65 if (el == NULL) in el_init()
68 memset(el, 0, sizeof(EditLine)); in el_init()
70 el->el_infile = fin; in el_init()
71 el->el_outfile = fout; in el_init()
72 el->el_errfile = ferr; in el_init()
74 el->el_infd = fileno(fin); in el_init()
76 if ((el->el_prog = el_strdup(prog)) == NULL) { in el_init()
77 el_free(el); in el_init()
84 el->el_flags = 0; in el_init()
[all …]
Dhist.c52 hist_init(EditLine *el) in hist_init() argument
55 el->el_history.fun = NULL; in hist_init()
56 el->el_history.ref = NULL; in hist_init()
57 el->el_history.buf = (char *) el_malloc(EL_BUFSIZ); in hist_init()
58 el->el_history.sz = EL_BUFSIZ; in hist_init()
59 if (el->el_history.buf == NULL) in hist_init()
61 el->el_history.last = el->el_history.buf; in hist_init()
70 hist_end(EditLine *el) in hist_end() argument
73 el_free((ptr_t) el->el_history.buf); in hist_end()
74 el->el_history.buf = NULL; in hist_end()
[all …]
Dterm.c69 #define GoodStr(a) (el->el_term.t_str[a] != NULL && \
70 el->el_term.t_str[a][0] != '\0')
71 #define Str(a) el->el_term.t_str[a]
72 #define Val(a) el->el_term.t_val[a]
277 term_setflags(EditLine *el) in term_setflags() argument
280 if (el->el_tty.t_tabs) in term_setflags()
304 (void) fprintf(el->el_errfile, in term_setflags()
306 (void) fprintf(el->el_errfile, in term_setflags()
310 (void) fprintf(el->el_errfile, "no clear EOL capability.\n"); in term_setflags()
312 (void) fprintf(el->el_errfile, "no delete char capability.\n"); in term_setflags()
[all …]
Dtty.c464 tty_getty(EditLine *el, struct termios *t) in tty_getty() argument
467 while ((rv = tcgetattr(el->el_infd, t)) == -1 && errno == EINTR) in tty_getty()
476 tty_setty(EditLine *el, int action, const struct termios *t) in tty_setty() argument
479 while ((rv = tcsetattr(el->el_infd, action, t)) == -1 && errno == EINTR) in tty_setty()
488 tty_setup(EditLine *el) in tty_setup() argument
492 if (el->el_flags & EDIT_DISABLED) in tty_setup()
495 if (tty_getty(el, &el->el_tty.t_ed) == -1) { in tty_setup()
497 (void) fprintf(el->el_errfile, in tty_setup()
502 el->el_tty.t_ts = el->el_tty.t_ex = el->el_tty.t_ed; in tty_setup()
504 el->el_tty.t_speed = tty__getspeed(&el->el_tty.t_ex); in tty_setup()
[all …]
Dkey.c99 key_init(EditLine *el) in key_init() argument
102 el->el_key.buf = (char *) el_malloc(KEY_BUFSIZ); in key_init()
103 if (el->el_key.buf == NULL) in key_init()
105 el->el_key.map = NULL; in key_init()
106 key_reset(el); in key_init()
114 key_end(EditLine *el) in key_end() argument
117 el_free((ptr_t) el->el_key.buf); in key_end()
118 el->el_key.buf = NULL; in key_end()
119 node__free(el->el_key.map); in key_end()
127 key_map_cmd(EditLine *el, int cmd) in key_map_cmd() argument
[all …]
Dmap.c891 map_init(EditLine *el) in map_init() argument
899 EL_ABORT((el->errfile, "Emacs map incorrect\n")); in map_init()
901 EL_ABORT((el->errfile, "Vi command map incorrect\n")); in map_init()
903 EL_ABORT((el->errfile, "Vi insert map incorrect\n")); in map_init()
906 el->el_map.alt = (el_action_t *)el_malloc(sizeof(el_action_t) * N_KEYS); in map_init()
907 if (el->el_map.alt == NULL) in map_init()
909 el->el_map.key = (el_action_t *)el_malloc(sizeof(el_action_t) * N_KEYS); in map_init()
910 if (el->el_map.key == NULL) in map_init()
912 el->el_map.emacs = el_map_emacs; in map_init()
913 el->el_map.vic = el_map_vi_command; in map_init()
[all …]
Dprompt.c56 prompt_default(EditLine *el __unused) in prompt_default()
69 prompt_default_r(EditLine *el __unused) in prompt_default_r()
84 prompt_print(EditLine *el, int op) in prompt_print() argument
91 elp = &el->el_prompt; in prompt_print()
93 elp = &el->el_rprompt; in prompt_print()
95 for (p = (*elp->p_func)(el); *p; p++) { in prompt_print()
101 term__putc(el, *p); in prompt_print()
103 re_putc(el, *p, 1); in prompt_print()
106 elp->p_pos.v = el->el_refresh.r_cursor.v; in prompt_print()
107 elp->p_pos.h = el->el_refresh.r_cursor.h; in prompt_print()
[all …]
Dhist.h57 #define HIST_FUN(el, fn, arg) \ argument
58 ((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
59 fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
61 #define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) argument
62 #define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) argument
63 #define HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) argument
64 #define HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) argument
65 #define HIST_SET(el, num) HIST_FUN(el, H_SET, num) argument
66 #define HIST_LOAD(el, fname) HIST_FUN(el, H_LOAD fname) argument
67 #define HIST_SAVE(el, fname) HIST_FUN(el, H_SAVE fname) argument
Dsig.c112 sig_init(EditLine *el) in sig_init() argument
117 el->el_signal = el_malloc(sizeof(*el->el_signal)); in sig_init()
118 if (el->el_signal == NULL) in sig_init()
121 nset = &el->el_signal->sig_set; in sig_init()
129 el->el_signal->sig_action[i].sa_handler = SIG_ERR; in sig_init()
130 el->el_signal->sig_action[i].sa_flags = 0; in sig_init()
131 sigemptyset(&el->el_signal->sig_action[i].sa_mask); in sig_init()
144 sig_end(EditLine *el) in sig_end() argument
147 el_free((ptr_t) el->el_signal); in sig_end()
148 el->el_signal = NULL; in sig_end()
[all …]
/freebsd-9-stable/contrib/tcsh/nls/spanish/
Dset35 2 Borrar el carácter detrás del cursor
6 3 Cortar desde el comienzo de la palabra hasta el cursor - se guarda en el buffer
7 4 Cortar desde el comienzo de la línea hasta el cursor - se guarda en el buffer
8 5 Ir hasta el comienzo de la palabra
9 6 Ir hasta el comienzo de la línea
10 7 Convertir en mayúsculas los caracteres desde el cursor hasta el final de la palabra
11 8 Vi: cambiar a mayúsculas o minúsculas el carácter bajo el cursor y avanza una posición
12 9 Vi: cambia hasta el final de la línea
18 15 Copia la palabra hasta el cursor
19 16 Copia el área entre la marca y el cursor al buffer
[all …]
/freebsd-9-stable/contrib/libucl/uthash/
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-9-stable/contrib/bind9/lib/dns/
Dportlist.c139 dns_element_t *el; in dns_portlist_add() local
147 el = find_port(portlist->list, portlist->active, port); in dns_portlist_add()
148 if (el != NULL) { in dns_portlist_add()
150 el->flags |= DNS_PL_INET; in dns_portlist_add()
152 el->flags |= DNS_PL_INET6; in dns_portlist_add()
161 el = isc_mem_get(portlist->mctx, sizeof(*el) * allocated); in dns_portlist_add()
162 if (el == NULL) { in dns_portlist_add()
167 memmove(el, portlist->list, in dns_portlist_add()
168 portlist->allocated * sizeof(*el)); in dns_portlist_add()
170 portlist->allocated * sizeof(*el)); in dns_portlist_add()
[all …]
/freebsd-9-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
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-9-stable/lib/libedit/TEST/
Dtc1.c69 prompt(EditLine *el) in prompt() argument
84 complete(EditLine *el, int ch) in complete() argument
89 const LineInfo *lf = el_line(el); in complete()
105 if (el_insertstr(el, &dp->d_name[len]) == -1) in complete()
119 EditLine *el = NULL; in main() local
142 el = el_init(*argv, stdin, stdout, stderr); in main()
144 el_set(el, EL_EDITOR, "vi"); /* Default editor is vi */ in main()
145 el_set(el, EL_SIGNAL, 1); /* Handle signals gracefully */ in main()
146 el_set(el, EL_PROMPT_ESC, prompt, '\1');/* Set the prompt function */ in main()
149 el_set(el, EL_HIST, history, hist); in main()
[all …]
/freebsd-9-stable/bin/sh/
Dhistedit.c68 EditLine *el; /* editline cookie */ variable
100 if (editing && !el && isatty(0)) { /* && isatty(2) ??? */ in histedit()
120 el = el_init(arg0, el_in, el_out, el_err); in histedit()
121 if (el != NULL) { in histedit()
123 el_set(el, EL_HIST, history, hist); in histedit()
124 el_set(el, EL_PROMPT, getprompt); in histedit()
125 el_set(el, EL_ADDFN, "sh-complete", in histedit()
133 } else if (!editing && el) { in histedit()
135 el_end(el); in histedit()
136 el = NULL; in histedit()
[all …]
/freebsd-9-stable/contrib/ntp/sntp/ag-tpl/
DMdoc.pm204 for my $el (@l) {
205 local $_ = $el;
206 push @res, $el =~ /^(?:[,\.\{\}\(\):;\[\]\|])$/ || ref $el eq 'ARRAY' ?
207 $el : $f->();
363 my ($el, $expected) = @_;
365 ref $el eq 'ARRAY' and $el->[0] eq $expected;
368 ref $el eq 'ARRAY';
408 while (defined(my $el = shift @new)) {
409 if (_is_control($el, 'hardspace')) { $no_space = 1; $res .= ' ' }
410 elsif (_is_control($el, 'nospace')) { $no_space = 1; }
[all …]
/freebsd-9-stable/contrib/ntp/sntp/ag-tpl/0-old/
DMdoc.pm177 for my $el (@l) {
178 local $_ = $el;
179 push @res, $el =~ /^(?:[,\.\{\}\(\):;\[\]\|])$/ || ref $el eq 'ARRAY' ?
180 $el : $f->();
336 my ($el, $expected) = @_;
338 ref $el eq 'ARRAY' and $el->[0] eq $expected;
341 ref $el eq 'ARRAY';
381 while (defined(my $el = shift @new)) {
382 if (_is_control($el, 'hardspace')) { $no_space = 1; $res .= ' ' }
383 elsif (_is_control($el, 'nospace')) { $no_space = 1; }
[all …]
/freebsd-9-stable/contrib/gdb/gdb/
Dreggroups.c93 struct reggroup_el *el) in add_group() argument
96 el->group = group; in add_group()
97 el->next = NULL; in add_group()
98 (*groups->last) = el; in add_group()
99 groups->last = &el->next; in add_group()
128 struct reggroup_el *el; in reggroup_next() local
140 for (el = groups->first; el != NULL; el = el->next) in reggroup_next()
142 if (el->group == last) in reggroup_next()
144 if (el->next != NULL) in reggroup_next()
145 return el->next->group; in reggroup_next()

12345678910