Fixed line numbering in 2-pass mode
authorLukas Krickl <lukas@krickl.dev>
Wed, 29 Nov 2023 14:32:38 +0000 (15:32 +0100)
committerLukas Krickl <lukas@krickl.dev>
Wed, 29 Nov 2023 14:32:38 +0000 (15:32 +0100)
src/ulas.c

index 3df363147b270fe16825a08bdef3092511ed9199..dad70051ae4729ae2efd87c8473679412f0111c3 100644 (file)
@@ -123,6 +123,8 @@ int ulas_main(struct ulas_config cfg) {
       fprintf(ulaserr, "[Pass %d]\n", ulas.pass);
     }
 
+    ulas_nextpass();
+
     // FIXME: it would be nice if we could do the 2 pass by clearing the
     // tmpfile instead of making an entierly new one
     if (cfg.preproc_only) {