MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ed_command

Function ed_command

extern/editline/src/common.c:903–919  ·  view source on GitHub ↗

ed_command(): * Editline extended command * [M-X] [:] */

Source from the content-addressed store, hash-verified

901 * [M-X] [:]
902 */
903protected el_action_t
904/*ARGSUSED*/
905ed_command(EditLine *el, Int c __attribute__((__unused__)))
906{
907 Char tmpbuf[EL_BUFSIZ];
908 int tmplen;
909
910 tmplen = c_gets(el, tmpbuf, STR("\n: "));
911 terminal__putc(el, '\n');
912
913 if (tmplen < 0 || (tmpbuf[tmplen] = 0, parse_line(el, tmpbuf)) == -1)
914 terminal_beep(el);
915
916 el->el_map.current = el->el_map.key;
917 re_clear_display(el);
918 return CC_REFRESH;
919}

Callers

nothing calls this directly

Calls 5

c_getsFunction · 0.85
terminal__putcFunction · 0.85
parse_lineFunction · 0.85
terminal_beepFunction · 0.85
re_clear_displayFunction · 0.85

Tested by

no test coverage detected