From a93b71a18bc551b5852a97c35600ce8881462d05 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Wed, 17 Jun 2009 14:09:57 +0000 Subject: [PATCH] Removed unused config variables and don't detect 'y' and 'n' if we're using toupper anyway. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1449 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/config.c | 6 ------ kernel/config.h | 8 -------- 2 files changed, 14 deletions(-) diff --git a/kernel/config.c b/kernel/config.c index 4f17167..50ff84c 100644 --- a/kernel/config.c +++ b/kernel/config.c @@ -143,10 +143,6 @@ struct config Config = { 0, STACKSIZE /* COUNTRY= is initialized within DoConfig() */ - , 0 /* country ID */ - , 0 /* codepage */ - , 0 /* amount required memory */ - , 0 /* pointer to loaded data */ , 0 /* strategy for command.com is low by default */ , 0 /* default value for switches=/E:nnnn */ }; @@ -829,7 +825,6 @@ STATIC BOOL SkipLine(char *pLine) switch (toupper(key & 0x00ff)) { case 'N': - case 'n': printf("N\n"); return TRUE; @@ -842,7 +837,6 @@ STATIC BOOL SkipLine(char *pLine) case '\r': case '\n': case 'Y': - case 'y': printf("Y\n"); return FALSE; diff --git a/kernel/config.h b/kernel/config.h index 50dff68..9dbd306 100644 --- a/kernel/config.h +++ b/kernel/config.h @@ -41,14 +41,6 @@ struct config { /* Configuration variables */ BYTE cfgStacks; /* number of stacks */ BYTE cfgStacksHigh; UWORD cfgStackSize; /* stacks size for each stack */ - /* COUNTRY= - * In Pass #1 these information is collected and in PostConfig() - * the NLS package is loaded into memory. -- 2000/06/11 ska - */ - WORD cfgCSYS_cntry; /* country ID to be loaded */ - UWORD cfgCSYS_cp; /* requested codepage; NLS_DEFAULT if default */ - WORD cfgCSYS_memory; /* # of bytes required for the NLS pkg; 0 if none */ - VOID FAR *cfgCSYS_data; /* where the loaded data is for PostConfig() */ UBYTE cfgP_0_startmode; /* load command.com high or not */ unsigned ebda2move; /* value for switches=/E:nnnn */ };