mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Removed some obsolete definitions of __unit64.
Added a few missing newlines. svn path=/trunk/; revision=3254
This commit is contained in:
parent
b0c64e3f9f
commit
dbd109d357
6 changed files with 10 additions and 21 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: atoi64.c,v 1.2 2000/01/06 00:26:15 dwelch Exp $
|
/* $Id: atoi64.c,v 1.3 2002/07/18 18:12:59 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -9,8 +9,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
typedef long long __int64;
|
|
||||||
|
|
||||||
__int64
|
__int64
|
||||||
_atoi64 (const char *nptr)
|
_atoi64 (const char *nptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,16 +11,13 @@
|
||||||
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
typedef long long __int64;
|
|
||||||
typedef unsigned long long __uint64;
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
_i64toa(__int64 value, char *string, int radix)
|
_i64toa(__int64 value, char *string, int radix)
|
||||||
{
|
{
|
||||||
char tmp[65];
|
char tmp[65];
|
||||||
char *tp = tmp;
|
char *tp = tmp;
|
||||||
__int64 i;
|
__int64 i;
|
||||||
__uint64 v;
|
unsigned __int64 v;
|
||||||
__int64 sign;
|
__int64 sign;
|
||||||
char *sp;
|
char *sp;
|
||||||
|
|
||||||
|
@ -33,7 +30,7 @@ _i64toa(__int64 value, char *string, int radix)
|
||||||
if (sign)
|
if (sign)
|
||||||
v = -value;
|
v = -value;
|
||||||
else
|
else
|
||||||
v = (__uint64)value;
|
v = (unsigned __int64)value;
|
||||||
while (v || tp == tmp)
|
while (v || tp == tmp)
|
||||||
{
|
{
|
||||||
i = v % radix;
|
i = v % radix;
|
||||||
|
|
|
@ -11,16 +11,13 @@
|
||||||
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
typedef long long __int64;
|
|
||||||
typedef unsigned long long __uint64;
|
|
||||||
|
|
||||||
wchar_t *
|
wchar_t *
|
||||||
_i64tow(__int64 value, wchar_t *string, int radix)
|
_i64tow(__int64 value, wchar_t *string, int radix)
|
||||||
{
|
{
|
||||||
wchar_t tmp[65];
|
wchar_t tmp[65];
|
||||||
wchar_t *tp = tmp;
|
wchar_t *tp = tmp;
|
||||||
__int64 i;
|
__int64 i;
|
||||||
__uint64 v;
|
unsigned __int64 v;
|
||||||
__int64 sign;
|
__int64 sign;
|
||||||
wchar_t *sp;
|
wchar_t *sp;
|
||||||
|
|
||||||
|
@ -33,7 +30,7 @@ _i64tow(__int64 value, wchar_t *string, int radix)
|
||||||
if (sign)
|
if (sign)
|
||||||
v = -value;
|
v = -value;
|
||||||
else
|
else
|
||||||
v = (__uint64)value;
|
v = (unsigned __int64)value;
|
||||||
while (v || tp == tmp)
|
while (v || tp == tmp)
|
||||||
{
|
{
|
||||||
i = v % radix;
|
i = v % radix;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: mbstowcs.c,v 1.1 1999/12/30 14:38:54 ekohl Exp $
|
/* $Id: mbstowcs.c,v 1.2 2002/07/18 18:12:59 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: wcstombs.c,v 1.1 1999/12/30 14:38:54 ekohl Exp $
|
/* $Id: wcstombs.c,v 1.2 2002/07/18 18:12:59 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: wtoi64.c,v 1.2 2000/01/06 00:26:15 dwelch Exp $
|
/* $Id: wtoi64.c,v 1.3 2002/07/18 18:12:59 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -9,9 +9,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
typedef long long __int64;
|
|
||||||
typedef unsigned long long __uint64;
|
|
||||||
|
|
||||||
__int64
|
__int64
|
||||||
_wtoi64 (const wchar_t *nptr)
|
_wtoi64 (const wchar_t *nptr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue