projects
/
sort-networks.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/sn_{network,stage}.[ch]: Implement sn_network_unify().
[sort-networks.git]
/
src
/
sn_comparator.h
diff --git
a/src/sn_comparator.h
b/src/sn_comparator.h
index
ba82dcb
..
db9bc07
100644
(file)
--- a/
src/sn_comparator.h
+++ b/
src/sn_comparator.h
@@
-28,6
+28,9
@@
#ifndef SN_COMPARATOR_H
#define SN_COMPARATOR_H 1
#ifndef SN_COMPARATOR_H
#define SN_COMPARATOR_H 1
+#include <stdint.h>
+#include <inttypes.h>
+
/**
* Struct representing a comparator. Don't access the members of this struct
* directly, use the macros below instead.
/**
* Struct representing a comparator. Don't access the members of this struct
* directly, use the macros below instead.
@@
-114,6
+117,8
@@
void sn_comparator_swap (sn_comparator_t *c, int con0, int con1);
int sn_comparator_compare (const sn_comparator_t *c0,
const sn_comparator_t *c1);
int sn_comparator_compare (const sn_comparator_t *c0,
const sn_comparator_t *c1);
+uint32_t sn_comparator_get_hashval (const sn_comparator_t *c);
+
#endif /* SN_COMPARATOR_H */
/* vim: set shiftwidth=2 softtabstop=2 : */
#endif /* SN_COMPARATOR_H */
/* vim: set shiftwidth=2 softtabstop=2 : */