cleaning comments

This commit is contained in:
2026-05-23 07:24:05 -03:00
parent f615ee0242
commit 8c14340adc
5 changed files with 26 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
/* ************************************************************************ *
* cmp11sht.c, v20251221.085434 *
* Fuzzy comparison CLI thin shell over lib11sht *
* Fuzzy comparison CLI -- thin shell over lib11sht *
* *
* Copyright (C) 2025 by Ruben Carlo Benante <rcb@beco.cc> *
* GNU GPL version 2 or later. *
@@ -92,11 +92,11 @@ cmp11sht v20251221.0718 (C) 2025 by Ruben C. Benante (MIT Lic)\n\n"
res = sequal_full(argv[1], argv[2], delta, &ratio,
s1, LEVN_SBUFF, s2, LEVN_SBUFF);
if(errno == EINVAL)
res = 3; /* error CLI exit 3 */
res = 3; /* error -> CLI exit 3 */
else if(res > 0)
res = 1; /* a > b CLI exit 1 */
res = 1; /* a > b -> CLI exit 1 */
else if(res < 0)
res = 2; /* a < b CLI exit 2 */
res = 2; /* a < b -> CLI exit 2 */
/* res == 0 stays 0 (equal) */
if(opt==3) printf("result: ");
if(opt) printf("%d\n", res);
@@ -109,9 +109,9 @@ cmp11sht v20251221.0718 (C) 2025 by Ruben C. Benante (MIT Lic)\n\n"
if(opt==3) printf("cmp11sht: float\n");
res = fequal(a, b, delta);
if(res > 0)
res = 1; /* a > b CLI exit 1 */
res = 1; /* a > b -> CLI exit 1 */
else if(res < 0)
res = 2; /* a < b CLI exit 2 */
res = 2; /* a < b -> CLI exit 2 */
/* res == 0 stays 0 (equal) */
if(opt==3) printf("result: ");
if(opt) printf("%d\n", res);