1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-19 02:47:06 +00:00

win32: add "zint_dll_vc6" sub-directory with VC6 workspace for

creating "zint.dll" compatible with Windows XP (see ticket #339)
win32: rename README and HOWTO files to uppercase and update
  "win32\README.txt"
general: suppress some VC6 warnings
README.bsd: update
This commit is contained in:
gitlost
2025-09-26 13:52:55 +01:00
parent 4956989405
commit 4d301ea560
12 changed files with 581 additions and 26 deletions

View File

@@ -223,12 +223,13 @@ INTERNAL int zint_code39(struct zint_symbol *symbol, unsigned char source[], int
}
z_hrt_cat_chr_nochk(symbol, '*');
} else {
z_hrt_cpy_cat_nochk(symbol, source, length, symbol->option_2 == 1 ? check_digit : '\xFF', NULL /*cat*/, 0);
z_hrt_cpy_cat_nochk(symbol, source, length, (char) (symbol->option_2 == 1 ? check_digit : '\xFF'),
NULL /*cat*/, 0);
}
if (raw_text) {
if (z_rt_cpy_cat(symbol, source, length, check_digit ? check_digit == '_' ? ' ' : check_digit : '\xFF',
NULL /*cat*/, 0)) {
if (z_rt_cpy_cat(symbol, source, length,
(char) (check_digit ? check_digit == '_' ? ' ' : check_digit : '\xFF'), NULL /*cat*/, 0)) {
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
}
}
@@ -297,7 +298,8 @@ INTERNAL int zint_excode39(struct zint_symbol *symbol, unsigned char source[], i
}
if (raw_text && z_rt_cpy_cat(symbol, source, length,
check_digit ? check_digit == '_' ? ' ' : check_digit : '\xFF', NULL /*cat*/, 0)) {
(char) (check_digit ? check_digit == '_' ? ' ' : check_digit : '\xFF'),
NULL /*cat*/, 0)) {
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
}
@@ -506,7 +508,8 @@ INTERNAL int zint_vin(struct zint_symbol *symbol, unsigned char source[], int le
z_hrt_cpy_nochk(symbol, source, length);
if (raw_text && z_rt_cpy_cat(symbol, NULL /*source*/, 0, symbol->option_2 == 1 ? 'I' : '\xFF', source, length)) {
if (raw_text && z_rt_cpy_cat(symbol, NULL /*source*/, 0, (char) (symbol->option_2 == 1 ? 'I' : '\xFF'),
source, length)) {
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
}