[comp.os.minix] Minix stdio patches - 5 of 5

cechew@bruce.OZ (Earl Chew) (09/05/89)

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of archive 5 (of 5)."
# Contents:  vfscanf.c.cdif
# Wrapped by cechew@bruce on Tue Sep  5 16:55:09 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'vfscanf.c.cdif' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'vfscanf.c.cdif'\"
else
echo shar: Extracting \"'vfscanf.c.cdif'\" \(1686 characters\)
sed "s/^X//" >'vfscanf.c.cdif' <<'END_OF_FILE'
X*** Old/vfscanf.c	Sun Sep  3 14:49:40 1989
X--- New/vfscanf.c	Mon Sep  4 23:30:20 1989
X***************
X*** 10,16
X   * The function returns EOF on end of input, and a short count
X   * for missing or illegal data items.
X   *
X!  * Patchlevel 1.0
X   *
X   * Edit History:
X   */
X
X--- 10,16 -----
X   * The function returns EOF on end of input, and a short count
X   * for missing or illegal data items.
X   *
X!  * Patchlevel 1.1
X   *
X   * Edit History:
X   * 05-Sep-1989	Include limits.h if TOLOWER undefined so removing
X***************
X*** 13,18
X   * Patchlevel 1.0
X   *
X   * Edit History:
X   */
X  
X  #include <ctype.h>
X
X--- 13,20 -----
X   * Patchlevel 1.1
X   *
X   * Edit History:
X+  * 05-Sep-1989	Include limits.h if TOLOWER undefined so removing
X+  *		need to define MINIX when compiling.
X   */
X  
X  #include <ctype.h>
X***************
X*** 25,31
X  # define CHARSET	(1 << (BITSPERBYTE))
X  #endif
X  
X! #if	defined(MINIX) || defined(__MSDOS__) || defined(MSDOS)
X  # include <limits.h>
X  # define TOLOWER(c)	(tolower((c)))
X  # define CHARSET	(1 << (CHAR_BIT))
X
X--- 27,33 -----
X  # define CHARSET	(1 << (BITSPERBYTE))
X  #endif
X  
X! #if	!defined(TOLOWER)
X  # include <limits.h>
X  # define TOLOWER(c)	(tolower((c)))
X  # define CHARSET	(1 << (CHAR_BIT))
X***************
X*** 29,35
X  # include <limits.h>
X  # define TOLOWER(c)	(tolower((c)))
X  # define CHARSET	(1 << (CHAR_BIT))
X!   extern int tolower	Prototype((int));
X  #endif
X  
X  #define WHITESPACE(c)	((c)==' '||(c)=='\t'||(c)=='\n')
X
X--- 31,37 -----
X  # include <limits.h>
X  # define TOLOWER(c)	(tolower((c)))
X  # define CHARSET	(1 << (CHAR_BIT))
X!   extern int tolower	P((int));
X  #endif
X  
X  #define WHITESPACE(c)	((c)==' '||(c)=='\t'||(c)=='\n')
END_OF_FILE
if test 1686 -ne `wc -c <'vfscanf.c.cdif'`; then
    echo shar: \"'vfscanf.c.cdif'\" unpacked with wrong size!
fi
# end of 'vfscanf.c.cdif'
fi
echo shar: End of archive 5 \(of 5\).
cp /dev/null ark5isdone
MISSING=""
for I in 1 2 3 4 5 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have unpacked all 5 archives.
    rm -f ark[1-9]isdone
else
    echo You still need to unpack the following archives:
    echo "        " ${MISSING}
fi
##  End of shell archive.
exit 0