#! /bin/sh
#
# Copyright by The HDF Group.
# Copyright by the Board of Trustees of the University of Illinois.
# All rights reserved.
#
# This file is part of HDF5. The full HDF5 copyright notice, including
# terms governing use, modification, and redistribution, is contained in
# the COPYING file, which can be found at the root of the source code
# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
# If you do not have access to either file, you may request a copy from
# help@hdfgroup.org.
# A script to generate coverage files for HDF5 using gcov.
# Configures, builds, and runs tests in-place; the output files will be placed
# in a directory called gcov_logs.
# Must be invoked from the root hdf5 directory.
# This script has been tested on kagiso.
CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
export CFLAGS
LDFLAGS="$LDFLAGS -lgcov"
export LDFLAGS
CC=gcc
export CC
./configure
make
make check
mkdir gcov_logs
cd src
for j in *.h *.c
do
ln -s ../$j .libs/$j
done
cd .libs
for j in *.gcda
do
gcov -b $j >> gcov.log 2>&1
done
for j in *.gcov
do
mv $j ../../gcov_logs
done
mv gcov.log ../../gcov_logs
for j in *.c *.h
do
rm $j
done
cd ../..
ption value='androwish'>androwish
Tk is a free and open-source, cross-platform widget toolkit that provides a library of basic elements of GUI widgets for building a graphical user interface (GUI) in many programming languages.
we don't create new dependencies on Tcl internals.
* unix/tkUnixPort.h: Removed #include of tclInt.h that has been
* win/tkWinPort.h: disabled for three years. If we needed this
we'd have noticed by now.
X.org developers (Keith Packard in particular), it was discovered
that Tk is doing management of XIDs that it shouldn't need to do.
The very common XC-MISC extension which has come with every version
of X for the last 15 years is used with Xlib now, to retrieve the
information about the used/unused XIDs.
The public Tk_FreeXId is now a no-op.
Joe English reviewed the patch, and said "please commit."
The patch is associated with the bug tracker id: 2039720
generic/tkError.c: Remove the usage of TkpWindowWasRecentlyDeleted.
generic/tkInt.decls: Update the declarations for the now unused
internalstubs.
generic/tkIntDecls.h: Regenerated based on tkInt.decls.
generic/tkIntPlatDecls.h: Regenerated based on tkInt.decls.
generic/tkStubInit.c
generic/tkWindow.c: Remove the calls to TkInitXId, and TkFreeWindowId.
macosx/tkMaxOSXPort.h: Remove TkFreeWindowId and TkInitXId macro
definitions.
macosx/tkMacOSXXStubs.c: Remove the no-op
TkpWindowWasRecentlyDeleted.
unix/tkUnixEvent.c: Remove call to TkFreeXId.
unix/tkUnixXId.c: Remove a lot of unnecessary code (see above).
win/tkWinPort.h: Remove TkFreeWindowId and TkInitXId.
win/tkWinWindow.c: Remove TkpWindowWasRecentlyDeleted.