city_generator2

Generated conformal 3D meshes representing a city
git clone git://git.meso-star.fr/city_generator2.git
Log | Files | Refs | README | LICENSE

commit e92a395ee81111808513182bf02c5721394f3449
parent 7b11d562835e2387a1bdb20cec2523f55ec98e29
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri, 30 Dec 2022 14:13:35 +0100

Field rename

Diffstat:
Msrc/cg_args.c | 6+++---
Msrc/cg_args.h | 2+-
Msrc/cg_main.c | 6+++---
3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/cg_args.c b/src/cg_args.c @@ -158,10 +158,10 @@ parse_args break; case 'V': - res = cstr_to_int(optarg, &args->verbose); + res = cstr_to_int(optarg, &args->verbosity_level); if(res != RES_OK - || args->verbose < 0 - || args->verbose > 3) + || args->verbosity_level < 0 + || args->verbosity_level > 3) { if(res == RES_OK) res = RES_BAD_ARG; logger_print(logger, LOG_ERROR, diff --git a/src/cg_args.h b/src/cg_args.h @@ -32,7 +32,7 @@ struct args { char* city_filename; char* constructive_mode_filename; int binary_export; - int verbose; + int verbosity_level; int print_help; int print_version; }; diff --git a/src/cg_main.c b/src/cg_main.c @@ -128,11 +128,11 @@ int main } /* Deactivate some loggin according to the -V arg */ - if(args.verbose < 1) + if(args.verbosity_level < 1) logger_set_stream(&logger, LOG_ERROR, NULL, NULL); - if(args.verbose < 2) + if(args.verbosity_level < 2) logger_set_stream(&logger, LOG_WARNING, NULL, NULL); - if(args.verbose < 3) + if(args.verbosity_level < 3) logger_set_stream(&logger, LOG_OUTPUT, NULL, NULL); /* Initialize star-cad */