2013-11-20 Daniel Ramirez <javamonn@gmail.com>
* libc/include/search.h, libc/search/tdelete.c: Add restrict keyword.
This commit is contained in:
parent
ea9d80921f
commit
3c7451d8de
|
@ -1,3 +1,7 @@
|
||||||
|
2013-11-20 Daniel Ramirez <javamonn@gmail.com>
|
||||||
|
|
||||||
|
* libc/include/search.h, libc/search/tdelete.c: Add restrict keyword.
|
||||||
|
|
||||||
2013-11-20 Chirayu Desai <chirayudesai1@gmail.com>
|
2013-11-20 Chirayu Desai <chirayudesai1@gmail.com>
|
||||||
|
|
||||||
* libc/include/regex.h, libc/posix/regcomp.c,
|
* libc/include/regex.h, libc/posix/regcomp.c,
|
||||||
|
|
|
@ -54,7 +54,7 @@ ENTRY *hsearch(ENTRY, ACTION);
|
||||||
int hcreate_r(size_t, struct hsearch_data *);
|
int hcreate_r(size_t, struct hsearch_data *);
|
||||||
void hdestroy_r(struct hsearch_data *);
|
void hdestroy_r(struct hsearch_data *);
|
||||||
int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
|
int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
|
||||||
void *tdelete(const void *, void **, __compar_fn_t);
|
void *tdelete(const void *__restrict, void **__restrict, __compar_fn_t);
|
||||||
void tdestroy (void *, void (*)(void *));
|
void tdestroy (void *, void (*)(void *));
|
||||||
void *tfind(const void *, void **, __compar_fn_t);
|
void *tfind(const void *, void **, __compar_fn_t);
|
||||||
void *tsearch(const void *, void **, __compar_fn_t);
|
void *tsearch(const void *, void **, __compar_fn_t);
|
||||||
|
|
|
@ -27,8 +27,8 @@ __RCSID("$NetBSD: tdelete.c,v 1.2 1999/09/16 11:45:37 lukem Exp $");
|
||||||
/* delete node with given key */
|
/* delete node with given key */
|
||||||
void *
|
void *
|
||||||
_DEFUN(tdelete, (vkey, vrootp, compar),
|
_DEFUN(tdelete, (vkey, vrootp, compar),
|
||||||
const void *vkey _AND /* key to be deleted */
|
const void *__restrict vkey _AND /* key to be deleted */
|
||||||
void **vrootp _AND /* address of the root of tree */
|
void **__restrict vrootp _AND /* address of the root of tree */
|
||||||
int (*compar)(const void *, const void *))
|
int (*compar)(const void *, const void *))
|
||||||
{
|
{
|
||||||
node_t **rootp = (node_t **)vrootp;
|
node_t **rootp = (node_t **)vrootp;
|
||||||
|
|
Loading…
Reference in New Issue