shorten list output

This commit is contained in:
Chad C. Starz 2024-09-28 21:41:31 +00:00
parent 3d1e3f9421
commit 2b22cc6fb1
No known key found for this signature in database
GPG Key ID: CEEBC9208C287297

2
bake.l
View File

@ -41,7 +41,7 @@ MACROS (@BAKE|@FILENAME|@FILE|@NAME|@SHORT|@ARGS|@LINE|@STOP|$@|$*|$+)
first_nl = 1; first_nl = 1;
if (yytext[yyleng-1] == '\n') { ++line; } if (yytext[yyleng-1] == '\n') { ++line; }
if (!g_select) { ; } if (!g_select) { ; }
else if (g_select < 0) { BEGIN FOUND; printf("\n%s:%d:s%d: ", g_filename, line, ++nth); } else if (g_select < 0) { BEGIN FOUND; printf("%s:%d:s%d: ", g_filename, line, ++nth); }
else if (!--g_select) { BEGIN FOUND; } else if (!--g_select) { BEGIN FOUND; }
} }