]> Kevux Git Server - fll/commit
Update: Centralize common error function, minor cleanups, and improve status code...
authorKevin Day <thekevinday@gmail.com>
Sat, 2 Apr 2022 04:08:41 +0000 (23:08 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 2 Apr 2022 04:19:54 +0000 (23:19 -0500)
commit0d0a27fb43f8bce5982479a5ccd69690f97bf95c
tree89549bd4be66243f18945c6cc24e0b79a62bdd6a
parent21f694c88fad2e9626952318f2a4b6f483a96dee
Update: Centralize common error function, minor cleanups, and improve status code programs.

Printing an error for two different long parameters that cannot be used together is very common.
Move this into a single function inside of fll_program.
Make sure that these calls are wrapped in appropriate verbosity checks.

The status code programs is now able to print the number with the error bit and/or warning bit set.
The status code programs status codes error and warning can be used together when using the -n/--number.

Perform minor cleanup where the "main->parameters.remaining.used > 0" can be simplified.
21 files changed:
level_2/fll_program/c/program.c
level_2/fll_program/c/program.h
level_3/byte_dump/c/byte_dump.c
level_3/firewall/c/firewall.c
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_embedded_list_read/c/fss_embedded_list_read.c
level_3/fss_extended_list_read/c/fss_extended_list_read.c
level_3/fss_extended_read/c/fss_extended_read.c
level_3/fss_identify/c/fss_identify.c
level_3/fss_payload_read/c/fss_payload_read.c
level_3/fss_status_code/c/common.c
level_3/fss_status_code/c/common.h
level_3/fss_status_code/c/fss_status_code.c
level_3/fss_status_code/c/private-common.h
level_3/fss_status_code/c/private-fss_status_code.c
level_3/iki_read/c/iki_read.c
level_3/status_code/c/common.c
level_3/status_code/c/common.h
level_3/status_code/c/private-status_code.c
level_3/status_code/c/status_code.c