1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Revert Lemon so that it only shows -D options that are actually used. Though

the change to display the options in sorted order is retained.

FossilOrigin-Name: e54eb217c9508c19aee085b111a1323c9009f014ba4db6019918e27002c4ca8c
This commit is contained in:
drh
2024-06-19 18:54:04 +00:00
parent 8cf7bd5448
commit 51b3b402c4
3 changed files with 9 additions and 9 deletions

View File

@ -4503,12 +4503,12 @@ void ReportTable(
fprintf(out,
"/* This file is automatically generated by Lemon from input grammar\n"
"** source file \"%s\"", lemp->filename); lineno++;
if( nDefine==0 ){
if( nDefineUsed==0 ){
fprintf(out, ".\n*/\n"); lineno += 2;
}else{
fprintf(out, " with these options:\n**\n"); lineno += 2;
for(i=0; i<nDefine; i++){
/* if( !bDefineUsed[i] ) continue; */
if( !bDefineUsed[i] ) continue;
fprintf(out, "** -D%s\n", azDefine[i]); lineno++;
}
fprintf(out, "*/\n"); lineno++;