Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix stacking issue at (re)start when spawn_position = first or prev.
[spectrwm.git]
/
linux
/
util.h
diff --git
a/linux/util.h
b/linux/util.h
index
3bc8a20
..
634b112
100644
(file)
--- a/
linux/util.h
+++ b/
linux/util.h
@@
-1,5
+1,3
@@
-/* $scrotwm$ */
-
#define FPARSELN_UNESCESC 0x01
#define FPARSELN_UNESCCONT 0x02
#define FPARSELN_UNESCCOMM 0x04
#define FPARSELN_UNESCESC 0x01
#define FPARSELN_UNESCCONT 0x02
#define FPARSELN_UNESCCOMM 0x04
@@
-22,3
+20,11
@@
long long strtonum(const char *, long long, long long, const char **);
#ifndef TAILQ_END
#define TAILQ_END(head) NULL
#endif
#ifndef TAILQ_END
#define TAILQ_END(head) NULL
#endif
+
+#ifndef TAILQ_FOREACH_SAFE
+#define TAILQ_FOREACH_SAFE(var, head, field, tvar) \
+ for ((var) = TAILQ_FIRST(head); \
+ (var) != TAILQ_END(head) && \
+ ((tvar) = TAILQ_NEXT(var, field), 1); \
+ (var) = (tvar))
+#endif