[ros-diffs] [tkreuzer] 34718: - int -> intptr_t - unsigned long -> uintptr_t - #undef _MINGW_IMPORT in ctype.c, to avoid warnings
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Thu Jul 24 02:54:13 CEST 2008
- Previous message: [ros-diffs] [tkreuzer] 34717: Patch from Samuel Serapion ("encoded", samdwise51 at gmail dot com): - fix prototypes of _findfirst, _findnext, _findclose, _findfirsti64, _findnexti64 _wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, strndup, - fix a number of pointer to int casts
- Next message: [ros-diffs] [tkreuzer] 34719: last fixes for crt. Those are messing with handles and casting between 32 and 64 bit. I'm not sure if it's correct, probably not... crt and libcntpr now compile warning free on amd64
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tkreuzer
Date: Wed Jul 23 19:54:12 2008
New Revision: 34718
URL: http://svn.reactos.org/svn/reactos?rev=34718&view=rev
Log:
- int -> intptr_t
- unsigned long -> uintptr_t
- #undef _MINGW_IMPORT in ctype.c, to avoid warnings
Modified:
branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/_system.c
branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/process.c
branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfprintf.c
branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfwprint.c
branches/ros-amd64-bringup/reactos/lib/sdk/crt/string/ctype.c
Modified: branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/_system.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/_system.c?rev=34718&r1=34717&r2=34718&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/_system.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/_system.c [iso-8859-1] Wed Jul 23 19:54:12 2008
@@ -108,7 +108,7 @@
CloseHandle(ProcessInformation.hThread);
// system should wait untill the calling process is finished
- _cwait(&nStatus,(int)ProcessInformation.hProcess,0);
+ _cwait(&nStatus,(intptr_t)ProcessInformation.hProcess,0);
CloseHandle(ProcessInformation.hProcess);
return nStatus;
Modified: branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/process.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/process.c?rev=34718&r1=34717&r2=34718&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/process.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/process/process.c [iso-8859-1] Wed Jul 23 19:54:12 2008
@@ -182,7 +182,7 @@
return str;
}
-static int
+static intptr_t
do_spawnT(int mode, const _TCHAR* cmdname, const _TCHAR* args, const _TCHAR* envp)
{
STARTUPINFO StartupInfo = {0};
@@ -304,7 +304,7 @@
{
case _P_NOWAIT:
case _P_NOWAITO:
- return((int)ProcessInformation.hProcess);
+ return((intptr_t)ProcessInformation.hProcess);
case _P_OVERLAY:
CloseHandle(ProcessInformation.hProcess);
_exit(0);
@@ -317,7 +317,7 @@
CloseHandle(ProcessInformation.hProcess);
return( 0);
}
- return( (int)ProcessInformation.hProcess);
+ return( (intptr_t)ProcessInformation.hProcess);
}
/*
Modified: branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfprintf.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfprintf.c?rev=34718&r1=34717&r2=34718&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfprintf.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfprintf.c [iso-8859-1] Wed Jul 23 19:54:12 2008
@@ -788,7 +788,7 @@
flags |= ZEROPAD;
}
result = number(f,
- (unsigned long) va_arg(args, void *), 16,
+ (uintptr_t) va_arg(args, void *), 16,
field_width, precision, flags);
if (result < 0)
return -1;
Modified: branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfwprint.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfwprint.c?rev=34718&r1=34717&r2=34718&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfwprint.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/stdio/lnx_vfwprint.c [iso-8859-1] Wed Jul 23 19:54:12 2008
@@ -761,7 +761,7 @@
flags |= ZEROPAD;
}
result = number(f,
- (unsigned long) va_arg(args, void *), 16,
+ (uintptr_t) va_arg(args, void *), 16,
field_width, precision, flags);
if (result < 0)
return -1;
Modified: branches/ros-amd64-bringup/reactos/lib/sdk/crt/string/ctype.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/sdk/crt/string/ctype.c?rev=34718&r1=34717&r2=34718&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/lib/sdk/crt/string/ctype.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/lib/sdk/crt/string/ctype.c [iso-8859-1] Wed Jul 23 19:54:12 2008
@@ -1,4 +1,6 @@
#include <string.h>
+#undef __MINGW_IMPORT
+#define __MINGW_IMPORT
#include <ctype.h>
#undef _pctype
- Previous message: [ros-diffs] [tkreuzer] 34717: Patch from Samuel Serapion ("encoded", samdwise51 at gmail dot com): - fix prototypes of _findfirst, _findnext, _findclose, _findfirsti64, _findnexti64 _wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, strndup, - fix a number of pointer to int casts
- Next message: [ros-diffs] [tkreuzer] 34719: last fixes for crt. Those are messing with handles and casting between 32 and 64 bit. I'm not sure if it's correct, probably not... crt and libcntpr now compile warning free on amd64
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Ros-diffs
mailing list