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
This commit is contained in:
Bart Oldeman 2009-06-17 14:09:57 +00:00
parent 132b1fe579
commit a93b71a18b
2 changed files with 0 additions and 14 deletions

View File

@ -143,10 +143,6 @@ struct config Config = {
0, 0,
STACKSIZE STACKSIZE
/* COUNTRY= is initialized within DoConfig() */ /* 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 /* strategy for command.com is low by default */
, 0 /* default value for switches=/E:nnnn */ , 0 /* default value for switches=/E:nnnn */
}; };
@ -829,7 +825,6 @@ STATIC BOOL SkipLine(char *pLine)
switch (toupper(key & 0x00ff)) switch (toupper(key & 0x00ff))
{ {
case 'N': case 'N':
case 'n':
printf("N\n"); printf("N\n");
return TRUE; return TRUE;
@ -842,7 +837,6 @@ STATIC BOOL SkipLine(char *pLine)
case '\r': case '\r':
case '\n': case '\n':
case 'Y': case 'Y':
case 'y':
printf("Y\n"); printf("Y\n");
return FALSE; return FALSE;

View File

@ -41,14 +41,6 @@ struct config { /* Configuration variables */
BYTE cfgStacks; /* number of stacks */ BYTE cfgStacks; /* number of stacks */
BYTE cfgStacksHigh; BYTE cfgStacksHigh;
UWORD cfgStackSize; /* stacks size for each stack */ 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 */ UBYTE cfgP_0_startmode; /* load command.com high or not */
unsigned ebda2move; /* value for switches=/E:nnnn */ unsigned ebda2move; /* value for switches=/E:nnnn */
}; };