Home
last modified time | relevance | path

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

12345678910>>...35

/netbsd-src/lib/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 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 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 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) 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 in re_nextline()
128 re_addc(EditLine * el,wint_t c) re_addc() argument
163 re_putliteral(EditLine * el,const wchar_t * begin,const wchar_t * end) re_putliteral() argument
193 re_putc(EditLine * el,wint_t c,int shift) re_putc() argument
231 re_refresh(EditLine * el) re_refresh() argument
382 re_goto_bottom(EditLine * el) re_goto_bottom() argument
398 re_insert(EditLine * el,wchar_t * d,int dat,int dlen,wchar_t * s,int num) re_insert() argument
449 re_delete(EditLine * el,wchar_t * d,int dat,int dlen,int num) re_delete() argument
497 re_clear_eol(EditLine * el,int fx,int sx,int diff) re_clear_eol() argument
541 re_update_line(EditLine * el,wchar_t * old,wchar_t * new,int i) re_update_line() argument
1032 re_refresh_cursor(EditLine * el) re_refresh_cursor() argument
1095 re_fastputc(EditLine * el,wint_t c) re_fastputc() argument
1153 re_fastaddc(EditLine * el) re_fastaddc() argument
1199 re_clear_display(EditLine * el) re_clear_display() argument
1215 re_clear_lines(EditLine * el) re_clear_lines() argument
[all...]
H A Dread.c55 #include "el.h"
84 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 in read_end()
209 el_wpush(EditLine * el,const wchar_t * str) el_wpush() argument
230 read_getcmd(EditLine * el,el_action_t * cmdnum,wchar_t * ch) read_getcmd() argument
280 read_char(EditLine * el,wchar_t * cp) read_char() argument
381 el_wgetc(EditLine * el,wchar_t * cp) el_wgetc() argument
423 read_prepare(EditLine * el) read_prepare() argument
444 read_finish(EditLine * el) read_finish() argument
453 noedit_wgets(EditLine * el,int * nread) noedit_wgets() argument
477 el_wgets(EditLine * el,int * nread) el_wgets() argument
[all...]
H A Del.c1 /* $NetBSD: el.c,v 1.102 2025/01/03 00:40:08 rillig Exp $ */
38 static char sccsid[] = "@(#)el.c 8.2 (Berkeley) 1/3/94";
40 __RCSID("$NetBSD: el.c,v 1.102 2025/01/03 00:40:08 rillig Exp $");
45 * el.c: EditLine interface functions
56 #include "el.h"
74 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 in el_init_internal()
131 el_end(EditLine * el) el_end() argument
167 el_reset(EditLine * el) el_reset() argument
179 el_wset(EditLine * el,int op,...) el_wset() argument
400 el_wget(EditLine * el,int op,...) el_wget() argument
514 el_wline(EditLine * el) el_wline() argument
525 el_source(EditLine * el,const char * fname) el_source() argument
604 el_resize(EditLine * el) el_resize() argument
625 el_beep(EditLine * el) el_beep() argument
637 el_editmode(EditLine * el,int argc,const wchar_t ** argv) el_editmode() argument
[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 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 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.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) 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 in keymacro_init()
121 keymacro_end(EditLine * el) keymacro_end() argument
134 keymacro_map_cmd(EditLine * el,int cmd) keymacro_map_cmd() argument
146 keymacro_map_str(EditLine * el,wchar_t * str) keymacro_map_str() argument
160 keymacro_reset(EditLine * el) keymacro_reset() argument
179 keymacro_get(EditLine * el,wchar_t * ch,keymacro_value_t * val) keymacro_get() argument
193 keymacro_add(EditLine * el,const wchar_t * key,keymacro_value_t * val,int ntype) keymacro_add() argument
222 keymacro_clear(EditLine * el,el_action_t * map,const wchar_t * in) keymacro_clear() argument
240 keymacro_delete(EditLine * el,const wchar_t * key) keymacro_delete() argument
261 keymacro_print(EditLine * el,const wchar_t * key) keymacro_print() argument
282 node_trav(EditLine * el,keymacro_node_t * ptr,wchar_t * ch,keymacro_value_t * val) node_trav() argument
317 node__try(EditLine * el,keymacro_node_t * ptr,const wchar_t * str,keymacro_value_t * val,int ntype) node__try() argument
378 node__delete(EditLine * el,keymacro_node_t ** inptr,const wchar_t * str) node__delete() argument
426 node__put(EditLine * el,keymacro_node_t * ptr) node__put() argument
487 node_lookup(EditLine * el,const wchar_t * str,keymacro_node_t * ptr,size_t cnt) node_lookup() argument
540 node_enum(EditLine * el,keymacro_node_t * ptr,size_t cnt) node_enum() argument
583 keymacro_kprint(EditLine * el,const wchar_t * key,keymacro_value_t * val,int ntype) keymacro_kprint() argument
[all...]
H A Dmap.c51 #include "el.h"
901 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 in map_init()
953 map_end(EditLine * el) map_end() argument
974 map_init_nls(EditLine * el) map_init_nls() argument
990 map_init_meta(EditLine * el) map_init_meta() argument
1031 map_init_vi(EditLine * el) map_init_vi() argument
1061 map_init_emacs(EditLine * el) map_init_emacs() argument
1095 map_set_editor(EditLine * el,wchar_t * editor) map_set_editor() argument
1114 map_get_editor(EditLine * el,const wchar_t ** editor) map_get_editor() argument
1135 map_print_key(EditLine * el,el_action_t * map,const wchar_t * in) map_print_key() argument
1158 map_print_some_keys(EditLine * el,el_action_t * map,wint_t first,wint_t last) map_print_some_keys() argument
1222 map_print_all_keys(EditLine * el) map_print_all_keys() argument
1257 map_bind(EditLine * el,int argc,const wchar_t ** argv) map_bind() argument
1403 map_addfunc(EditLine * el,const wchar_t * name,const wchar_t * help,el_func_t func) map_addfunc() argument
[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 …]
/netbsd-src/tests/lib/libcurses/check_files/
H A Dcolor_blank_draw.chk2 el
3 el
4 el
5 el
6 el
7 el
8 el
9 el
10 el
11 el
[all …]
H A Dclear5.chk2 el
3 el
4 el
5 el
6 el
7 el
8 el
9 el
10 el
11 el
[all …]
H A Dredrawwin2.chk2 el
4 el
5 el
6 el
7 el
8 el
9 el
10 el
11 el
12 el
[all …]
/netbsd-src/external/mit/isl/dist/
H A Disl_vec.c30 return isl_seq_get_hash(vec->el, vec->size); in isl_vec_get_hash()
49 vec->el = vec->block.data; in isl_vec_alloc()
74 vec->el = vec->block.data; in isl_vec_extend()
112 isl_int_set(vec->el[i + extra], vec->el[i]); in isl_vec_expand()
118 isl_int_swap(vec->el[pos + i], in isl_vec_expand()
119 vec->el[pos + j]); in isl_vec_expand()
122 isl_int_set_si(vec->el[pos + i], 0); in isl_vec_expand()
138 isl_seq_clr(vec->el, size); in isl_vec_zero()
160 isl_seq_clr(vec->el + size - extra, extra); in isl_vec_zero_extend()
188 isl_seq_cpy(vec1->el + vec1->size - vec2->size, vec2->el, vec2->size); in isl_vec_concat()
[all …]
H A Disl_multi_no_domain_templ.c28 static __isl_give EL *FN(EL,drop_dims)(__isl_take EL *el, in FN()
31 return el; in FN()
41 static __isl_give isl_space *FN(EL,get_space)(__isl_keep EL *el) in FN()
43 if (!el) in FN()
46 return isl_space_params_alloc(FN(EL,get_ctx)(el), 0); in FN()
54 static __isl_give EL *FN(EL,reset_domain_space)(__isl_take EL *el, in FN()
58 return FN(EL,free)(el); in FN()
60 return el; in FN()
70 static __isl_give EL *FN(EL,align_params)(__isl_take EL *el, in FN()
74 return FN(EL,free)(el); in FN()
[all …]
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpf_var.c113 npf_element_t *el; in npfvar_add_element() local
115 el = ecalloc(1, sizeof(*el)); in npfvar_add_element()
116 el->e_data = ecalloc(1, len); in npfvar_add_element()
117 el->e_type = type; in npfvar_add_element()
118 memcpy(el->e_data, data, len); in npfvar_add_element()
122 vp->v_elements = el; in npfvar_add_element()
124 vp->v_last->e_next = el; in npfvar_add_element()
126 vp->v_last = el; in npfvar_add_element()
158 npfvar_free_elements(npf_element_t *el) in npfvar_free_elements() argument
160 if (el == NULL) in npfvar_free_elements()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/asn1/
H A Dtemplate.c42 #define el(name, type) { \ macro
58 el(integer, int),
59 el(heim_integer, heim_integer),
60 el(integer, int),
61 el(integer64, int64_t),
62 el(unsigned, unsigned),
63 el(unsigned64, uint64_t),
64 el(general_string, heim_general_string),
65 el(octet_string, heim_octet_string),
67 el(ia5_string, heim_ia5_string),
[all …]
H A Dfuzzer.c307 #define el(name, type) { \ macro
323 el(integer, int),
324 el(integer64, int64_t),
325 el(heim_integer, heim_integer),
326 el(integer, int),
327 el(unsigned, unsigned),
328 el(uninteger64, uint64_t),
330 el(octet_string, heim_octet_string),
332 el(ia5_string, heim_ia5_string),
333 el(bmp_string, heim_bmp_string),
[all …]
/netbsd-src/sys/arch/evbmips/conf/
H A DREADME.evbmips7 ADM5210 2007/03/20 evbmips-el Infineon ADM5120 (MIPS32 4Kc) based boards and routers,
9 ADM5210-NB 2007/03/20 evbmips-el ADM5120 netboot kernel.
10 ADM5210-USB 2007/03/20 evbmips-el ADM5120 netboot kernel with USB support.
11 AP30 2006/06/06 evbmips-el,eb Atheros AP30 development board (AR5312).
13 CPMBR1400 2011/07/28 evbmips-el CradlePoint MBR1400 Router (Ralink RT3883 MIPS74K).
15 DBAU1500 2006/02/08 evbmips-el,eb AMD Alchemy DBAu1500 evaluation board.
16 DBAU1550 2006/02/08 evbmips-el,eb AMD Alchemy DBAu1550 evaluation board.
17 GDIUM 2009/08/06 evbmips-el EMTEC Gdium netbook 32-bit kernel.
18 GDIUM64 2011/08/24 evbmips(n)64-el EMTEC Gdium netbook 64-bit kernel.
19 LINKITSMART7688 2016/10/05 evbmips-el Seeed Studio LinkIt Smart 7688 compact controller board (Med…
[all …]

12345678910>>...35