:
#
# Copyright 1993 Brent Townshend (bst@tc.com)
# Townshend Computer Tools
# Montreal, Quebec
#
# Wed Aug 25 11:38:27 EDT 1993
#
# Revision History: $Log: declare,v $
# Revision 1.4  1994/03/07  18:43:12  bst
# Fixed test.
#
# Revision 1.3  1994/03/04  15:28:28  bst
# Added -f option.
#
# Revision 1.2  1993/08/27  00:57:06  bst
# Fixed MISSING check for include files.
#
# Revision 1.1  1993/08/25  18:13:40  bst
# Initial revision
#
#
#
# Declare a function if it is not declared in a system header
# Usage: declare headers ftype function args
# CC, CCFLAGS, and DEFHEADERS must be defined before calling.
# Reads from syscap.new
# Appends to 'SysConfig.errs' and 'sysdecls.new'
if [ "X$1" = "X-f" ]
then
    shift
else
    grep -s 'MISSING_'$3'$' syscap.new >/dev/null && exit 0
fi
if checkhasdecl $3 $1
then
    echo $n "$3+...$c"
else
    echo $n "$3-...$c"
    echo "$2 $3 P($4);" >>sysdecls.new
fi
