summaryrefslogtreecommitdiff
path: root/www/middleman/files/patch-include-macros.h
blob: 635d366909dd32df90c8bce2150eb70984eeffc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- include/macros.h.orig	Sat Jul 19 05:53:50 2003
+++ include/macros.h	Thu Jul  5 05:45:33 2007
@@ -103,9 +103,10 @@
 /*
 this macro will shift a node in a linked list up or down one
 */
-#define SHIFTNODE(t, x, a, d) { \
+#define SHIFTNODE(t, _x, a, d) { \
 	do { \
 		t tmp_node = NULL; \
+		t x = _x; \
 		if (d == UP && a != (x)) { \
 			if ((x) == a->prev) (x) = a; \
 			if (a->prev->prev != NULL) a->prev->prev->next = a; \
@@ -131,9 +132,10 @@
 /*
 this macro moves a list node to top or bottom of list
 */
-#define SETNODE(t, x, a, d) { \
+#define SETNODE(t, _x, a, d) { \
 	do { \
 		t tmp_node = NULL; \
+		t x = _x; \
 		if (d == TOP && a != (x)) { \
 			if (a->next != NULL) a->next->prev = a->prev; \
 			a->prev->next = a->next; \