Mercurial > yawc
annotate src/include/util.h @ 0:f0372d3356b4 default tip
initial import
| author | Yasuri <linuxoverwindows@charliesmp.net> |
|---|---|
| date | Sun, 30 Aug 2026 12:47:10 -0500 |
| parents | |
| children |
| rev | line source |
|---|---|
| 0 | 1 #ifndef UTIL_H |
| 2 #define UTIL_H | |
| 3 | |
| 4 #include <stdarg.h> | |
| 5 #include <stdint.h> | |
| 6 #include <stdio.h> | |
| 7 | |
| 8 #include <swc.h> | |
| 9 #include <wayland-server.h> | |
| 10 | |
| 11 void die(int ret, const char* fmt, ...); | |
| 12 void _log(FILE* fd, const char* fmt, ...); | |
| 13 void sig_handler(int s); | |
| 14 | |
| 15 #define LENGTH(x) (sizeof(x) / sizeof((x)[0])) | |
| 16 | |
| 17 #endif /* UTIL_H */ | |
| 18 |
