aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-02 18:24:54 +0100
committerlemon <lsof@mailbox.org>2025-12-02 18:24:54 +0100
commitbfd58e2c515e8c360fda4bee3d0702c60d92ebf0 (patch)
tree33f11ac7d4d56cbbe65cdf79753728b7fd4dfc9c /common.h
parent3c6e4dd54d5c144369b96d6673da7f23df4940da (diff)
preprocessor: add #ifndef...#endif include guard optimization
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index a1f1d21..20716d2 100644
--- a/common.h
+++ b/common.h
@@ -382,8 +382,8 @@ const char *getfilename(int id);
struct memfile *getfile(int id);
void addfileline(int id, uint off);
void getfilepos(int *line, int *col, int id, uint off);
-bool isoncefile(int id);
-void markfileonce(int id);
+bool isoncefile(int id, const char **guard);
+void markfileonce(int id, const char *guard);
void markfileseen(int id);
bool isfileseen(int id);
void closefile(int id);