Changeset 14 for trunk/src/helpers/prfh.c
- Timestamp:
- Dec 9, 2000, 8:19:42 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/prfh.c
r13 r14 19 19 /* 20 20 * Copyright (C) 1997-2000 Ulrich Mller. 21 * This file is part of the XWorkplacesource package.22 * XWorkplaceis free software; you can redistribute it and/or modify21 * This file is part of the "XWorkplace helpers" source package. 22 * This is free software; you can redistribute it and/or modify 23 23 * it under the terms of the GNU General Public License as published 24 24 * by the Free Software Foundation, in version 2 as it comes in the … … 35 35 // as unsigned char 36 36 37 #define INCL_DOS38 37 #define INCL_DOSERRORS 39 #define INCL_WIN 38 #define INCL_WINSHELLDATA 40 39 #include <os2.h> 41 40 … … 170 169 171 170 PSZ prfhQueryProfileData(HINI hIni, // in: INI handle (can be HINI_USER or HINI_SYSTEM) 172 PSZ pszApp,// in: application to query173 PSZ pszKey,// in: key to query174 PULONG pcbBuf) // out: size of the returned buffer171 PSZ pszApp, // in: application to query 172 PSZ pszKey, // in: key to query 173 PULONG pcbBuf) // out: size of the returned buffer; ptr can be NULL 175 174 { 176 175 PSZ pData = NULL; … … 238 237 * -- cDateSep = '/' (date separator); 239 238 * -- cTimeSep = ':' (time separator); 239 * -- cDecimal = '.' (decimal separator). 240 240 * -- cThousands = ',' (thousands separator). 241 241 * 242 242 *@@added V0.9.0 [umoeller] 243 *@@changed V0.9.7 (2000-12-02) [umoeller]: added cDecimal 243 244 */ 244 245 … … 247 248 if (pcs) 248 249 { 249 pcs->ulDateFormat = PrfQueryProfileInt(HINI_USER, "PM_National", "iDate", 0); 250 pcs->ulTimeFormat = PrfQueryProfileInt(HINI_USER, "PM_National", "iTime", 0); 251 pcs->cDateSep = prfhQueryProfileChar(HINI_USER, "PM_National", "sDate", '/'); 252 pcs->cTimeSep = prfhQueryProfileChar(HINI_USER, "PM_National", "sTime", ':'); 253 pcs->cThousands = prfhQueryProfileChar(HINI_USER, "PM_National", "sThousand", ','); 250 const char *pcszApp = "PM_National"; 251 pcs->ulDateFormat = PrfQueryProfileInt(HINI_USER, (PSZ)pcszApp, "iDate", 0); 252 pcs->ulTimeFormat = PrfQueryProfileInt(HINI_USER, (PSZ)pcszApp, "iTime", 0); 253 pcs->cDateSep = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sDate", '/'); 254 pcs->cTimeSep = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sTime", ':'); 255 pcs->cDecimal = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sDecimal", '.'); 256 pcs->cThousands = prfhQueryProfileChar(HINI_USER, (PSZ)pcszApp, "sThousand", ','); 254 257 } 255 258 }
Note:
See TracChangeset
for help on using the changeset viewer.