mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Added abs() and labs()
svn path=/trunk/; revision=859
This commit is contained in:
parent
0ce89e21d9
commit
55fef42029
6 changed files with 25 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
; $Id: ntdll.def,v 1.28 1999/12/06 00:22:00 ekohl Exp $
|
||||
; $Id: ntdll.def,v 1.29 1999/12/12 00:17:25 ekohl Exp $
|
||||
;
|
||||
; ReactOS Operating System
|
||||
;
|
||||
|
@ -570,7 +570,7 @@ _wcsupr
|
|||
;_wtoi
|
||||
;_wtoi64
|
||||
;_wtol
|
||||
;abs
|
||||
abs
|
||||
;atan
|
||||
atoi
|
||||
atol
|
||||
|
@ -591,7 +591,7 @@ isupper
|
|||
;iswalpha
|
||||
;iswctype
|
||||
isxdigit
|
||||
;labs
|
||||
labs
|
||||
;log
|
||||
;mbstowcs
|
||||
memchr
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: ntdll.edf,v 1.18 1999/12/06 00:22:00 ekohl Exp $
|
||||
; $Id: ntdll.edf,v 1.19 1999/12/12 00:17:25 ekohl Exp $
|
||||
;
|
||||
; ReactOS Operating System
|
||||
;
|
||||
|
@ -533,6 +533,7 @@ _wcsicmp
|
|||
_wcslwr
|
||||
_wcsnicmp
|
||||
_wcsupr
|
||||
abs
|
||||
atoi
|
||||
atol
|
||||
isalpha
|
||||
|
@ -546,6 +547,7 @@ ispunct
|
|||
isspace
|
||||
isupper
|
||||
isxdigit
|
||||
labs
|
||||
memchr
|
||||
memcmp
|
||||
memcpy
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $Id: makefile,v 1.28 1999/12/01 15:15:27 ekohl Exp $
|
||||
# $Id: makefile,v 1.29 1999/12/12 00:20:29 ekohl Exp $
|
||||
#
|
||||
# ReactOS Operating System
|
||||
#
|
||||
|
@ -27,8 +27,8 @@ RTL_OBJECTS = rtl/critical.o rtl/error.o rtl/heap.o rtl/largeint.o \
|
|||
rtl/mem.o rtl/nls.o rtl/process.o rtl/security.o \
|
||||
rtl/thread.o rtl/unicode.o rtl/env.o
|
||||
|
||||
STDLIB_OBJECTS = stdlib/atoi.o stdlib/atol.o stdlib/splitp.o \
|
||||
stdlib/strtol.o stdlib/strtoul.o
|
||||
STDLIB_OBJECTS = stdlib/abs.o stdlib/atoi.o stdlib/atol.o stdlib/labs.o \
|
||||
stdlib/splitp.o stdlib/strtol.o stdlib/strtoul.o
|
||||
|
||||
STRING_OBJECTS = string/ctype.o string/memccpy.o string/memchr.o \
|
||||
string/memcmp.o string/memcpy.o string/memicmp.o\
|
||||
|
|
8
reactos/lib/ntdll/stdlib/abs.c
Normal file
8
reactos/lib/ntdll/stdlib/abs.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <crtdll/stdlib.h>
|
||||
|
||||
int
|
||||
abs(int j)
|
||||
{
|
||||
return j<0 ? -j : j;
|
||||
}
|
8
reactos/lib/ntdll/stdlib/labs.c
Normal file
8
reactos/lib/ntdll/stdlib/labs.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
||||
#include <crtdll/stdlib.h>
|
||||
|
||||
long
|
||||
labs(long j)
|
||||
{
|
||||
return j<0 ? -j : j;
|
||||
}
|
|
@ -214,7 +214,6 @@ STUB(_vsnprintf)
|
|||
STUB(_wtoi)
|
||||
STUB(_wtoi64)
|
||||
STUB(_wtol)
|
||||
STUB(abs)
|
||||
STUB(atan)
|
||||
STUB(ceil)
|
||||
STUB(cos)
|
||||
|
@ -222,7 +221,6 @@ STUB(fabs)
|
|||
STUB(floor)
|
||||
STUB(iswalpha)
|
||||
STUB(iswctype)
|
||||
STUB(labs)
|
||||
STUB(log)
|
||||
STUB(mbstowcs)
|
||||
STUB(pow)
|
||||
|
|
Loading…
Reference in a new issue