mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Removed debug messages from queuing code (sorry)
Added __int64 datatype to files that use it Hid bug in ide driver (or somewhere) for now svn path=/trunk/; revision=920
This commit is contained in:
parent
623093eaaa
commit
4d8c6a710b
7 changed files with 28 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: ide.c,v 1.25 1999/12/30 01:51:40 dwelch Exp $
|
||||
/* $Id: ide.c,v 1.26 2000/01/06 00:26:16 dwelch Exp $
|
||||
*
|
||||
* IDE.C - IDE Disk driver
|
||||
* written by Rex Jolliff
|
||||
|
@ -2023,9 +2023,12 @@ IDEIoTimer(PDEVICE_OBJECT DeviceObject,
|
|||
if (++ControllerExtension->Retries > IDE_MAX_CMD_RETRIES)
|
||||
{
|
||||
DPRINT("Max retries has been reached, IRP finished with error\n");
|
||||
if (ControllerExtension->CurrentIrp != NULL)
|
||||
{
|
||||
ControllerExtension->CurrentIrp->IoStatus.Status = STATUS_IO_TIMEOUT;
|
||||
ControllerExtension->CurrentIrp->IoStatus.Information = 0;
|
||||
IDEFinishOperation(ControllerExtension);
|
||||
}
|
||||
ControllerExtension->TimerState = IDETimerIdle;
|
||||
ControllerExtension->TimerCount = 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: atoi64.c,v 1.1 1999/12/30 01:32:35 ekohl Exp $
|
||||
/* $Id: atoi64.c,v 1.2 2000/01/06 00:26:15 dwelch Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -9,6 +9,8 @@
|
|||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
typedef long long __int64;
|
||||
|
||||
__int64
|
||||
_atoi64 (const char *nptr)
|
||||
{
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef long long __int64;
|
||||
typedef unsigned long long __uint64;
|
||||
|
||||
char *
|
||||
_i64toa(__int64 value, char *string, int radix)
|
||||
|
@ -18,7 +20,7 @@ _i64toa(__int64 value, char *string, int radix)
|
|||
char tmp[65];
|
||||
char *tp = tmp;
|
||||
__int64 i;
|
||||
unsigned __int64 v;
|
||||
__uint64 v;
|
||||
__int64 sign;
|
||||
char *sp;
|
||||
|
||||
|
@ -31,7 +33,7 @@ _i64toa(__int64 value, char *string, int radix)
|
|||
if (sign)
|
||||
v = -value;
|
||||
else
|
||||
v = (unsigned __int64)value;
|
||||
v = (__uint64)value;
|
||||
while (v || tp == tmp)
|
||||
{
|
||||
i = v % radix;
|
||||
|
|
|
@ -11,13 +11,16 @@
|
|||
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef long long __int64;
|
||||
typedef unsigned long long __uint64;
|
||||
|
||||
wchar_t *
|
||||
_i64tow(__int64 value, wchar_t *string, int radix)
|
||||
{
|
||||
wchar_t tmp[65];
|
||||
wchar_t *tp = tmp;
|
||||
__int64 i;
|
||||
unsigned __int64 v;
|
||||
__uint64 v;
|
||||
__int64 sign;
|
||||
wchar_t *sp;
|
||||
|
||||
|
@ -30,7 +33,7 @@ _i64tow(__int64 value, wchar_t *string, int radix)
|
|||
if (sign)
|
||||
v = -value;
|
||||
else
|
||||
v = (unsigned __int64)value;
|
||||
v = (__uint64)value;
|
||||
while (v || tp == tmp)
|
||||
{
|
||||
i = v % radix;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: wtoi64.c,v 1.1 1999/12/30 01:32:35 ekohl Exp $
|
||||
/* $Id: wtoi64.c,v 1.2 2000/01/06 00:26:15 dwelch Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -9,6 +9,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
|
||||
typedef long long __int64;
|
||||
typedef unsigned long long __uint64;
|
||||
|
||||
__int64
|
||||
_wtoi64 (const wchar_t *nptr)
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
//#define NDEBUG
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <ddk/ntddk.h>
|
||||
|
||||
//#define NDEBUG
|
||||
#define NDEBUG
|
||||
#include <internal/debug.h>
|
||||
|
||||
/* FUNCTIONS *****************************************************************/
|
||||
|
|
Loading…
Reference in a new issue