More MSVC compabillity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK. This should find and replace all rest of the (1) cases cases:

find . -name '*.[chly]' | xargs perl -i -pe
  's/(APIENTRY|APIPRIVATE|CALLBACK|_CDECL|CDECL|PASCAL|WINAPIV|WINAPI|
 
__cdecl|_cdecl|cdecl|_export|__fastcall|_fastcall|_pascal|pascal|__stdcall|_
stdcall)\s*\(\s*\*/\($1 */g' 

We doesn't seem to have any (2) cases, providing that the script below is
correct:

find . -name '*.[chly]' | xargs perl -ne
 
'/\(\s*\*\s*(APIENTRY|APIPRIVATE|CALLBACK|_CDECL|CDECL|PASCAL|WINAPIV|WINAPI
|
  __cdecl|_cdecl|cdecl|_export|__fastcall|_fastcall|_pascal|pascal)\s*/ &&
print'

Anyway everything seems to compile and here is the result.

---8<---

*** msvc

* dlls/comctl32/animate.c,
  dlls/comctl32/comctl32undoc.c,
  dlls/comctl32/smoothscroll.c,
  dlls/commdlg/cdlg.h,
  dlls/commdlg/cdlg32.c,
  dlls/ddraw/ddraw_private.h,
  dlls/dplayx/dplaysp.h,
  dlls/gdi/printdrv.c,
  dlls/imm32/imm_private.h,
  dlls/kernel/string.c,
  dlls/kernel/utthunk.c,
  dlls/lzexpand/lzexpand_main.c,
  dlls/msacm/wineacm.h,
  dlls/ole32/compobj.c,
  dlls/setupapi/setupx16.h,
  dlls/shell32/shell32_main.c,
  dlls/shell32/shell32_main.h,
  dlls/shell32/shellole.c,
  dlls/shell32/shlview.c,
  dlls/shell32/undocshell.h,
  dlls/user/dde/ddeml16.c,
  dlls/winedos/vga.c,
  dlls/wineps/driver.c,
  dlls/winmm/lolvldrv.c,
  dlls/winmm/mmsystem.c,
  dlls/winmm/winemm.h,
  dlls/winspool/info.c,
  include/msvcrt/process.h,
  libtest/hello5.c,
  loader/ne/segment.c,
  loader/pe_image.c,
  loader/resource.c,
  objects/palette.c,
  programs/avitools/aviinfo.c,
  programs/avitools/aviplay.c,
  relay32/relay386.c,
  scheduler/process.c,
  windows/defwnd.c:
Move __stdcall/__cdecl to the right place.

Attachment: msvc.diff
Description: Binary data


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux