From 271fd3f2d0d53478b1b6cdfb66ae28b219c571ba Mon Sep 17 00:00:00 2001 From: Lieuwe Rooijakkers Date: Mon, 22 Jul 2024 13:20:20 +0200 Subject: add comment explaining {} in file_to_filebuf --- src/io/read_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io/read_file.c b/src/io/read_file.c index b7b1095..e9e4a6a 100644 --- a/src/io/read_file.c +++ b/src/io/read_file.c @@ -84,6 +84,8 @@ struct filebuf *file_to_filebuf(char *fname, int openOptions) { return res; } + // braces are needed until we actually use c23 instead of c2x (only c23 allows + // labels before delcarations) sponge: { FILE *stream = fdopen(fd, "rb"); struct filebuf *res = stream_to_filebuf(stream, openOptions); -- cgit v1.2.3-70-g09d2