diff options
| author | Michael Forney <mforney@mforney.org> | 2021-09-03 14:19:02 -0700 | 
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2021-09-03 14:19:02 -0700 | 
| commit | e2855dd3223f83e7638d1698622861d5e98cb1b2 (patch) | |
| tree | 9cf0bcc75b2538e8c90258bde64b3cc5d2d63b0e | |
| parent | 2ad66dac6aac5a1ac16032fd0ffc9b26e1a21fe3 (diff) | |
| download | cproc-e2855dd3223f83e7638d1698622861d5e98cb1b2.tar.xz | |
pp: Set location column to 1 after line directive
| -rw-r--r-- | pp.c | 1 | 
1 files changed, 1 insertions, 0 deletions
@@ -337,6 +337,7 @@ directive(void)  		tokencheck(&tok, TNUMBER, "after #line");  line:  		newloc.line = strtoull(tok.lit, NULL, 0); +		newloc.col = 1;  		scan(&tok);  		newloc.file = tok.loc.file;  		if (tok.kind == TSTRINGLIT) {  | 
