repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.9.5
[deb_libnfs.git]
/
include
/
slist.h
diff --git
a/include/slist.h
b/include/slist.h
index 56c836414dcad24f3997afb288fce9ad50eeedd5..5755ca14e3b6edef9b4488329a417c6bfa3a03a8 100644
(file)
--- a/
include/slist.h
+++ b/
include/slist.h
@@
-15,15
+15,18
@@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#define SLIST_ADD(list, item) \
+#ifndef _LIBNFS_SLIST_H_
+#define _LIBNFS_SLIST_H_
+
+#define LIBNFS_LIST_ADD(list, item) \
do { \
(item)->next = (*list); \
(*list) = (item); \
} while (0);
do { \
(item)->next = (*list); \
(*list) = (item); \
} while (0);
-#define
SLIST_ADD_END(list, item)
\
+#define
LIBNFS_LIST_ADD_END(list, item)
\
if ((*list) == NULL) { \
if ((*list) == NULL) { \
-
SLIST_ADD((list), (item));
\
+
LIBNFS_LIST_ADD((list), (item));
\
} else { \
void *head = (*list); \
while ((*list)->next) \
} else { \
void *head = (*list); \
while ((*list)->next) \
@@
-33,7
+36,7
@@
(*list) = head; \
}
(*list) = head; \
}
-#define
S
LIST_REMOVE(list, item) \
+#define
LIBNFS_
LIST_REMOVE(list, item) \
if ((*list) == (item)) { \
(*list) = (item)->next; \
} else { \
if ((*list) == (item)) { \
(*list) = (item)->next; \
} else { \
@@
-46,6
+49,4
@@
(*list) = head; \
}
(*list) = head; \
}
-
-
-
+#endif /* !_LIBNFS_SLIST_H_ */