From 6805dc6401490baaef6d83ab7889f3d51a1f3b37 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Wed, 31 Mar 2010 19:57:29 -0700 Subject: [PATCH] =?UTF-8?q?remove=20redundant=20=C2=ABstdcall=3F=C2=BB=20w?= =?UTF-8?q?ord=20from=20cpu.x86.32?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basis/cpu/x86/32/32.factor | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/basis/cpu/x86/32/32.factor b/basis/cpu/x86/32/32.factor index c96d961d65..d296b730d2 100755 --- a/basis/cpu/x86/32/32.factor +++ b/basis/cpu/x86/32/32.factor @@ -291,9 +291,6 @@ M:: x86.32 %binary-float-function ( dst src1 src2 func -- ) func "libm" load-library %alien-invoke dst float-function-return ; -: stdcall? ( params -- ? ) - abi>> stdcall = ; - : funny-large-struct-return? ( params -- ? ) #! MINGW ABI incompatibility disaster [ return>> large-struct? ] @@ -307,7 +304,7 @@ M: x86.32 %cleanup ( params -- ) #! b) If we just called a function returning a struct, we #! have to fix ESP. { - { [ dup stdcall? ] [ drop ESP stack-frame get params>> SUB ] } + { [ dup abi>> stdcall? ] [ drop ESP stack-frame get params>> SUB ] } { [ dup funny-large-struct-return? ] [ drop EAX PUSH ] } [ drop ] } cond ;