ntdll: Explicitly specify CDECL calling convention on exported functions.

This commit is contained in:
Alexandre Julliard 2006-06-12 21:35:07 +02:00
parent 69591d81f9
commit 57939d8fa4
1 changed files with 18 additions and 18 deletions

View File

@ -54,7 +54,7 @@ LPCSTR debugstr_us( const UNICODE_STRING *us )
* [GNUC && i386] * [GNUC && i386]
*/ */
#if defined(__GNUC__) && defined(__i386__) #if defined(__GNUC__) && defined(__i386__)
LONGLONG __cdecl NTDLL__ftol(void) LONGLONG CDECL NTDLL__ftol(void)
{ {
/* don't just do DO_FPU("fistp",retval), because the rounding /* don't just do DO_FPU("fistp",retval), because the rounding
* mode must also be set to "round towards zero"... */ * mode must also be set to "round towards zero"... */
@ -73,7 +73,7 @@ LONGLONG __cdecl NTDLL__ftol(void)
* [!GNUC && i386] * [!GNUC && i386]
*/ */
#if !defined(__GNUC__) && defined(__i386__) #if !defined(__GNUC__) && defined(__i386__)
LONGLONG __cdecl NTDLL__ftol(double fl) LONGLONG CDECL NTDLL__ftol(double fl)
{ {
FIXME("should be register function\n"); FIXME("should be register function\n");
return (LONGLONG)fl; return (LONGLONG)fl;
@ -86,7 +86,7 @@ LONGLONG __cdecl NTDLL__ftol(double fl)
* [!i386] * [!i386]
*/ */
#ifndef __i386__ #ifndef __i386__
LONG __cdecl NTDLL__ftol(double fl) LONG CDECL NTDLL__ftol(double fl)
{ {
return (LONG) fl; return (LONG) fl;
} }
@ -98,7 +98,7 @@ LONG __cdecl NTDLL__ftol(double fl)
* [GNUC && i386] * [GNUC && i386]
*/ */
#if defined(__GNUC__) && defined(__i386__) #if defined(__GNUC__) && defined(__i386__)
double __cdecl NTDLL__CIpow(void) double CDECL NTDLL__CIpow(void)
{ {
double x,y; double x,y;
POP_FPU(y); POP_FPU(y);
@ -118,7 +118,7 @@ double __cdecl NTDLL__CIpow(void)
* [!GNUC && i386] * [!GNUC && i386]
*/ */
#if !defined(__GNUC__) && defined(__i386__) #if !defined(__GNUC__) && defined(__i386__)
double __cdecl NTDLL__CIpow(double x,double y) double CDECL NTDLL__CIpow(double x,double y)
{ {
FIXME("should be register function\n"); FIXME("should be register function\n");
return pow(x,y); return pow(x,y);
@ -131,7 +131,7 @@ double __cdecl NTDLL__CIpow(double x,double y)
* [!i386] * [!i386]
*/ */
#ifndef __i386__ #ifndef __i386__
double __cdecl NTDLL__CIpow(double x,double y) double CDECL NTDLL__CIpow(double x,double y)
{ {
return pow(x,y); return pow(x,y);
} }
@ -141,7 +141,7 @@ double __cdecl NTDLL__CIpow(double x,double y)
/********************************************************************* /*********************************************************************
* abs (NTDLL.@) * abs (NTDLL.@)
*/ */
int NTDLL_abs( int i ) int CDECL NTDLL_abs( int i )
{ {
return abs( i ); return abs( i );
} }
@ -149,7 +149,7 @@ int NTDLL_abs( int i )
/********************************************************************* /*********************************************************************
* labs (NTDLL.@) * labs (NTDLL.@)
*/ */
long int NTDLL_labs( long int i ) long int CDECL NTDLL_labs( long int i )
{ {
return labs( i ); return labs( i );
} }
@ -157,7 +157,7 @@ long int NTDLL_labs( long int i )
/********************************************************************* /*********************************************************************
* atan (NTDLL.@) * atan (NTDLL.@)
*/ */
double NTDLL_atan( double d ) double CDECL NTDLL_atan( double d )
{ {
return atan( d ); return atan( d );
} }
@ -165,7 +165,7 @@ double NTDLL_atan( double d )
/********************************************************************* /*********************************************************************
* ceil (NTDLL.@) * ceil (NTDLL.@)
*/ */
double NTDLL_ceil( double d ) double CDECL NTDLL_ceil( double d )
{ {
return ceil( d ); return ceil( d );
} }
@ -173,7 +173,7 @@ double NTDLL_ceil( double d )
/********************************************************************* /*********************************************************************
* cos (NTDLL.@) * cos (NTDLL.@)
*/ */
double NTDLL_cos( double d ) double CDECL NTDLL_cos( double d )
{ {
return cos( d ); return cos( d );
} }
@ -181,7 +181,7 @@ double NTDLL_cos( double d )
/********************************************************************* /*********************************************************************
* fabs (NTDLL.@) * fabs (NTDLL.@)
*/ */
double NTDLL_fabs( double d ) double CDECL NTDLL_fabs( double d )
{ {
return fabs( d ); return fabs( d );
} }
@ -189,7 +189,7 @@ double NTDLL_fabs( double d )
/********************************************************************* /*********************************************************************
* floor (NTDLL.@) * floor (NTDLL.@)
*/ */
double NTDLL_floor( double d ) double CDECL NTDLL_floor( double d )
{ {
return floor( d ); return floor( d );
} }
@ -197,7 +197,7 @@ double NTDLL_floor( double d )
/********************************************************************* /*********************************************************************
* log (NTDLL.@) * log (NTDLL.@)
*/ */
double NTDLL_log( double d ) double CDECL NTDLL_log( double d )
{ {
return log( d ); return log( d );
} }
@ -205,7 +205,7 @@ double NTDLL_log( double d )
/********************************************************************* /*********************************************************************
* pow (NTDLL.@) * pow (NTDLL.@)
*/ */
double NTDLL_pow( double x, double y ) double CDECL NTDLL_pow( double x, double y )
{ {
return pow( x, y ); return pow( x, y );
} }
@ -213,7 +213,7 @@ double NTDLL_pow( double x, double y )
/********************************************************************* /*********************************************************************
* sin (NTDLL.@) * sin (NTDLL.@)
*/ */
double NTDLL_sin( double d ) double CDECL NTDLL_sin( double d )
{ {
return sin( d ); return sin( d );
} }
@ -221,7 +221,7 @@ double NTDLL_sin( double d )
/********************************************************************* /*********************************************************************
* sqrt (NTDLL.@) * sqrt (NTDLL.@)
*/ */
double NTDLL_sqrt( double d ) double CDECL NTDLL_sqrt( double d )
{ {
return sqrt( d ); return sqrt( d );
} }
@ -229,7 +229,7 @@ double NTDLL_sqrt( double d )
/********************************************************************* /*********************************************************************
* tan (NTDLL.@) * tan (NTDLL.@)
*/ */
double NTDLL_tan( double d ) double CDECL NTDLL_tan( double d )
{ {
return tan( d ); return tan( d );
} }