Changeset 25401

Show
Ignore:
Timestamp:
05/09/08 14:56:25 (1 week ago)
Author:
jackburton
Message:
added the g prefix to some global variable
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/apps/terminal/TermParse.cpp

    r25392 r25401  
    2828 
    2929 
    30 extern int utf8_groundtable[];                /* UTF8 Ground table */ 
    31 extern int cs96_groundtable[];                /* CS96 Ground table */ 
    32 extern int iso8859_groundtable[];     /* ISO8859 & EUC Ground table */ 
    33 extern int sjis_groundtable[];                /* Shift-JIS Ground table */ 
    34  
    35 extern int esctable[];                /* ESC */ 
    36 extern int csitable[];                /* ESC [ */ 
    37 extern int dectable[];                /* ESC [ ? */ 
    38 extern int scrtable[];                /* ESC # */ 
    39 extern int igntable[];                /* ignore table */ 
    40 extern int iestable[];                /* ignore ESC table */ 
    41 extern int eigtable[];                /* ESC ignore table */ 
    42 extern int mbcstable[];               /* ESC $ */ 
     30extern int gUTF8GroundTable[];                /* UTF8 Ground table */ 
     31extern int gCS96GroundTable[];                /* CS96 Ground table */ 
     32extern int gISO8859GroundTable[];     /* ISO8859 & EUC Ground table */ 
     33extern int gSJISGroundTable[];                /* Shift-JIS Ground table */ 
     34 
     35extern int gEscTable[];               /* ESC */ 
     36extern int gCsiTable[];               /* ESC [ */ 
     37extern int gDecTable[];               /* ESC [ ? */ 
     38extern int gScrTable[];               /* ESC # */ 
     39extern int gIgnoreTable[];            /* ignore table */ 
     40extern int gIesTable[];               /* ignore ESC table */ 
     41extern int gEscIgnoreTable[];         /* ESC ignore table */ 
     42extern int gMbcsTable[];              /* ESC $ */ 
    4343 
    4444 
     
    303303 
    304304        /* default coding system is UTF8 */ 
    305         int *groundtable = utf8_groundtable; 
     305        int *groundtable = gUTF8GroundTable; 
    306306        int *parsestate = groundtable; 
    307307 
     
    326326                                case B_ISO9_CONVERSION: 
    327327                                case B_ISO10_CONVERSION: 
    328                                         groundtable = iso8859_groundtable; 
     328                                        groundtable = gISO8859GroundTable; 
    329329                                        break; 
    330330                                case B_SJIS_CONVERSION: 
    331                                         groundtable = sjis_groundtable; 
     331                                        groundtable = gSJISGroundTable; 
    332332                                        break; 
    333333                                case B_EUC_CONVERSION: 
    334334                                case B_EUC_KR_CONVERSION: 
    335335                                case B_JIS_CONVERSION: 
    336                                         groundtable = iso8859_groundtable; 
     336                                        groundtable = gISO8859GroundTable; 
    337337                                        break; 
    338338                                case M_UTF8: 
    339339                                default: 
    340                                         groundtable = utf8_groundtable; 
     340                                        groundtable = gUTF8GroundTable; 
    341341                                        break; 
    342342                        } 
     
    453453                        case CASE_MBCS: 
    454454                                /* ESC $ */ 
    455                                 parsestate = mbcstable; 
     455                                parsestate = gMbcsTable; 
    456456                                break; 
    457457 
    458458                        case CASE_GSETS: 
    459459                                /* ESC $ ? */ 
    460                                 parsestate = cs96_groundtable; 
     460                                parsestate = gCS96GroundTable; 
    461461                                cs96 = 1; 
    462462                                break; 
     
    491491                        case CASE_ESC: 
    492492                                /* escape */ 
    493                                 parsestate = esctable; 
     493                                parsestate = gEscTable; 
    494494                                break; 
    495495 
    496496                        case CASE_IGNORE_STATE: 
    497497                                /* Ies: ignore anything else */ 
    498                                 parsestate = igntable; 
     498                                parsestate = gIgnoreTable; 
    499499                                break; 
    500500 
    501501                        case CASE_IGNORE_ESC: 
    502502                                /* Ign: escape */ 
    503                                 parsestate = iestable; 
     503                                parsestate = gIesTable; 
    504504                                break; 
    505505 
     
    516516                        case CASE_SCR_STATE:    // ESC # 
    517517                                /* enter scr state */ 
    518                                 parsestate = scrtable; 
     518                                parsestate = gScrTable; 
    519519                                break; 
    520520 
    521521                        case CASE_ESC_IGNORE: 
    522522                                /* unknown escape sequence */ 
    523                                 parsestate = eigtable; 
     523                                parsestate = gEscIgnoreTable; 
    524524                                break; 
    525525 
     
    539539                        case CASE_DEC_STATE: 
    540540                                /* enter dec mode */ 
    541                                 parsestate = dectable; 
     541                                parsestate = gDecTable; 
    542542                                break; 
    543543 
     
    811811                                        nparam = 1; 
    812812                                        param[0] = DEFAULT; 
    813                                         parsestate = csitable; 
     813                                        parsestate = gCsiTable; 
    814814                                        break; 
    815815 
  • haiku/trunk/src/apps/terminal/VTPrsTbl.c

    r25392 r25401  
    3434#define USE_ISO2022 
    3535 
    36 int utf8_groundtable[] =      /* UTF8 coding ground table */ 
     36int gUTF8GroundTable[] =      /* UTF8 coding ground table */ 
    3737{ 
    3838/*      NUL             SOH             STX             ETX     */ 
     
    358358}; 
    359359 
    360 int cs96_groundtable[] =      /* charset 96 table */ 
     360int gCS96GroundTable[] =      /* charset 96 table */ 
    361361{ 
    362362/*      NUL             SOH             STX             ETX     */ 
     
    682682}; 
    683683 
    684 int iso8859_groundtable[] = 
     684int gISO8859GroundTable[] = 
    685685{ 
    686686/*      NUL             SOH             STX             ETX     */ 
     
    10061006}; 
    10071007 
    1008 int csitable[] =              /* ESC [ */ 
     1008int gCsiTable[] =             /* ESC [ */ 
    10091009{ 
    10101010/*      NUL             SOH             STX             ETX     */ 
     
    13301330}; 
    13311331 
    1332 int dectable[] =              /* ESC [ ? */ 
     1332int gDecTable[] =             /* ESC [ ? */ 
    13331333{ 
    13341334/*      NUL             SOH             STX             ETX     */ 
     
    16711671}; 
    16721672 
    1673 int eigtable[] =              /* CASE_ESC_IGNORE */ 
     1673int gEscIgnoreTable[] =               /* CASE_ESC_IGNORE */ 
    16741674{ 
    16751675/*      NUL             SOH             STX             ETX     */ 
     
    19961996}; 
    19971997 
    1998 int esctable[] =              /* ESC */ 
     1998int gEscTable[] =             /* ESC */ 
    19991999{ 
    20002000/*      NUL             SOH             STX             ETX     */ 
     
    23382338}; 
    23392339 
    2340 int iestable[] =              /* CASE_IGNORE_ESC */ 
     2340int gIesTable[] =             /* CASE_IGNORE_ESC */ 
    23412341{ 
    23422342/*      NUL             SOH             STX             ETX     */ 
     
    26622662}; 
    26632663 
    2664 int igntable[] =              /* CASE_IGNORE_STATE */ 
     2664int gIgnoreTable[] =          /* CASE_IGNORE_STATE */ 
    26652665{ 
    26662666/*      NUL             SOH             STX             ETX     */ 
     
    29862986}; 
    29872987 
    2988 int scrtable[] =              /* ESC # */ 
     2988int gScrTable[] =             /* ESC # */ 
    29892989{ 
    29902990/*      NUL             SOH             STX             ETX     */ 
     
    33103310}; 
    33113311 
    3312 int scstable[] =              /* ESC ( etc. */ 
     3312int gScsTable[] =             /* ESC ( etc. */ 
    33133313{ 
    33143314/*      NUL             SOH             STX             ETX     */ 
     
    37383738 
    37393739#ifdef USE_MBCS 
    3740 int mbcstable[] = { 
     3740int gMbcsTable[] = { 
    37413741/*      NUL             SOH             STX             ETX     */ 
    37423742CASE_IGNORE, 
     
    40614061}; 
    40624062 
    4063 int smbcstable[] = { 
     4063int gSmbcsTable[] = { 
    40644064/*      NUL             SOH             STX             ETX     */ 
    40654065CASE_IGNORE, 
     
    43864386#endif 
    43874387 
    4388 int sjis_groundtable[] =      /* Shift-JIS ground table. */ 
     4388int gSJISGroundTable[] =      /* Shift-JIS ground table. */ 
    43894389{ 
    43904390/*      NUL             SOH             STX             ETX     */