changeset 23928:c6becdb359d7

remove GNUism (case range)
author ivo
date Mon, 30 Jul 2007 18:48:03 +0000
parents 91ccac9cc015
children 73ff1aa448de
files stream/tvi_vbi.c
diffstat 1 files changed, 4 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_vbi.c	Mon Jul 30 18:08:26 2007 +0000
+++ b/stream/tvi_vbi.c	Mon Jul 30 18:48:03 2007 +0000
@@ -645,21 +645,14 @@
         for(j=0;j<VBI_COLUMNS;j++)
         {
              u=dp[i*VBI_COLUMNS+j].unicode;
-              switch(dp[i*VBI_COLUMNS+j].fg){
-              case 0 ... 7:
+              if(dp[i*VBI_COLUMNS+j].fg <= 7)
                 c1=30+dp[i*VBI_COLUMNS+j].fg;
-                break;
-              default:
+              else
                 c1=38;
-                  break;
-              }
-              switch(dp[i*VBI_COLUMNS+j].bg){
-              case 0 ... 7:
+              if(dp[i*VBI_COLUMNS+j].bg <= 7)
                   b1=40+dp[i*VBI_COLUMNS+j].bg;
-                break;
-              default:
+              else
                 b1=40;
-              }
             if (b1!=bkg  && colored){
                 fprintf(f,"\033[%dm",b1);
                 bkg=b1;