Changeset 21790 for branches/gcc-kmk/src


Ignore:
Timestamp:
Nov 3, 2011, 7:45:31 PM (14 years ago)
Author:
dmik
Message:

Extern "C".

Mostly, to fix the GCC bug with stdcall not suppressing C++ mangling.

Location:
branches/gcc-kmk/src/kernel32
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/dbglog.cpp

    r21722 r21790  
    795795              "int 3"
    796796#endif
     797extern "C"
    797798void WIN32API DebugBreak()
    798799{
  • branches/gcc-kmk/src/kernel32/environ.cpp

    r21730 r21790  
    8585  }
    8686}
     87
     88extern "C" {
     89
    8790//******************************************************************************
    8891//******************************************************************************
     
    330333  return ret;
    331334}
     335
     336} // extern "C"
     337
    332338//******************************************************************************
    333339// Create a new process environment block based on input from the application
  • branches/gcc-kmk/src/kernel32/heap.cpp

    r21755 r21790  
    264264
    265265#pragma pack()
     266
     267extern "C" {
    266268
    267269/***********************************************************************
     
    9981000}
    9991001
    1000 extern "C" {
    1001 
    10021002/*************************************************************************
    10031003 * EncodePointer
  • branches/gcc-kmk/src/kernel32/hmdevio.cpp

    r21720 r21790  
    464464                                        lpOverlapped, lpcbTransfer, fWait, (LPVOID)pHMHandleData->dwUserData);
    465465}
     466
     467extern "C" {
     468
    466469//******************************************************************************
    467470//******************************************************************************
     
    507510//******************************************************************************
    508511//******************************************************************************
     512
     513} // extern "C"
     514
  • branches/gcc-kmk/src/kernel32/kernel32.def

    r21781 r21790  
    11731173
    11741174;code memory allocation
    1175     codeHeap                                                      @1272 NONAME
     1175    codeHeap                   = _codeHeap                        @1272 NONAME
    11761176
    11771177;fast file API's
     
    11881188    InitializeKernel32                                            @1302 NONAME
    11891189
    1190     IsExeStarted__Fv                                              @2001 NONAME
     1190    IsExeStarted               = _IsExeStarted                    @2001 NONAME
    11911191    CheckCurFS                                                    @2002 NONAME
    11921192    _SupportsCPUID                                                @2003 NONAME
     
    12221222    OSLibDosDevIOCtl                                              @2026 NONAME
    12231223
    1224     OSLibImSetMsgQueueProperty                                    @2029 NONAME
    1225 
    1226     fIsDBCSEnv                                                    @2103 NONAME
     1224    OSLibImSetMsgQueueProperty = _OSLibImSetMsgQueueProperty      @2029 NONAME
     1225
     1226    fIsDBCSEnv                 = _fIsDBCSEnv                      @2103 NONAME
    12271227
    12281228    vsnprintfW                            @2030 NONAME
  • branches/gcc-kmk/src/kernel32/kernel32dbg.def

    r21781 r21790  
    11741174
    11751175;code memory allocation
    1176     codeHeap                                                      @1272 NONAME
     1176    codeHeap                   = _codeHeap                        @1272 NONAME
    11771177
    11781178;fast file API's
     
    11891189    InitializeKernel32                                            @1302 NONAME
    11901190
    1191     IsExeStarted__Fv                                              @2001 NONAME
     1191    IsExeStarted               = _IsExeStarted                    @2001 NONAME
    11921192    CheckCurFS                                                    @2002 NONAME
    11931193    _SupportsCPUID                                                @2003 NONAME
     
    12231223    OSLibDosDevIOCtl                                              @2026 NONAME
    12241224
    1225     OSLibImSetMsgQueueProperty                                    @2029 NONAME
    1226 
    1227     fIsDBCSEnv                                                    @2103 NONAME
     1225    OSLibImSetMsgQueueProperty = _OSLibImSetMsgQueueProperty      @2029 NONAME
     1226
     1227    fIsDBCSEnv                 = _fIsDBCSEnv                      @2103 NONAME
    12281228    _hookInit@4                                                   @2104 NONAME
    12291229
  • branches/gcc-kmk/src/kernel32/oslibdos.cpp

    r21732 r21790  
    8888static  CDDRVLTR    cdDrvLtr = {0xffff, 0xffff};
    8989
     90extern "C" {
    9091
    9192/*******************************************************************************
     
    35893590}
    35903591
     3592} // extern "C"
     3593
  • branches/gcc-kmk/src/kernel32/thread.cpp

    r21716 r21790  
    6161//******************************************************************************
    6262//******************************************************************************
     63extern "C"
    6364HANDLE WIN32API CreateThread(LPSECURITY_ATTRIBUTES  lpsa,
    6465                             DWORD                  cbStack,
     
    115116  return pHandle->hmHandleData.hWin32Handle;
    116117}
     118
     119extern "C" {
     120
    117121/*****************************************************************************
    118122 * Name      : HMGetThreadPriority
     
    370374  return (lpResult);                                  /* deliver return code */
    371375}
     376
     377} // extern "C"
     378
    372379/*****************************************************************************
    373380 * Name      : HMSetThreadTerminated
     
    397404  return (lpResult);                                  /* deliver return code */
    398405}
     406
     407extern "C" {
     408
    399409//******************************************************************************
    400410//******************************************************************************
     
    654664  return FALSE;
    655665}
     666
     667} // extern "C"
     668
    656669//******************************************************************************
    657670//******************************************************************************
  • branches/gcc-kmk/src/kernel32/winexebase.cpp

    r21731 r21790  
    4444//******************************************************************************
    4545//******************************************************************************
    46 BOOL IsExeStarted()
     46extern "C" BOOL IsExeStarted()
    4747{
    4848    return fExeStarted;
  • branches/gcc-kmk/src/kernel32/winexepeldr.cpp

    r21737 r21790  
    5959//   (not other options available at this time)
    6060//******************************************************************************
     61extern "C"
    6162DWORD WIN32API CreateWin32PeLdrExe(char *szFileName, char *szCmdLine,
    6263                                   char *peoptions,
Note: See TracChangeset for help on using the changeset viewer.