drop __restrict to please old compilers
This commit is contained in:
@@ -32,7 +32,7 @@ typedef enum {
|
|||||||
|
|
||||||
ROKEN_CPP_START
|
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 *));
|
int (*)(const void *, const void *));
|
||||||
ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tfind(const void *, void * const *,
|
ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tfind(const void *, void * const *,
|
||||||
int (*)(const void *, const void *));
|
int (*)(const void *, const void *));
|
||||||
|
@@ -19,7 +19,7 @@ struct node {
|
|||||||
int order;
|
int order;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void *rk_tdelete(const void * __restrict, void ** __restrict,
|
extern void *rk_tdelete(const void *, void **,
|
||||||
int (*)(const void *, const void *));
|
int (*)(const void *, const void *));
|
||||||
extern void *rk_tfind(const void *, void * const *,
|
extern void *rk_tfind(const void *, void * const *,
|
||||||
int (*)(const void *, const void *));
|
int (*)(const void *, const void *));
|
||||||
|
@@ -113,7 +113,7 @@ rk_twalk(const void *vroot,
|
|||||||
* compar: function to carry out node comparisons
|
* compar: function to carry out node comparisons
|
||||||
*/
|
*/
|
||||||
ROKEN_LIB_FUNCTION void *
|
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 *))
|
int (*compar)(const void *, const void *))
|
||||||
{
|
{
|
||||||
node_t **rootp = (node_t **)vrootp;
|
node_t **rootp = (node_t **)vrootp;
|
||||||
|
Reference in New Issue
Block a user