Added abs() and labs()

svn path=/trunk/; revision=859
This commit is contained in:
Eric Kohl 1999-12-12 00:20:29 +00:00
parent 0ce89e21d9
commit 55fef42029
6 changed files with 25 additions and 9 deletions

View file

@ -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 ; ReactOS Operating System
; ;
@ -570,7 +570,7 @@ _wcsupr
;_wtoi ;_wtoi
;_wtoi64 ;_wtoi64
;_wtol ;_wtol
;abs abs
;atan ;atan
atoi atoi
atol atol
@ -591,7 +591,7 @@ isupper
;iswalpha ;iswalpha
;iswctype ;iswctype
isxdigit isxdigit
;labs labs
;log ;log
;mbstowcs ;mbstowcs
memchr memchr

View file

@ -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 ; ReactOS Operating System
; ;
@ -533,6 +533,7 @@ _wcsicmp
_wcslwr _wcslwr
_wcsnicmp _wcsnicmp
_wcsupr _wcsupr
abs
atoi atoi
atol atol
isalpha isalpha
@ -546,6 +547,7 @@ ispunct
isspace isspace
isupper isupper
isxdigit isxdigit
labs
memchr memchr
memcmp memcmp
memcpy memcpy

View file

@ -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 # 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/mem.o rtl/nls.o rtl/process.o rtl/security.o \
rtl/thread.o rtl/unicode.o rtl/env.o rtl/thread.o rtl/unicode.o rtl/env.o
STDLIB_OBJECTS = stdlib/atoi.o stdlib/atol.o stdlib/splitp.o \ STDLIB_OBJECTS = stdlib/abs.o stdlib/atoi.o stdlib/atol.o stdlib/labs.o \
stdlib/strtol.o stdlib/strtoul.o stdlib/splitp.o stdlib/strtol.o stdlib/strtoul.o
STRING_OBJECTS = string/ctype.o string/memccpy.o string/memchr.o \ STRING_OBJECTS = string/ctype.o string/memccpy.o string/memchr.o \
string/memcmp.o string/memcpy.o string/memicmp.o\ string/memcmp.o string/memcpy.o string/memicmp.o\

View 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;
}

View 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;
}

View file

@ -214,7 +214,6 @@ STUB(_vsnprintf)
STUB(_wtoi) STUB(_wtoi)
STUB(_wtoi64) STUB(_wtoi64)
STUB(_wtol) STUB(_wtol)
STUB(abs)
STUB(atan) STUB(atan)
STUB(ceil) STUB(ceil)
STUB(cos) STUB(cos)
@ -222,7 +221,6 @@ STUB(fabs)
STUB(floor) STUB(floor)
STUB(iswalpha) STUB(iswalpha)
STUB(iswctype) STUB(iswctype)
STUB(labs)
STUB(log) STUB(log)
STUB(mbstowcs) STUB(mbstowcs)
STUB(pow) STUB(pow)