diff options
| author | apnadkarni <apnmbx-wits@yahoo.com> | 2025-09-17 05:24:07 (GMT) |
|---|---|---|
| committer | apnadkarni <apnmbx-wits@yahoo.com> | 2025-09-17 05:24:07 (GMT) |
| commit | 5ab8b8b3d8634976de5ffb5fd04eed6fd1f7dc8e (patch) | |
| tree | a02d02be73a7cb1357555dfeef748f3a4065336d /unix | |
| parent | 4b5c6bedda3393e42f06dfb50a5af067c3173b33 (diff) | |
| parent | 133e32482931da3d774c7c0c8f6f176639c0639c (diff) | |
| download | tcl-core-apn-init-refactor.zip tcl-core-apn-init-refactor.tar.gz tcl-core-apn-init-refactor.tar.bz2 | |
Merge trunkcore-apn-init-refactor
Diffstat (limited to 'unix')
| -rw-r--r-- | unix/tclSelectNotfy.c | 35 | ||||
| -rw-r--r-- | unix/tclUnixInit.c | 17 | ||||
| -rw-r--r-- | unix/tclUnixPort.h | 25 |
3 files changed, 32 insertions, 45 deletions
diff --git a/unix/tclSelectNotfy.c b/unix/tclSelectNotfy.c index 1b96ecf..c74364a 100644 --- a/unix/tclSelectNotfy.c +++ b/unix/tclSelectNotfy.c @@ -253,28 +253,25 @@ typedef struct { const void *lpszClassName; } WNDCLASSW; -#ifdef __clang__ -#pragma clang diagnostic ignored "-Wignored-attributes" -#endif -extern void __stdcall CloseHandle(void *); -extern void *__stdcall CreateEventW(void *, unsigned char, unsigned char, +extern void CloseHandle(void *); +extern void *CreateEventW(void *, unsigned char, unsigned char, void *); -extern void *__stdcall CreateWindowExW(void *, const void *, const void *, +extern void *CreateWindowExW(void *, const void *, const void *, unsigned int, int, int, int, int, void *, void *, void *, void *); -extern unsigned int __stdcall DefWindowProcW(void *, int, void *, void *); -extern unsigned char __stdcall DestroyWindow(void *); -extern int __stdcall DispatchMessageW(const MSG *); -extern unsigned char __stdcall GetMessageW(MSG *, void *, int, int); -extern void __stdcall MsgWaitForMultipleObjects(unsigned int, void *, +extern unsigned int DefWindowProcW(void *, int, void *, void *); +extern unsigned char DestroyWindow(void *); +extern int DispatchMessageW(const MSG *); +extern unsigned char GetMessageW(MSG *, void *, int, int); +extern void MsgWaitForMultipleObjects(unsigned int, void *, unsigned char, unsigned int, unsigned int); -extern unsigned char __stdcall PeekMessageW(MSG *, void *, int, int, int); -extern unsigned char __stdcall PostMessageW(void *, unsigned int, void *, +extern unsigned char PeekMessageW(MSG *, void *, int, int, int); +extern unsigned char PostMessageW(void *, unsigned int, void *, void *); -extern void __stdcall PostQuitMessage(int); -extern void *__stdcall RegisterClassW(const WNDCLASSW *); -extern unsigned char __stdcall ResetEvent(void *); -extern unsigned char __stdcall TranslateMessage(const MSG *); +extern void PostQuitMessage(int); +extern void *RegisterClassW(const WNDCLASSW *); +extern unsigned char ResetEvent(void *); +extern unsigned char TranslateMessage(const MSG *); /* * Threaded-cygwin specific constants and functions in this file: @@ -282,7 +279,7 @@ extern unsigned char __stdcall TranslateMessage(const MSG *); #if TCL_THREADS && defined(__CYGWIN__) static const wchar_t className[] = L"TclNotifier"; -static unsigned int __stdcall NotifierProc(void *hwnd, unsigned int message, +static unsigned int NotifierProc(void *hwnd, unsigned int message, void *wParam, void *lParam); #endif /* TCL_THREADS && defined(__CYGWIN__) */ #ifdef __cplusplus @@ -599,7 +596,7 @@ TclpDeleteFileHandler( #if TCL_THREADS && defined(__CYGWIN__) -static unsigned int __stdcall +static unsigned int NotifierProc( void *hwnd, unsigned int message, diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c index ef62400..b4f5dbf 100644 --- a/unix/tclUnixInit.c +++ b/unix/tclUnixInit.c @@ -27,14 +27,11 @@ #ifdef __cplusplus extern "C" { #endif -#ifdef __clang__ -#pragma clang diagnostic ignored "-Wignored-attributes" -#endif -DLLIMPORT extern __stdcall unsigned char GetVersionExW(void *); -DLLIMPORT extern __stdcall void *GetModuleHandleW(const void *); -DLLIMPORT extern __stdcall void FreeLibrary(void *); -DLLIMPORT extern __stdcall void *GetProcAddress(void *, const char *); -DLLIMPORT extern __stdcall void GetSystemInfo(void *); +DLLIMPORT extern unsigned char GetVersionExW(void *); +DLLIMPORT extern void *GetModuleHandleW(const void *); +DLLIMPORT extern void FreeLibrary(void *); +DLLIMPORT extern void *GetProcAddress(void *, const char *); +DLLIMPORT extern void GetSystemInfo(void *); #ifdef __cplusplus } #endif @@ -860,8 +857,8 @@ TclpSetVariables( unameOK = 1; if (!osInfoInitialized) { void *handle = GetModuleHandleW(L"NTDLL"); - int(__stdcall *getversion)(void *) = - (int(__stdcall *)(void *))GetProcAddress(handle, "RtlGetVersion"); + int(*getversion)(void *) = + (int(*)(void *))GetProcAddress(handle, "RtlGetVersion"); osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW); if (!getversion || getversion(&osInfo)) { GetVersionExW(&osInfo); diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index fd62d7f..c4d89a7 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -89,25 +89,18 @@ extern "C" { # define SOCKET unsigned int # define WSAEWOULDBLOCK 10035 typedef unsigned short WCHAR; -#ifdef __clang__ -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wignored-attributes" -#endif - __declspec(dllimport) extern __stdcall int GetModuleHandleExW(unsigned int, const void *, void *); - __declspec(dllimport) extern __stdcall int GetModuleFileNameW(void *, const void *, int); - __declspec(dllimport) extern __stdcall int WideCharToMultiByte(int, int, const void *, int, + __declspec(dllimport) extern int GetModuleHandleExW(unsigned int, const void *, void *); + __declspec(dllimport) extern int GetModuleFileNameW(void *, const void *, int); + __declspec(dllimport) extern int WideCharToMultiByte(int, int, const void *, int, char *, int, const char *, void *); - __declspec(dllimport) extern __stdcall int MultiByteToWideChar(int, int, const char *, int, + __declspec(dllimport) extern int MultiByteToWideChar(int, int, const char *, int, WCHAR *, int); - __declspec(dllimport) extern __stdcall void OutputDebugStringW(const WCHAR *); - __declspec(dllimport) extern __stdcall int IsDebuggerPresent(void); - __declspec(dllimport) extern __stdcall int GetLastError(void); - __declspec(dllimport) extern __stdcall int GetFileAttributesW(const WCHAR *); - __declspec(dllimport) extern __stdcall int SetFileAttributesW(const WCHAR *, int); + __declspec(dllimport) extern void OutputDebugStringW(const WCHAR *); + __declspec(dllimport) extern int IsDebuggerPresent(void); + __declspec(dllimport) extern int GetLastError(void); + __declspec(dllimport) extern int GetFileAttributesW(const WCHAR *); + __declspec(dllimport) extern int SetFileAttributesW(const WCHAR *, int); __declspec(dllimport) extern int cygwin_conv_path(int, const void *, void *, int); -#ifdef __clang__ -#pragma clang diagnostic pop -#endif # define timezone _timezone extern int TclOSfstat(int fd, void *statBuf); extern int TclOSstat(const char *name, void *statBuf); |
