mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-22 20:37:08 +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:
@@ -135,11 +135,11 @@ INTERNAL int zint_codabar(struct zint_symbol *symbol, unsigned char source[], in
|
||||
}
|
||||
|
||||
/* If visible check char, place before final A/B/C/D character (BS EN 798:1995 A.3) */
|
||||
z_hrt_cpy_cat_nochk(symbol, source, length - 1, symbol->option_2 == 2 ? CALCIUM[checksum] : '\xFF',
|
||||
z_hrt_cpy_cat_nochk(symbol, source, length - 1, (char) (symbol->option_2 == 2 ? CALCIUM[checksum] : '\xFF'),
|
||||
source + length - 1, 1);
|
||||
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length - 1,
|
||||
add_checksum ? CALCIUM[checksum] : '\xFF', source + length - 1, 1)) {
|
||||
(char) (add_checksum ? CALCIUM[checksum] : '\xFF'), source + length - 1, 1)) {
|
||||
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
|
||||
}
|
||||
|
||||
|
||||
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ static int postnet_enc(struct zint_symbol *symbol, const unsigned char source[],
|
||||
/* Stop character */
|
||||
memcpy(d, "L", 2); /* Include terminating NUL */
|
||||
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length, z_itoc(check_digit), NULL /*cat*/, 0)) {
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length, (char) z_itoc(check_digit), NULL /*cat*/, 0)) {
|
||||
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ static int planet_enc(struct zint_symbol *symbol, const unsigned char source[],
|
||||
/* Stop character */
|
||||
memcpy(d, "L", 2); /* Include terminating NUL */
|
||||
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length, z_itoc(check_digit), NULL /*cat*/, 0)) {
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length, (char) z_itoc(check_digit), NULL /*cat*/, 0)) {
|
||||
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ INTERNAL int zint_telepen(struct zint_symbol *symbol, unsigned char source[], in
|
||||
|
||||
z_hrt_cpy_iso8859_1(symbol, source, length);
|
||||
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length, check_digit, NULL /*cat*/, 0)) {
|
||||
if (raw_text && z_rt_cpy_cat(symbol, source, length, (char) check_digit, NULL /*cat*/, 0)) {
|
||||
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ INTERNAL int zint_telepen_num(struct zint_symbol *symbol, unsigned char source[]
|
||||
|
||||
z_hrt_cpy_nochk(symbol, local_source, length);
|
||||
|
||||
if (raw_text && z_rt_cpy_cat(symbol, local_source, length, check_digit, NULL /*cat*/, 0)) {
|
||||
if (raw_text && z_rt_cpy_cat(symbol, local_source, length, (char) check_digit, NULL /*cat*/, 0)) {
|
||||
return ZINT_ERROR_MEMORY; /* `z_rt_cpy_cat()` only fails with OOM */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user