JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Improve stacking for windows with multiple transients.
[spectrwm.git] / linux / util.h
1 #define FPARSELN_UNESCESC       0x01
2 #define FPARSELN_UNESCCONT      0x02
3 #define FPARSELN_UNESCCOMM      0x04
4 #define FPARSELN_UNESCREST      0x08
5 #define FPARSELN_UNESCALL       0x0f
6
7 size_t  strlcpy(char *, const char *, size_t);
8 size_t  strlcat(char *, const char *, size_t);
9
10 char   *fgetln(FILE *, size_t *);
11 char   *fparseln(FILE *, size_t *, size_t *, const char [3], int);
12
13 long long strtonum(const char *, long long, long long, const char **);
14
15 #ifndef WAIT_ANY
16 #define WAIT_ANY                (-1)
17 #endif
18
19 /* there is no limit to ulrich drepper's crap */
20 #ifndef TAILQ_END
21 #define TAILQ_END(head)                 NULL
22 #endif
23
24 #ifndef TAILQ_FOREACH_SAFE
25 #define TAILQ_FOREACH_SAFE(var, head, field, tvar)                      \
26         for ((var) = TAILQ_FIRST(head);                                 \
27             (var) != TAILQ_END(head) &&                                 \
28             ((tvar) = TAILQ_NEXT(var, field), 1);                       \
29             (var) = (tvar))
30 #endif