drop __restrict to please old compilers

This commit is contained in:
Love Hornquist Astrand
2011-09-21 17:34:51 +02:00
parent 63b3cb9749
commit 8badb652c6
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ typedef enum {
ROKEN_CPP_START
ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tdelete(const void * __restrict, void ** __restrict,
ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tdelete(const void *, void **,
int (*)(const void *, const void *));
ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tfind(const void *, void * const *,
int (*)(const void *, const void *));

View File

@@ -19,7 +19,7 @@ struct node {
int order;
};
extern void *rk_tdelete(const void * __restrict, void ** __restrict,
extern void *rk_tdelete(const void *, void **,
int (*)(const void *, const void *));
extern void *rk_tfind(const void *, void * const *,
int (*)(const void *, const void *));

View File

@@ -113,7 +113,7 @@ rk_twalk(const void *vroot,
* compar: function to carry out node comparisons
*/
ROKEN_LIB_FUNCTION void *
rk_tdelete(const void * __restrict vkey, void ** __restrict vrootp,
rk_tdelete(const void * vkey, void ** vrootp,
int (*compar)(const void *, const void *))
{
node_t **rootp = (node_t **)vrootp;