[hackers] [sbase] bc: Begin line count in 1 || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sun, 23 Nov 2025 17:13:04 +0100 (CET)

commit f0438f7a70b1df3b2ac642af5312b138e9899681
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
AuthorDate: Sun Nov 23 17:09:14 2025 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
CommitDate: Sun Nov 23 17:09:14 2025 +0100

    bc: Begin line count in 1

diff --git a/bc.y b/bc.y
index b73f6af..c5221d7 100644
--- a/bc.y
+++ b/bc.y
_AT_@ -690,7 +690,8 @@ run(void)
 static void
 bc(char *fname)
 {
- nested = lineno = 0;
+ lineno = 1;
+ nested = 0;
 
         if (fname) {
                 filename = fname;
Received on Sun Nov 23 2025 - 17:13:04 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 23 2025 - 17:24:36 CET