summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/lib/kernel32.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-11-02 00:54:46 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2006-11-02 00:54:46 +0000
commita45b9181eaab44e22ad501bd733b05e98f040e35 (patch)
tree3cba319f1c1737e0a76add7b853bd48b3c5f0593 /winsup/w32api/lib/kernel32.c
parentb904c35100d89d7cdac83257ca7a5ca3f708201f (diff)
downloadcygnal-a45b9181eaab44e22ad501bd733b05e98f040e35.tar.gz
cygnal-a45b9181eaab44e22ad501bd733b05e98f040e35.tar.bz2
cygnal-a45b9181eaab44e22ad501bd733b05e98f040e35.zip
* include/winuser.h (LR_DEFAULTSIZE): Remove duplicate.
C99 'extern inline' patrol. * include/winnt.h (GetCurrentFiber): Remove extern declaration. Make inline static. (GetFiberData): Likewise. * lib/kernel32.c: Remove. * lib/Makefile.in: Remove reference to kernel32.[co].
Diffstat (limited to 'winsup/w32api/lib/kernel32.c')
-rw-r--r--winsup/w32api/lib/kernel32.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/winsup/w32api/lib/kernel32.c b/winsup/w32api/lib/kernel32.c
deleted file mode 100644
index 08ff86c25..000000000
--- a/winsup/w32api/lib/kernel32.c
+++ /dev/null
@@ -1,49 +0,0 @@
-/* extern (library) versions of inline functions defined in winnt.h */
-
-#if defined(__GNUC__)
-
-void* GetCurrentFiber(void)
-{
- void* ret;
- __asm__ volatile (
- "movl %%fs:0x10,%0"
- : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
- );
- return ret;
-}
-
-void* GetFiberData(void)
-{
- void* ret;
- __asm__ volatile (
- "movl %%fs:0x10,%0\n"
- "movl (%0),%0"
- : "=r" (ret) /* allow use of reg eax,ebx,ecx,edx,esi,edi */
- );
- return ret;
-}
-
-#elif !defined (__WATCOMC__)
-
-void* GetCurrentFiber(void)
-{
- void* res;
- _asm {
- mov eax, dword ptr fs:0x10
- mov res, eax
- };
- return res;
-}
-
-void* GetFiberData(void)
-{
- void* res;
- _asm {
- mov eax, dword ptr fs:0x10
- mov eax, [eax]
- mov res, eax
- };
- return res;
-}
-
-#endif /* __GNUC__ */