Make BLOCK definition pedantic
This commit is contained in:
@@ -78,8 +78,8 @@ The syntax for defining a block is:
|
||||
```c
|
||||
const Block blocks[] = {
|
||||
...
|
||||
BLOCK("volume", 0, 5)
|
||||
BLOCK("date", 1800, 1)
|
||||
BLOCK("volume", 0, 5),
|
||||
BLOCK("date", 1800, 1),
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
20
config.h
20
config.h
@@ -3,14 +3,14 @@
|
||||
#define CLICKABLE_BLOCKS
|
||||
|
||||
const Block blocks[] = {
|
||||
BLOCK("sb-mail", 1800, 17)
|
||||
BLOCK("sb-music", 0, 18)
|
||||
BLOCK("sb-disk", 1800, 19)
|
||||
BLOCK("sb-memory", 10, 20)
|
||||
BLOCK("sb-loadavg", 5, 21)
|
||||
BLOCK("sb-mic", 0, 26)
|
||||
BLOCK("sb-volume", 0, 22)
|
||||
BLOCK("sb-battery", 5, 23)
|
||||
BLOCK("sb-date", 1, 24)
|
||||
// BLOCK("sb-network", 5, 25)
|
||||
BLOCK("sb-mail", 1800, 17),
|
||||
BLOCK("sb-music", 0, 18),
|
||||
BLOCK("sb-disk", 1800, 19),
|
||||
BLOCK("sb-memory", 10, 20),
|
||||
BLOCK("sb-loadavg", 5, 21),
|
||||
BLOCK("sb-mic", 0, 26),
|
||||
BLOCK("sb-volume", 0, 22),
|
||||
BLOCK("sb-battery", 5, 23),
|
||||
BLOCK("sb-date", 1, 24),
|
||||
// BLOCK("sb-network", 5, 25),
|
||||
};
|
||||
|
||||
2
main.c
2
main.c
@@ -12,7 +12,7 @@
|
||||
|
||||
#define POLL_INTERVAL 50
|
||||
#define LEN(arr) (sizeof(arr) / sizeof(arr[0]))
|
||||
#define BLOCK(cmd, interval, signal) {"echo \"$(" cmd ")\"", interval, signal},
|
||||
#define BLOCK(cmd, interval, signal) {"echo \"$(" cmd ")\"", interval, signal}
|
||||
typedef struct {
|
||||
const char* command;
|
||||
const unsigned int interval;
|
||||
|
||||
Reference in New Issue
Block a user