From 6bcaef138f13f9894abe3790aca52591a3d2d1f6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 28 Feb 2026 16:18:04 +0200 Subject: Remove vestigial double-retry loop in _statement() [POLA] _statement() wrapped its six parse rules in `for (int i = 0; i < 2; ++i)` with no explanation. Investigation shows every rule is atomic: it either consumes tokens and returns 1, or leaves the stream untouched and returns 0. A second pass would see identical parser state, so the retry was a no-op. Replace the loop with a flat priority-ordered try sequence and add a comment explaining the invariant so future readers are not confused. Co-Authored-By: Claude Sonnet 4.6 --- src/build.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/build.h') diff --git a/src/build.h b/src/build.h index 8c250dc..cd6ed73 100644 --- a/src/build.h +++ b/src/build.h @@ -36,7 +36,7 @@ #ifndef BUILD_H #define BUILD_H -#define BUILDNR 9707 +#define BUILDNR 9709 #define OS_LINUX #endif -- cgit v1.2.3