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
/
llx.c
diff --git
a/src/libpspp/llx.c
b/src/libpspp/llx.c
index 905850bc41c13ec74be83289e0571c0972f464dc..43704e314ea2080c833d4745dc4e6b85e4557604 100644
(file)
--- a/
src/libpspp/llx.c
+++ b/
src/libpspp/llx.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,9
+28,8
@@
#include <config.h>
#endif
#include <config.h>
#endif
-#include <libpspp/llx.h>
-#include "compiler.h"
-#include <assert.h>
+#include "libpspp/llx.h"
+#include "libpspp/compiler.h"
#include <stdlib.h>
/* Destroys LIST and frees all of its nodes using MANAGER.
#include <stdlib.h>
/* Destroys LIST and frees all of its nodes using MANAGER.
@@
-165,7
+164,7
@@
llx_remove_range (struct llx *r0, struct llx *r1,
{
struct llx *llx;
{
struct llx *llx;
- for (llx = r0; llx != r1;
)
+ for (llx = r0; llx != r1;)
llx = llx_remove (llx, manager);
}
llx = llx_remove (llx, manager);
}
@@
-182,7
+181,7
@@
llx_remove_equal (struct llx *r0, struct llx *r1, const void *target,
size_t count;
count = 0;
size_t count;
count = 0;
- for (x = r0; x != r1;
)
+ for (x = r0; x != r1;)
if (compare (llx_data (x), target, aux) == 0)
{
x = llx_remove (x, manager);
if (compare (llx_data (x), target, aux) == 0)
{
x = llx_remove (x, manager);
@@
-207,7
+206,7
@@
llx_remove_if (struct llx *r0, struct llx *r1,
size_t count;
count = 0;
size_t count;
count = 0;
- for (x = r0; x != r1;
)
+ for (x = r0; x != r1;)
if (predicate (llx_data (x), aux))
{
x = llx_remove (x, manager);
if (predicate (llx_data (x), aux))
{
x = llx_remove (x, manager);