X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-tsearch.c;h=862979200f95955a360d518c82cf65dc26bf3651;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=273f3ab318f880651e6c62981467979c2109cb0d;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-tsearch.c b/tests/test-tsearch.c index 273f3ab31..862979200 100644 --- a/tests/test-tsearch.c +++ b/tests/test-tsearch.c @@ -1,5 +1,5 @@ /* Test program for tsearch et al. - Copyright (C) 1997, 2000-2001, 2007-2008 Free Software Foundation, Inc. + Copyright (C) 1997, 2000-2001, 2007-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software: you can redistribute it and/or @@ -19,6 +19,16 @@ #include +#include "signature.h" +SIGNATURE_CHECK (tdelete, void *, (void const *, void **, + int (*) (void const *, void const *))); +SIGNATURE_CHECK (tfind, void *, (void const *, void * const *, + int (*) (void const *, void const *))); +SIGNATURE_CHECK (tsearch, void *, (void const *, void **, + int (*) (void const *, void const *))); +SIGNATURE_CHECK (twalk, void, (void const *, + void (*) (void const *, VISIT, int))); + #include #include #include @@ -65,7 +75,7 @@ static int error = 0; /* The keys we add to the tree. */ static int x[SIZE]; -/* Pointers into the key array, possibly permutated, to define an order +/* Pointers into the key array, possibly permuted, to define an order for insertion/removal. */ static int y[SIZE];