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

Function ed_argument_digit

extern/editline/src/common.c:406–423  ·  view source on GitHub ↗

ed_argument_digit(): * Digit that starts argument * For ESC-n */

Source from the content-addressed store, hash-verified

404 * For ESC-n
405 */
406protected el_action_t
407ed_argument_digit(EditLine *el, Int c)
408{
409
410 if (!Isdigit(c))
411 return CC_ERROR;
412
413 if (el->el_state.doingarg) {
414 if (el->el_state.argument > 1000000)
415 return CC_ERROR;
416 el->el_state.argument = (el->el_state.argument * 10) +
417 (c - '0');
418 } else { /* else starting an argument */
419 el->el_state.argument = c - '0';
420 el->el_state.doingarg = 1;
421 }
422 return CC_ARGHACK;
423}
424
425
426/* ed_unassigned():

Callers 1

vi_zeroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected