Mail Archives: djgpp-workers/2002/12/23/13:15:21
Hello.
K. B. Williams has released a work-in-progress of his C99 maths work:
ftp://ftp.delorie.com/pub/djgpp/kbwilliams-newlongs_dt00.zip
This archive contains two ZIP files, one containing the code and one
containing the documentation. Please find below a diff for the documentation,
which fixes a minor bug in it.
Why is the modfl documentation included in the documentation ZIP? There does
not appear to be any code for it in the archive. Also, modfl is already in
DJGPP. Has the documentation been included mistakenly?
Comments should go to djgpp-workers and K. B. Williams, since he's not
subscribed to djgpp-workers.
Also find below a script to convert the flat-directory structure of K. B.
Williams's ZIP files to the DJGPP structure. Change SRCDIR to point at the
place where you unzipped the ZIP files and DESTDIR to the root of your DJGPP
check-out. Then just run the script.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
diff -pc3r src/libc/c99/math/expm1l.txh ../src/libc/c99/math/expm1l.txh
*** src/libc/c99/math/expm1l.txh Mon Jun 3 11:29:08 2002
--- ../src/libc/c99/math/expm1l.txh Thu Dec 19 20:01:38 2002
*************** remains unchanged.
*** 40,46 ****
@itemx expm1l(-Inf) returns -1
@itemx expm1l(NaN) returns NaN
@sp 1
! @end example
@subheading Portability
--- 40,46 ----
@itemx expm1l(-Inf) returns -1
@itemx expm1l(NaN) returns NaN
@sp 1
! @end table
@subheading Portability
---Start kbw2djgpp.sh---
#!/bin/sh
SRCDIR=kbw
DESTDIR=kbw.djgpp
if [ ! -d ${SRCDIR} ]; then
echo "${SRCDIR} directory must contain K. B. Williams's work"
exit 1
fi
mkdir -p ${DESTDIR}
if [ ! -d ${DESTDIR} ]; then
echo "Could not create ${DESTDIR} directory!"
exit 1
fi
status=1
mkdir -p ${DESTDIR}/include || status=0
mkdir -p ${DESTDIR}/src/libc/c99/math || status=0
if [ "a$status" = "a0" ]; then
echo "Unable to create directories off ${DESTDIR} directory!"
exit 1
fi
cp -av ${SRCDIR}/*.h ${DESTDIR}/include
cp -av ${SRCDIR}/*.c ${DESTDIR}/src/libc/c99/math
cp -av ${SRCDIR}/*.txh ${DESTDIR}/src/libc/c99/math
# Generate the Makefile
YEAR=$(date +%Y)
MAKEFILE=${DESTDIR}/src/libc/c99/math/makefile
cat >${MAKEFILE} <<EOF
# Copyright (C) ${YEAR} DJ Delorie, see COPYING.DJ for details
TOP=../..
EOF
ls -1 ${DESTDIR}/src/libc/c99/math/*.c \
| sed -e 's:^.*/::' -e 's:^:SRC += :' \
>>${MAKEFILE}
cat >>${MAKEFILE} <<EOF
include \$(TOP)/../makefile.inc
EOF
---End kbw2djgpp.sh---
- Raw text -