Fixed compile errors for enabled KAPS_STATISTIC.
[libfirm] / bucket.h
index 32adf86..50a2820 100644 (file)
--- a/bucket.h
+++ b/bucket.h
@@ -1,3 +1,29 @@
+/*
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
+/**
+ * @file
+ * @brief   Buckets for nodes and edges.
+ * @date    30.11.2008
+ * @author  Sebastian Buchwald
+ * @version $Id$
+ */
 #ifndef KAPS_BUCKET_H
 #define KAPS_BUCKET_H
 
@@ -10,7 +36,6 @@ void edge_bucket_init(pbqp_edge_bucket *bucket);
 void edge_bucket_insert(pbqp_edge_bucket *bucket, pbqp_edge *edge);
 pbqp_edge *edge_bucket_pop(pbqp_edge_bucket *bucket);
 
-void node_bucket_clear(pbqp_node_bucket *bucket);
 int node_bucket_contains(pbqp_node_bucket bucket, pbqp_node *node);
 void node_bucket_copy(pbqp_node_bucket *dst, pbqp_node_bucket src);
 void node_bucket_deep_copy(pbqp *pbqp, pbqp_node_bucket *dst, pbqp_node_bucket src);
@@ -20,5 +45,7 @@ void node_bucket_init(pbqp_node_bucket *bucket);
 void node_bucket_insert(pbqp_node_bucket *bucket, pbqp_node *node);
 pbqp_node *node_bucket_pop(pbqp_node_bucket *bucket);
 void node_bucket_remove(pbqp_node_bucket *bucket, pbqp_node *node);
+void node_bucket_shrink(pbqp_node_bucket *bucket, unsigned len);
+void node_bucket_update(pbqp *pbqp, pbqp_node_bucket bucket);
 
 #endif /* KAPS_BUCKET_H */