projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llx: Introduce new iteration macros and some users.
[pspp]
/
src
/
libpspp
/
ll.c
diff --git
a/src/libpspp/ll.c
b/src/libpspp/ll.c
index e6533f2cd25fccf5beb2cbf9a4da31c279022027..619adfac244430b5b6b3e231dd29f075737154a8 100644
(file)
--- a/
src/libpspp/ll.c
+++ b/
src/libpspp/ll.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009
, 2011
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-28,8
+28,8
@@
#include <config.h>
#endif
#include <config.h>
#endif
-#include
<libpspp/ll.h>
-#include <assert.h>
+#include
"libpspp/ll.h"
+
/* Returns the number of nodes in LIST (not counting the null
node). Executes in O(n) time in the length of the list. */
/* Returns the number of nodes in LIST (not counting the null
node). Executes in O(n) time in the length of the list. */
@@
-121,7
+121,7
@@
ll_remove_equal (struct ll *r0, struct ll *r1, struct ll *target,
size_t count;
count = 0;
size_t count;
count = 0;
- for (x = r0; x != r1;
)
+ for (x = r0; x != r1;)
if (compare (x, target, aux) == 0)
{
x = ll_remove (x);
if (compare (x, target, aux) == 0)
{
x = ll_remove (x);
@@
-144,7
+144,7
@@
ll_remove_if (struct ll *r0, struct ll *r1,
size_t count;
count = 0;
size_t count;
count = 0;
- for (x = r0; x != r1;
)
+ for (x = r0; x != r1;)
if (predicate (x, aux))
{
x = ll_remove (x);
if (predicate (x, aux))
{
x = ll_remove (x);