Simplify head_meanwhile()
No functional change.
This commit is contained in:
parent
bcff368909
commit
75619c3732
1 changed files with 4 additions and 12 deletions
|
@ -137,18 +137,10 @@ head_printscoop(struct histstr (*hist)[MAXNOC], natid ano, natid vno)
|
||||||
static char *
|
static char *
|
||||||
head_meanwhile(int val)
|
head_meanwhile(int val)
|
||||||
{
|
{
|
||||||
switch (val & 03) {
|
static char *meanwhile[4] = {
|
||||||
case 0:
|
"Meanwhile", "On the other hand", "At the same time", "Although"
|
||||||
return "Meanwhile";
|
};
|
||||||
case 1:
|
return meanwhile[val % 4];
|
||||||
return "On the other hand";
|
|
||||||
case 2:
|
|
||||||
return "At the same time";
|
|
||||||
case 3:
|
|
||||||
return "Although";
|
|
||||||
}
|
|
||||||
/*NOTREACHED*/
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue