mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 05:54:19 -04:00
zint.h: add version string, mention "manual.html" and website
README: mention "manual.html" tools/update_version.php: update for "zint.h" version, README year test suite: fix some clang-tidy-20 warnings
This commit is contained in:
parent
86b6a0553b
commit
1ae7815d95
6 changed files with 24 additions and 10 deletions
|
@ -168,7 +168,7 @@ static int c128_cost(const unsigned char source[], const int length, const int i
|
|||
const int cset = priority[p];
|
||||
if (C128_C0C1(cset)) {
|
||||
if (can_c && (!manuals[i] || manuals[i] == C128_C0)) {
|
||||
const int incr = is_fnc1 ? 1 : 2;
|
||||
const int incr = 2 - is_fnc1;
|
||||
int mode = prior_cset;
|
||||
int cost = 1;
|
||||
if (prior_cset != cset) {
|
||||
|
|
|
@ -388,7 +388,7 @@ static void test_large(const testCtx *const p_ctx) {
|
|||
testUtilEscape(data[i].pattern, (int) strlen(data[i].pattern), escaped, sizeof(escaped)), data[i].length,
|
||||
testUtilErrorName(ret), symbol->rows, symbol->width, errtxt);
|
||||
symbol->input_mode |= FAST_MODE;
|
||||
ret = ZBarcode_Encode(symbol, (unsigned char *) data_buf, length);
|
||||
(void) ZBarcode_Encode(symbol, (unsigned char *) data_buf, length);
|
||||
printf(" \"%s\", \"%s\" },\n", strcmp(errtxt, symbol->errtxt) != 0 ? symbol->errtxt : "", data[i].comment);
|
||||
} else {
|
||||
assert_equal(ret, data[i].ret, "i:%d ZBarcode_Encode ret %d != %d (%s)\n", i, ret, data[i].ret, symbol->errtxt);
|
||||
|
|
|
@ -1896,6 +1896,10 @@ int testUtilCmpBins(const char *bin1, const char *bin2) {
|
|||
do {
|
||||
len1 = fread(buf1, 1, sizeof(buf1), fp1);
|
||||
len2 = fread(buf2, 1, sizeof(buf2), fp2);
|
||||
if (ferror(fp1) || ferror(fp2)) {
|
||||
ret = 4;
|
||||
break;
|
||||
}
|
||||
if (len1 != len2) {
|
||||
ret = 6;
|
||||
break;
|
||||
|
|
|
@ -31,8 +31,10 @@
|
|||
/* SPDX-License-Identifier: BSD-3-Clause */
|
||||
|
||||
/*
|
||||
* For version, see "zintconfig.h"
|
||||
* For documentation, see "../docs/manual.txt"
|
||||
* Version: 2.13.0.9 (dev) (see "zintconfig.h")
|
||||
*
|
||||
* For documentation, see "../docs/manual.txt" or "../docs/manual.html" or online at
|
||||
* https://zint.org.uk/manual/
|
||||
*/
|
||||
|
||||
#ifndef ZINT_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue