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

Use underscore in .asm to match extern "C" mangling.

This relates to variables as well. (at least in GCC).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/src/kernel32/exceptutil.asm

    r21755 r21791  
    3434CODE32          SEGMENT DWORD PUBLIC USE32 'CODE'
    3535        public  _RaiseException@16
    36         extrn   OS2RAISEEXCEPTION : near
     36        extrn   _OS2RaiseException : near
    3737
    3838_RaiseException@16 proc near
     
    6565        mov  eax, ss
    6666        push eax
    67         call OS2RAISEEXCEPTION
     67        call _OS2RaiseException
    6868
    6969        ret 16      ;__stdcall
     
    7171
    7272        public  _RtlUnwind@16
    73         extrn   OS2RtlUnwind : near
     73        extrn   _OS2RtlUnwind : near
    7474
    7575_RtlUnwind@16 proc near
     
    102102        mov  eax, ss
    103103        push eax
    104         call OS2RtlUnwind
     104        call _OS2RtlUnwind
    105105
    106106        ret 16      ;__stdcall
     
    118118OS2ExceptionHandler endp
    119119
    120         PUBLIC QueryExceptionChain
    121 
    122 QueryExceptionChain proc near
     120        PUBLIC _QueryExceptionChain
     121
     122_QueryExceptionChain proc near
    123123        mov  eax, fs:[0]
    124124        ret
    125 QueryExceptionChain endp
     125_QueryExceptionChain endp
    126126
    127127        PUBLIC GetExceptionRecord
     
    280280
    281281
    282 ; 281 static DWORD EXC_CallHandler( WINEXCEPTION_RECORD *record, WINEXCEPTION_FRAME *frame,
     282; 281 static extern "C" DWORD EXC_CallHandler( WINEXCEPTION_RECORD *record, WINEXCEPTION_FRAME *frame,
    283283        EXTRN WriteLog:PROC
    284284        EXTRN _GetThreadTEB@0:PROC
     
    287287ENDIF
    288288
    289 EXC_push_frame__FP19_WINEXCEPTION_FRAME proc
     289EXC_push_frame  proc
    290290        push    ebp
    291291        mov     ebp,esp
     
    313313        leave   
    314314        ret     
    315 EXC_push_frame__FP19_WINEXCEPTION_FRAME endp
     315EXC_push_frame  endp
    316316
    317317; 138 static inline WINEXCEPTION_FRAME * EXC_pop_frame( WINEXCEPTION_FRAME *frame )
    318318        align 04h
    319319
    320 EXC_pop_frame__FP19_WINEXCEPTION_FRAME  proc
     320EXC_pop_frame   proc
    321321        push    ebp
    322322        mov     ebp,esp
     
    339339        leave   
    340340        ret     
    341 EXC_pop_frame__FP19_WINEXCEPTION_FRAME  endp
     341EXC_pop_frame   endp
    342342
    343343        align 04h
    344         PUBLIC EXC_CallHandler__FP20_WINEXCEPTION_RECORDP19_WINEXCEPTION_FRAMEP10WINCONTEXTPP19_WINEXCEPTION_FRAMEPFP20_WINEXCEPTION_RECORDP19_WINEXCEPTION_FRAMEP10WINCONTEXTPv_UlT5
    345 
    346 EXC_CallHandler__FP20_WINEXCEPTION_RECORDP19_WINEXCEPTION_FRAMEP10WINCONTEXTPP19_WINEXCEPTION_FRAMEPFP20_WINEXCEPTION_RECORDP19_WINEXCEPTION_FRAMEP10WINCONTEXTPv_UlT5  proc
     344        PUBLIC _EXC_CallHandler
     345
     346_EXC_CallHandler        proc
    347347        push    ebp
    348348        mov     ebp,esp
     
    363363; 298     EXC_push_frame( &newframe.frame );
    364364        lea     eax,[ebp-0ch];  newframe
    365         call    EXC_push_frame__FP19_WINEXCEPTION_FRAME
     365        call    EXC_push_frame
    366366
    367367; 299     dprintf(("KERNEL32: Calling handler at %p code=%lx flags=%lx\n",
     
    403403; 303     EXC_pop_frame( &newframe.frame );
    404404        lea     eax,[ebp-0ch];  newframe
    405         call    EXC_pop_frame__FP19_WINEXCEPTION_FRAME
     405        call    EXC_pop_frame
    406406
    407407; 304     return ret;
     
    410410        leave   
    411411        ret     
    412 EXC_CallHandler__FP20_WINEXCEPTION_RECORDP19_WINEXCEPTION_FRAMEP10WINCONTEXTPP19_WINEXCEPTION_FRAMEPFP20_WINEXCEPTION_RECORDP19_WINEXCEPTION_FRAMEP10WINCONTEXTPv_UlT5  endp
     412_EXC_CallHandler        endp
    413413
    414414CODE32          ENDS
Note: See TracChangeset for help on using the changeset viewer.