From 2fdf99331d62b95df7012940872ac354a87ef72d Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Fri, 20 Jun 2003 20:06:24 +0000 Subject: [PATCH] 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 --- hdr/nls.h | 20 ++++++++++++++++++++ kernel/main.c | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/hdr/nls.h b/hdr/nls.h index cf9c849..a4a7c09 100644 --- a/hdr/nls.h +++ b/hdr/nls.h @@ -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 */ diff --git a/kernel/main.c b/kernel/main.c index a302947..7c87242 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -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;