ntdll: Improve the prototypes Win64 compatibility by replacing long with LONG.

This commit is contained in:
Francois Gouget 2007-06-11 13:13:32 +02:00 committed by Alexandre Julliard
parent f44bc89bc4
commit 6936bb100f
4 changed files with 12 additions and 14 deletions

View file

@ -149,7 +149,7 @@ int CDECL NTDLL_abs( int i )
/********************************************************************* /*********************************************************************
* labs (NTDLL.@) * labs (NTDLL.@)
*/ */
long CDECL NTDLL_labs( long i ) LONG CDECL NTDLL_labs( LONG i )
{ {
return labs( i ); return labs( i );
} }

View file

@ -449,7 +449,7 @@ int __cdecl NTDLL_isxdigit( int c )
/********************************************************************* /*********************************************************************
* strtol (NTDLL.@) * strtol (NTDLL.@)
*/ */
long __cdecl NTDLL_strtol( const char *nptr, char **endptr, int base ) LONG __cdecl NTDLL_strtol( const char *nptr, char **endptr, int base )
{ {
return strtol( nptr, endptr, base ); return strtol( nptr, endptr, base );
} }
@ -458,7 +458,7 @@ long __cdecl NTDLL_strtol( const char *nptr, char **endptr, int base )
/********************************************************************* /*********************************************************************
* strtoul (NTDLL.@) * strtoul (NTDLL.@)
*/ */
unsigned long __cdecl NTDLL_strtoul( const char *nptr, char **endptr, int base ) ULONG __cdecl NTDLL_strtoul( const char *nptr, char **endptr, int base )
{ {
return strtoul( nptr, endptr, base ); return strtoul( nptr, endptr, base );
} }
@ -476,7 +476,7 @@ int __cdecl NTDLL_atoi( const char *nptr )
/********************************************************************* /*********************************************************************
* atol (NTDLL.@) * atol (NTDLL.@)
*/ */
long __cdecl NTDLL_atol( const char *nptr ) LONG __cdecl NTDLL_atol( const char *nptr )
{ {
return atol( nptr ); return atol( nptr );
} }
@ -497,7 +497,7 @@ long __cdecl NTDLL_atol( const char *nptr )
* - If str is NULL it crashes, as the native function does. * - If str is NULL it crashes, as the native function does.
*/ */
char * __cdecl _ultoa( char * __cdecl _ultoa(
unsigned long value, /* [I] Value to be converted */ ULONG value, /* [I] Value to be converted */
char *str, /* [O] Destination for the converted value */ char *str, /* [O] Destination for the converted value */
int radix) /* [I] Number base for conversion */ int radix) /* [I] Number base for conversion */
{ {
@ -539,11 +539,11 @@ char * __cdecl _ultoa(
* - If str is NULL it crashes, as the native function does. * - If str is NULL it crashes, as the native function does.
*/ */
char * __cdecl _ltoa( char * __cdecl _ltoa(
long value, /* [I] Value to be converted */ LONG value, /* [I] Value to be converted */
char *str, /* [O] Destination for the converted value */ char *str, /* [O] Destination for the converted value */
int radix) /* [I] Number base for conversion */ int radix) /* [I] Number base for conversion */
{ {
unsigned long val; ULONG val;
int negative; int negative;
char buffer[33]; char buffer[33];
char *pos; char *pos;

View file

@ -278,7 +278,7 @@ INT __cdecl NTDLL_mbstowcs( LPWSTR dst, LPCSTR src, INT n )
/********************************************************************* /*********************************************************************
* wcstol (NTDLL.@) * wcstol (NTDLL.@)
*/ */
long __cdecl NTDLL_wcstol(LPCWSTR s,LPWSTR *end,INT base) LONG __cdecl NTDLL_wcstol(LPCWSTR s, LPWSTR *end, INT base)
{ {
return strtolW( s, end, base ); return strtolW( s, end, base );
} }
@ -287,7 +287,7 @@ long __cdecl NTDLL_wcstol(LPCWSTR s,LPWSTR *end,INT base)
/********************************************************************* /*********************************************************************
* wcstoul (NTDLL.@) * wcstoul (NTDLL.@)
*/ */
unsigned long __cdecl NTDLL_wcstoul(LPCWSTR s,LPWSTR *end,INT base) ULONG __cdecl NTDLL_wcstoul(LPCWSTR s, LPWSTR *end, INT base)
{ {
return strtoulW( s, end, base ); return strtoulW( s, end, base );
} }
@ -392,7 +392,7 @@ INT __cdecl NTDLL_iswxdigit( WCHAR wc )
* If str is NULL it just returns NULL. * If str is NULL it just returns NULL.
*/ */
LPWSTR __cdecl _ultow( LPWSTR __cdecl _ultow(
unsigned long value, /* [I] Value to be converted */ ULONG value, /* [I] Value to be converted */
LPWSTR str, /* [O] Destination for the converted value */ LPWSTR str, /* [O] Destination for the converted value */
INT radix) /* [I] Number base for conversion */ INT radix) /* [I] Number base for conversion */
{ {
@ -436,11 +436,11 @@ LPWSTR __cdecl _ultow(
* If str is NULL it just returns NULL. * If str is NULL it just returns NULL.
*/ */
LPWSTR __cdecl _ltow( LPWSTR __cdecl _ltow(
long value, /* [I] Value to be converted */ LONG value, /* [I] Value to be converted */
LPWSTR str, /* [O] Destination for the converted value */ LPWSTR str, /* [O] Destination for the converted value */
INT radix) /* [I] Number base for conversion */ INT radix) /* [I] Number base for conversion */
{ {
unsigned long val; ULONG val;
int negative; int negative;
WCHAR buffer[33]; WCHAR buffer[33];
PWCHAR pos; PWCHAR pos;

View file

@ -2818,11 +2818,9 @@ ULONG
WCHAR WCHAR
WORD WORD
int int
long
obj_handle_t obj_handle_t
size_t size_t
unsigned int unsigned int
unsigned long
%long --pointer %long --pointer