1
0
Fork 0
mirror of https://git.code.sf.net/p/zint/code synced 2025-05-25 04:24:31 -04:00

modifications for VS2015, some

additional static/const's and a few bugfixes for HanXin and DotStream.

Patch by Michael <virtual_worlds@gmx.de>
This commit is contained in:
Robin Stuart 2016-09-05 22:06:50 +01:00
parent 8d3abf8440
commit 2c2200a7cb
31 changed files with 1639 additions and 1278 deletions
backend

View file

@ -140,7 +140,7 @@ int dq4bi(unsigned char source[], int sourcelen, int position) {
return 0;
}
int c1_look_ahead_test(unsigned char source[], int sourcelen, int position, int current_mode, int gs1) {
static int c1_look_ahead_test(unsigned char source[], int sourcelen, int position, int current_mode, int gs1) {
float ascii_count, c40_count, text_count, edi_count, byte_count;
char reduced_char;
int done, best_scheme, best_count, sp;
@ -861,7 +861,7 @@ int c1_encode(struct zint_symbol *symbol, unsigned char source[], unsigned int t
}
if (decimal_count != 3) {
int bits_left_in_byte, target_count;
size_t bits_left_in_byte, target_count;
int sub_target;
/* Finish Decimal mode and go back to ASCII */
@ -1150,7 +1150,7 @@ int c1_encode(struct zint_symbol *symbol, unsigned char source[], unsigned int t
}
if (current_mode == C1_DECIMAL) {
int bits_left_in_byte, target_count;
size_t bits_left_in_byte, target_count;
int sub_target;
/* Finish Decimal mode and go back to ASCII */