projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make tests public. Rewrite most tests. Add tests.
[pintos-anon]
/
src
/
lib
/
kernel
/
list.c
diff --git
a/src/lib/kernel/list.c
b/src/lib/kernel/list.c
index 1a1e24d42107390b0e4f70499792c814894eb50f..0b37f33dc9f70b7ec66952f77100b96c0f7585bc 100644
(file)
--- a/
src/lib/kernel/list.c
+++ b/
src/lib/kernel/list.c
@@
-31,6
+31,9
@@
elements allows us to do a little bit of checking on some
operations, which can be valuable.) */
elements allows us to do a little bit of checking on some
operations, which can be valuable.) */
+static bool is_sorted (struct list_elem *a, struct list_elem *b,
+ list_less_func *less, void *aux) UNUSED;
+
/* Returns true if ELEM is a head, false otherwise. */
static inline bool
is_head (struct list_elem *elem)
/* Returns true if ELEM is a head, false otherwise. */
static inline bool
is_head (struct list_elem *elem)