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

Function tty__getcharindex

extern/editline/src/tty.c:608–711  ·  view source on GitHub ↗

tty__getspeed(): * Return the index of the asked char in the c_cc array */

Source from the content-addressed store, hash-verified

606 * Return the index of the asked char in the c_cc array
607 */
608private int
609tty__getcharindex(int i)
610{
611 switch (i) {
612#ifdef VINTR
613 case C_INTR:
614 return VINTR;
615#endif /* VINTR */
616#ifdef VQUIT
617 case C_QUIT:
618 return VQUIT;
619#endif /* VQUIT */
620#ifdef VERASE
621 case C_ERASE:
622 return VERASE;
623#endif /* VERASE */
624#ifdef VKILL
625 case C_KILL:
626 return VKILL;
627#endif /* VKILL */
628#ifdef VEOF
629 case C_EOF:
630 return VEOF;
631#endif /* VEOF */
632#ifdef VEOL
633 case C_EOL:
634 return VEOL;
635#endif /* VEOL */
636#ifdef VEOL2
637 case C_EOL2:
638 return VEOL2;
639#endif /* VEOL2 */
640#ifdef VSWTCH
641 case C_SWTCH:
642 return VSWTCH;
643#endif /* VSWTCH */
644#ifdef VDSWTCH
645 case C_DSWTCH:
646 return VDSWTCH;
647#endif /* VDSWTCH */
648#ifdef VERASE2
649 case C_ERASE2:
650 return VERASE2;
651#endif /* VERASE2 */
652#ifdef VSTART
653 case C_START:
654 return VSTART;
655#endif /* VSTART */
656#ifdef VSTOP
657 case C_STOP:
658 return VSTOP;
659#endif /* VSTOP */
660#ifdef VWERASE
661 case C_WERASE:
662 return VWERASE;
663#endif /* VWERASE */
664#ifdef VSUSP
665 case C_SUSP:

Callers 1

tty_sttyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected