aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/files.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-23 19:28:08 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-23 19:28:08 -0400
commitfcda36561d668f43bac91ea31cd55cbbd605d330 (patch)
treeeb74c0b17df584af0fd8154422ad924e04c96cc2 /src/stdlib/files.h
parent414b0c7472c87c5a013029aefef49e2dbc41e700 (diff)
Autoformat everything with clang-format
Diffstat (limited to 'src/stdlib/files.h')
-rw-r--r--src/stdlib/files.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/src/stdlib/files.h b/src/stdlib/files.h
index f650f78e..d3e5ebe8 100644
--- a/src/stdlib/files.h
+++ b/src/stdlib/files.h
@@ -16,20 +16,14 @@ typedef struct {
} file_t;
char *resolve_path(const char *path, const char *relative_to, const char *system_path);
-__attribute__((pure, nonnull))
-char *file_base_name(const char *path);
-__attribute__((nonnull))
-file_t *load_file(const char *filename);
-__attribute__((nonnull, returns_nonnull))
-file_t *spoof_file(const char *filename, const char *text);
-__attribute__((pure, nonnull))
-int64_t get_line_number(file_t *f, const char *p);
-__attribute__((pure, nonnull))
-int64_t get_line_column(file_t *f, const char *p);
-__attribute__((pure, nonnull))
-const char *get_line(file_t *f, int64_t line_number);
-__attribute__((pure, nonnull))
-const char *get_file_pos(file_t *f, const char *p);
-int highlight_error(file_t *file, const char *start, const char *end, const char *hl_color, int64_t context_lines, bool use_color);
+__attribute__((pure, nonnull)) char *file_base_name(const char *path);
+__attribute__((nonnull)) file_t *load_file(const char *filename);
+__attribute__((nonnull, returns_nonnull)) file_t *spoof_file(const char *filename, const char *text);
+__attribute__((pure, nonnull)) int64_t get_line_number(file_t *f, const char *p);
+__attribute__((pure, nonnull)) int64_t get_line_column(file_t *f, const char *p);
+__attribute__((pure, nonnull)) const char *get_line(file_t *f, int64_t line_number);
+__attribute__((pure, nonnull)) const char *get_file_pos(file_t *f, const char *p);
+int highlight_error(file_t *file, const char *start, const char *end, const char *hl_color, int64_t context_lines,
+ bool use_color);
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0