CID 39909, 39912, 39918, 39920, 39922.

This commit is contained in:
Renaud 2015-03-16 11:17:28 +08:00
parent 87350f4c16
commit d56b3af45a
1 changed files with 8 additions and 4 deletions

View File

@ -983,14 +983,14 @@ qprompt:
curwp->w_dotp = origline;
curwp->w_doto = origoff;
curwp->w_flag |= WFMOVE;
/* fallthrough */
case BELL: /* abort! and stay */
mloutstr( "Aborted!") ;
return FALSE ;
default: /* bitch and beep */
TTbeep();
/* fallthrough */
case '?': /* help me */
mloutstr(
"(Y)es, (N)o, (!)Do rest, (U)ndo last, (^G)Abort, (.)Abort back, (?)Help: ") ;
@ -1251,6 +1251,8 @@ static int mcstr(void)
pchr = *++patptr;
magical = TRUE;
}
/* fallthrough */
default:
litcase:mcptr->mc_type =
LITCHAR;
@ -1532,6 +1534,7 @@ static int cclmake(char **ppatptr, struct magic *mcptr)
*/
case MC_ESC:
pchr = *++patptr;
/* falltrhough */
default:
setbit(pchr, bmap);
break;
@ -1556,10 +1559,11 @@ static int cclmake(char **ppatptr, struct magic *mcptr)
static int biteq(int bc, char *cclmap)
{
#if PKCODE
bc = bc & 0xFF;
#endif
bc &= 0xFF ;
#else
if (bc >= HICHAR)
return FALSE;
#endif
return (*(cclmap + (bc >> 3)) & BIT(bc & 7)) ? TRUE : FALSE;
}