diff options
author | bje <bje> | 1998-09-12 10:41:49 +0000 |
---|---|---|
committer | bje <bje> | 1998-09-12 10:41:49 +0000 |
commit | 6ce00ffe10306ce8063dad1b64530fdde4867820 (patch) | |
tree | 68041ef4befadfb4d38cf22431799b4f4eeabfe2 /windows.c | |
parent | f198ec61db75dd773357ba9a837a76e4bd16db60 (diff) |
1998-09-12 Ben Elliston <bje@cygnus.com>
* windows.h: No longer needed; remove.
* windows.c: Likewise.
Diffstat (limited to 'windows.c')
-rw-r--r-- | windows.c | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/windows.c b/windows.c deleted file mode 100644 index d55a9d7..0000000 --- a/windows.c +++ /dev/null @@ -1,139 +0,0 @@ -/* - * windows.c - * - * This translation unit implements stubs for all of the Windows API - * calls. If debugging is on, we dump out diagnostic output for - * reassurance. - * - */ - -#include <stdio.h> - -#include "windows.h" - -#define DEBUG 1 - -#ifdef DEBUG -#define DIAG(fn) fprintf(stderr, "called: %s\n", fn) -#endif /* DEBUG */ - -HANDLE CreateEvent(LPSECURITY_ATTRIBUTES security, - BOOL manualReset, - BOOL initialState, - LPCTSTR name) -{ - DIAG("CreateEvent"); - return 0; -} - -BOOL SetEvent(HANDLE event) -{ - DIAG("SetEvent"); - return TRUE; -} - -BOOL ResetEvent(HANDLE event) -{ - DIAG("ResetEvent"); - return TRUE; -} - -VOID EnterCriticalSection(LPCRITICAL_SECTION criticalSection) -{ - DIAG("EnterCriticalSection"); -} - -VOID LeaveCriticalSection(LPCRITICAL_SECTION criticalSection) -{ - DIAG("LeaveCriticalSection"); -} - -VOID DeleteCriticalSection(LPCRITICAL_SECTION criticalSection) -{ - DIAG("DeleteCriticalSection"); -} - -VOID InitializeCriticalSection(LPCRITICAL_SECTION criticalSection) -{ - DIAG("InitializeCriticalSection"); -} - -BOOL TryEnterCriticalSection(LPCRITICAL_SECTION criticalSection) -{ - DIAG("TryEnterCriticalSection"); - return TRUE; -} - -DWORD WaitForMultipleObjects(DWORD numObjects, - CONST HANDLE * objectArray, - BOOL waitForAll, - DWORD timeout) -{ - DIAG("WaitForMultipleObjects"); - return 0; -} - -DWORD WaitForSingleObject(HANDLE object, - DWORD timeout) -{ - DIAG("WaitForSingleObject"); - return 0; -} - -DWORD TlsAlloc() -{ - DIAG("TlsAlloc"); - return 0; -} - -BOOL TlsFree(DWORD index) -{ - DIAG("TlsFree"); - return TRUE; -} - -BOOL TlsSetValue(DWORD index, LPVOID value) -{ - DIAG("TlsSetValue"); - return TRUE; -} - -LPVOID TlsGetValue(DWORD index) -{ - DIAG("TlsGetValue"); - return 0; -} - -BOOL SetThreadPriority(HANDLE threadHandle, int priority) -{ - DIAG("SetThreadPriority"); - return TRUE; -} - -int GetThreadPriority(HANDLE threadHandle) -{ - DIAG("GetThreadPriority"); - return 0; -} - -HANDLE _beginthreadex(LPSECURITY_ATTRIBUTES security, - DWORD stack, - unsigned (* start_routine)(void *), - LPVOID param, - DWORD flags, - LPDWORD threadID) -{ - DIAG("_beginthreadex"); - return 0; -} - -VOID _endthreadex(DWORD thread) -{ - DIAG("_endthreadex"); -} - -DWORD GetVersion(VOID) -{ - DIAG("GetVersion"); - return 0; -} |