Ignore:
Timestamp:
Oct 13, 2001, 7:57:58 PM (24 years ago)
Author:
umoeller
Message:

Lots of updates from the last week for conditional compiles and other stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/prfh.c

    r71 r108  
    4545#include "setup.h"                      // code generation and debugging options
    4646
     47#define INCLUDE_PRFH_PRIVATE
    4748#include "helpers\prfh.h"
    4849
     
    237238                          szTemp, sizeof(szTemp)-1);
    238239    return (szTemp[0]);
    239 }
    240 
    241 /*
    242  *@@ prfhQueryCountrySettings:
    243  *      this returns the most frequently used country settings
    244  *      all at once into a COUNTRYSETTINGS structure (prfh.h).
    245  *      This data corresponds to the user settings in the
    246  *      WPS "Country" object (which writes the data in "PM_National"
    247  *      in OS2.INI).
    248  *
    249  *      In case a key cannot be found, the following (English)
    250  *      default values are set:
    251  *      --  ulDateFormat = 0 (English date format, mm.dd.yyyy);
    252  *      --  ulTimeFormat = 0 (12-hour clock);
    253  *      --  cDateSep = '/' (date separator);
    254  *      --  cTimeSep = ':' (time separator);
    255  *      --  cDecimal = '.' (decimal separator).
    256  *      --  cThousands = ',' (thousands separator).
    257  *
    258  *@@added V0.9.0 [umoeller]
    259  *@@changed V0.9.7 (2000-12-02) [umoeller]: added cDecimal
    260  */
    261 
    262 VOID prfhQueryCountrySettings(PCOUNTRYSETTINGS pcs)
    263 {
    264     if (pcs)
    265     {
    266         const char *pcszApp = "PM_National";
    267         pcs->ulDateFormat = PrfQueryProfileInt(HINI_USER, (PSZ)pcszApp, "iDate", 0);
    268         pcs->ulTimeFormat = PrfQueryProfileInt(HINI_USER, (PSZ)pcszApp, "iTime", 0);
    269         pcs->cDateSep = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sDate", '/');
    270         pcs->cTimeSep = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sTime", ':');
    271         pcs->cDecimal = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sDecimal", '.');
    272         pcs->cThousands = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sThousand", ',');
    273     }
    274240}
    275241
Note: See TracChangeset for help on using the changeset viewer.