Ignore:
Timestamp:
Oct 2, 2000, 8:40:12 PM (25 years ago)
Author:
sandervl
Message:

fixes for FS macro changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/profile.cpp

    r4372 r4387  
    1 /* $Id: profile.cpp,v 1.26 2000-10-02 13:38:57 sandervl Exp $ */
     1/* $Id: profile.cpp,v 1.27 2000-10-02 18:39:35 sandervl Exp $ */
    22
    33/*
     
    7474    time_t           mtime;
    7575} PROFILE;
    76 
    77 
    78 /****************************************************************************
    79  * internal prototypes                                                      *
    80  ****************************************************************************/
    81 UINT ODIN_INTERNAL ODIN_GetPrivateProfileIntA(LPCSTR, LPCSTR, INT, LPCSTR);
    82 UINT ODIN_INTERNAL ODIN_GetPrivateProfileIntW(LPCWSTR, LPCWSTR, INT, LPCWSTR);
    83 INT  ODIN_INTERNAL ODIN_GetPrivateProfileStringW(LPCWSTR, LPCWSTR, LPCWSTR, LPWSTR, UINT, LPCWSTR);
    84 BOOL ODIN_INTERNAL ODIN_WritePrivateProfileStringA(LPCSTR, LPCSTR, LPCSTR, LPCSTR);
    85 BOOL ODIN_INTERNAL ODIN_WritePrivateProfileStringW(LPCWSTR, LPCWSTR, LPCWSTR, LPCWSTR);
    8676
    8777
     
    10871077              INT, def_val)
    10881078{
    1089     return ODIN_GetPrivateProfileIntA( section, entry, def_val, WINININAME );
     1079    return CALL_ODINFUNC(GetPrivateProfileIntA)( section, entry, def_val, WINININAME );
    10901080}
    10911081
     
    10991089{
    11001090    if (!wininiW) wininiW = HEAP_strdupAtoW( SystemHeap, 0, WINININAME );
    1101     return ODIN_GetPrivateProfileIntW( section, entry, def_val, wininiW );
     1091    return CALL_ODINFUNC(GetPrivateProfileIntW)( section, entry, def_val, wininiW );
    11021092}
    11031093
     
    11121102              UINT, len)
    11131103{
    1114     return ODIN_GetPrivateProfileStringA( section, entry, def_val,
     1104    return CALL_ODINFUNC(GetPrivateProfileStringA)( section, entry, def_val,
    11151105                 buffer, len, WINININAME );
    11161106}
     
    11271117{
    11281118    if (!wininiW) wininiW = HEAP_strdupAtoW( SystemHeap, 0, WINININAME );
    1129     return ODIN_GetPrivateProfileStringW( section, entry, def_val,
     1119    return CALL_ODINFUNC(GetPrivateProfileStringW)( section, entry, def_val,
    11301120                 buffer, len, wininiW );
    11311121}
     
    11391129              LPCSTR, string)
    11401130{
    1141     return ODIN_WritePrivateProfileStringA( section, entry, string, WINININAME );
     1131    return CALL_ODINFUNC(WritePrivateProfileStringA)( section, entry, string, WINININAME );
    11421132}
    11431133
     
    11511141{
    11521142    if (!wininiW) wininiW = HEAP_strdupAtoW( SystemHeap, 0, WINININAME );
    1153     return ODIN_WritePrivateProfileStringW( section, entry, string, wininiW );
     1143    return CALL_ODINFUNC(WritePrivateProfileStringW)( section, entry, string, wininiW );
    11541144}
    11551145
     
    11671157    long result;
    11681158
    1169     ODIN_GetPrivateProfileStringA( section, entry, "",
     1159    CALL_ODINFUNC(GetPrivateProfileStringA)( section, entry, "",
    11701160                                buffer, sizeof(buffer), filename );
    11711161    if (!buffer[0]) return (UINT)def_val;
     
    11871177    LPSTR entryA    = HEAP_strdupWtoA( GetProcessHeap(), 0, entry );
    11881178    LPSTR filenameA = HEAP_strdupWtoA( GetProcessHeap(), 0, filename );
    1189     UINT res = ODIN_GetPrivateProfileIntA(sectionA, entryA, def_val, filenameA);
     1179    UINT res = CALL_ODINFUNC(GetPrivateProfileIntA)(sectionA, entryA, def_val, filenameA);
    11901180    HeapFree( GetProcessHeap(), 0, sectionA );
    11911181    HeapFree( GetProcessHeap(), 0, filenameA );
     
    12401230    LPSTR def_valA  = HEAP_strdupWtoA( GetProcessHeap(), 0, def_val );
    12411231    LPSTR bufferA   = (LPSTR)HeapAlloc( GetProcessHeap(), 0, len );
    1242     INT ret = ODIN_GetPrivateProfileStringA( sectionA, entryA, def_valA,
     1232    INT ret = CALL_ODINFUNC(GetPrivateProfileStringA)( sectionA, entryA, def_valA,
    12431233                                            bufferA, len, filenameA );
    12441234    lstrcpynAtoW( buffer, bufferA, len );
     
    12871277    LPSTR filenameA = HEAP_strdupWtoA( GetProcessHeap(), 0, filename );
    12881278    LPSTR bufferA   = (LPSTR)HeapAlloc( GetProcessHeap(), 0, len );
    1289     INT ret = ODIN_GetPrivateProfileSectionA( sectionA, bufferA, len,
     1279    INT ret = CALL_ODINFUNC(GetPrivateProfileSectionA)( sectionA, bufferA, len,
    12901280                  filenameA );
    12911281    MultiByteToWideChar(CP_ACP,0,bufferA,ret,buffer,len);
     
    13041294              DWORD, len)
    13051295{
    1306     return ODIN_GetPrivateProfileSectionA( section, buffer, len, WINININAME );
     1296    return CALL_ODINFUNC(GetPrivateProfileSectionA)( section, buffer, len, WINININAME );
    13071297}
    13081298
     
    13161306{
    13171307    if (!wininiW) wininiW = HEAP_strdupAtoW( SystemHeap, 0, WINININAME );
    1318     return ODIN_GetPrivateProfileSectionW( section, buffer, len, wininiW );
     1308    return CALL_ODINFUNC(GetPrivateProfileSectionW)( section, buffer, len, wininiW );
    13191309}
    13201310
     
    13571347    LPSTR stringA   = HEAP_strdupWtoA( GetProcessHeap(), 0, string );
    13581348    LPSTR filenameA = HEAP_strdupWtoA( GetProcessHeap(), 0, filename );
    1359     BOOL res = ODIN_WritePrivateProfileStringA( sectionA, entryA,
     1349    BOOL res = CALL_ODINFUNC(WritePrivateProfileStringA)( sectionA, entryA,
    13601350                  stringA, filenameA );
    13611351    HeapFree( GetProcessHeap(), 0, sectionA );
     
    13911381    LPSTR stringA   = HEAP_strdupWtoA( GetProcessHeap(), 0, string );
    13921382    LPSTR filenameA = HEAP_strdupWtoA( GetProcessHeap(), 0, filename );
    1393     BOOL res = ODIN_WritePrivateProfileSectionA( sectionA, stringA, filenameA );
     1383    BOOL res = CALL_ODINFUNC(WritePrivateProfileSectionA)( sectionA, stringA, filenameA );
    13941384    HeapFree( GetProcessHeap(), 0, sectionA );
    13951385    HeapFree( GetProcessHeap(), 0, stringA );
     
    14051395              LPCSTR, keys_n_values)
    14061396{
    1407     return ODIN_WritePrivateProfileSectionA( section, keys_n_values, WINININAME);
     1397    return CALL_ODINFUNC(WritePrivateProfileSectionA)( section, keys_n_values, WINININAME);
    14081398}
    14091399
     
    14171407   if (!wininiW) wininiW = HEAP_strdupAtoW( SystemHeap, 0, WINININAME);
    14181408
    1419    return (ODIN_WritePrivateProfileSectionW (section,keys_n_values, wininiW));
     1409   return (CALL_ODINFUNC(WritePrivateProfileSectionW) (section,keys_n_values, wininiW));
    14201410}
    14211411
     
    14481438              LPCSTR, filename)
    14491439{
    1450  return (ODIN_GetPrivateProfileSectionNames16 (buffer,size,filename));
     1440 return (CALL_ODINFUNC(GetPrivateProfileSectionNames16) (buffer,size,filename));
    14511441}
    14521442
     
    14621452   LPSTR bufferA   = (LPSTR)HeapAlloc( GetProcessHeap(), 0, size);
    14631453
    1464    INT ret = ODIN_GetPrivateProfileSectionNames16 (bufferA, size, filenameA);
     1454   INT ret = CALL_ODINFUNC(GetPrivateProfileSectionNames16) (bufferA, size, filenameA);
    14651455   lstrcpynAtoW( buffer, bufferA, size);
    14661456   HeapFree( GetProcessHeap(), 0, bufferA);
     
    15111501    LPSTR bufferA   = (LPSTR)HeapAlloc( GetProcessHeap(), 0, len );
    15121502
    1513     INT ret = ODIN_GetPrivateProfileStructA( sectionA, keyA, bufferA,
     1503    INT ret = CALL_ODINFUNC(GetPrivateProfileStructA)( sectionA, keyA, bufferA,
    15141504               len, filenameA );
    15151505    lstrcpynAtoW( (LPWSTR)buffer, bufferA, len );
     
    15361526
    15371527    if (!section && !key && !buf)  /* flush the cache */
    1538         return ODIN_WritePrivateProfileStringA( NULL, NULL, NULL, filename );
     1528        return CALL_ODINFUNC(WritePrivateProfileStringA)( NULL, NULL, NULL, filename );
    15391529
    15401530    EnterCriticalSection( &PROFILE_CritSect );
     
    15611551    LPSTR keyA      = HEAP_strdupWtoA( GetProcessHeap(), 0, key);
    15621552    LPSTR filenameA = HEAP_strdupWtoA( GetProcessHeap(), 0, filename );
    1563     INT ret = ODIN_WritePrivateProfileStructA( sectionA, keyA, buf, bufsize,
     1553    INT ret = CALL_ODINFUNC(WritePrivateProfileStructA)( sectionA, keyA, buf, bufsize,
    15641554                 filenameA );
    15651555    HeapFree( GetProcessHeap(), 0, sectionA );
Note: See TracChangeset for help on using the changeset viewer.