From e94f408d1085d778a853c9dfeeddb2461af20c0f Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 14 Dec 2025 20:07:18 +0100 Subject: cpp: support #line directives --- common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index 53669f4..0d1ec4c 100644 --- a/common.h +++ b/common.h @@ -396,10 +396,11 @@ void *mapzeros(uint); int munmap(void *, size_t); int getpredeffile(struct memfile **, const char *name); int openfile(const char **err, struct memfile **, const char *path); -const char *getfilename(int id); +const char *getfilename(int id, uint atoff); struct memfile *getfile(int id); void addfileline(int id, uint off); -void getfilepos(int *line, int *col, int id, uint off); +void setfileline(int id, uint off, int line, const char *file); +const char *getfilepos(int *line, int *col, int id, uint off); bool isoncefile(int id, const char **guard); void markfileonce(int id, const char *guard); void markfileseen(int id); -- cgit v1.2.3