diff options
| author | 2025-12-14 20:07:18 +0100 | |
|---|---|---|
| committer | 2025-12-14 20:07:18 +0100 | |
| commit | e94f408d1085d778a853c9dfeeddb2461af20c0f (patch) | |
| tree | 0072af984ebbaaa97a4d339ab650fab91c2b481f /common.h | |
| parent | ff75cd1989411b1030eccd2dd35e4a28969eaa3c (diff) | |
cpp: support #line directives
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |