diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/utils.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h new file mode 100644 index 0000000..52849ea --- /dev/null +++ b/include/utils.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | // utils.h --- various utilities -*- C -*- | ||
| 2 | // | ||
| 3 | // Copyright (c) 2026 Martin Michalec <martin@michalec.dev> | ||
| 4 | // | ||
| 5 | // SPDX-License-Identifier: MIT | ||
| 6 | // | ||
| 7 | // This file is part of COSMOS Codebase. | ||
| 8 | // | ||
| 9 | // Commentary: | ||
| 10 | // | ||
| 11 | // Code: | ||
| 12 | |||
| 13 | #ifndef INCLUDED_COSMOS_UTILS_H | ||
| 14 | #define INCLUDED_COSMOS_UTILS_H | ||
| 15 | |||
| 16 | #include "ms.h" | ||
| 17 | #include "gpa.h" | ||
| 18 | |||
| 19 | #include <stdio.h> | ||
| 20 | |||
| 21 | struct ms load_file (const char *filename); | ||
| 22 | void *nmmap (usz size, int n); | ||
| 23 | void hexdump (FILE *out, const void *buf, usz sz); | ||
| 24 | struct mb dot_svg (struct gpa gpa, struct mv dot, struct mv css); | ||
| 25 | int mkdir_p (struct mv filename); | ||
| 26 | |||
| 27 | #endif // INCLUDED_COSMOS_UTILS_H | ||
| 28 | |||
| 29 | // utils.h ends here | ||
