Commit da61b7d5 by Kaveh R. Ghazi Committed by Kaveh Ghazi

splay-tree.h: Wrap function pointer parameter declarations in PARAMS() macro.

        * splay-tree.h: Wrap function pointer parameter declarations in
        PARAMS() macro.

From-SVN: r23231
parent b056ad1c
Thu Oct 22 19:58:00 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* splay-tree.h: Wrap function pointer parameter declarations in
PARAMS() macro.
1998-10-21 Mark Mitchell <mark@markmitchell.com> 1998-10-21 Mark Mitchell <mark@markmitchell.com>
* splay-tree.h: New file. * splay-tree.h: New file.
......
...@@ -52,18 +52,18 @@ typedef struct splay_tree_node *splay_tree_node; ...@@ -52,18 +52,18 @@ typedef struct splay_tree_node *splay_tree_node;
/* The type of a function which compares two splay-tree keys. The /* The type of a function which compares two splay-tree keys. The
function should return values as for qsort. */ function should return values as for qsort. */
typedef int (*splay_tree_compare_fn)(splay_tree_key, splay_tree_key); typedef int (*splay_tree_compare_fn) PARAMS((splay_tree_key, splay_tree_key));
/* The type of a function used to deallocate any resources associated /* The type of a function used to deallocate any resources associated
with the key. */ with the key. */
typedef void (*splay_tree_delete_key_fn)(splay_tree_key); typedef void (*splay_tree_delete_key_fn) PARAMS((splay_tree_key));
/* The type of a function used to deallocate any resources associated /* The type of a function used to deallocate any resources associated
with the value. */ with the value. */
typedef void (*splay_tree_delete_value_fn)(splay_tree_value); typedef void (*splay_tree_delete_value_fn) PARAMS((splay_tree_value));
/* The type of a function used to iterate over the tree. */ /* The type of a function used to iterate over the tree. */
typedef int (*splay_tree_foreach_fn)(splay_tree_node, void*); typedef int (*splay_tree_foreach_fn) PARAMS((splay_tree_node, void*));
/* The nodes in the splay tree. */ /* The nodes in the splay tree. */
struct splay_tree_node struct splay_tree_node
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment