Added structure to nls.h; small main.c cleanup.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@624 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2003-06-20 20:06:24 +00:00
parent c5c7128a02
commit 2fdf99331d
2 changed files with 20 additions and 1 deletions

View File

@ -332,6 +332,26 @@
/* No codepage / country code given */
#define NLS_DEFAULT ((UWORD)-1)
struct CountrySpecificInfo {
short CountryID; /* = W1 W437 # Country ID & Codepage */
short CodePage;
short DateFormat; /* Date format: 0/1/2: U.S.A./Europe/Japan */
char CurrencyString[5]; /* '$' ,'EUR' */
char ThousandSeparator[2]; /* ',' # Thousand's separator */
char DecimalPoint[2]; /* '.' # Decimal point */
char DateSeparator[2]; /* '-' */
char TimeSeparator[2]; /* ':' */
char CurrencyFormat; /* = 0 # Currency format (bit array)
0Fh BYTE currency format
bit 2 = set if currency symbol replaces decimal point
bit 1 = number of spaces between value and currency symbol
bit 0 = 0 if currency symbol precedes value
1 if currency symbol follows value
*/
char CurrencyPrecision; /* = 2 # Currency precision */
char TimeFormat; /* = 0 # time format: 0/1: 12/24 houres */
};
/*
* This is the data in the exact order returned by DOS-65-01
*/

View File

@ -555,7 +555,6 @@ STATIC void InitIO(void)
/* Initialize driver chain */
setvec(0x29, int29_handler); /* Requires Fast Con Driver */
device = &LoL->nul_dev;
do {
init_device(device, NULL, NULL, lpTop);
device = device->dh_next;