mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-19 17:55:10 -04:00
Make compile with MS-VC6
This commit is contained in:
parent
bfb183e5df
commit
f83e5b1501
22 changed files with 98 additions and 64 deletions
|
@ -1004,13 +1004,14 @@ static int cc_binary_string(struct zint_symbol *symbol, const char source[], cha
|
|||
/* No date data */
|
||||
strcat(binary_string, "11");
|
||||
read_posn = 2;
|
||||
} else {
|
||||
} else {
|
||||
long int group_val;
|
||||
/* Production Date (11) or Expiration Date (17) */
|
||||
char date_str[4];
|
||||
date_str[0] = source[2];
|
||||
date_str[1] = source[3];
|
||||
date_str[2] = '\0';
|
||||
long int group_val = atoi(date_str) * 384;
|
||||
group_val = atoi(date_str) * 384;
|
||||
|
||||
date_str[0] = source[4];
|
||||
date_str[1] = source[5];
|
||||
|
@ -1119,7 +1120,11 @@ static int cc_binary_string(struct zint_symbol *symbol, const char source[], cha
|
|||
test3 = 1;
|
||||
}
|
||||
|
||||
if ((test1 != -1) && (test2 != 1) && (test3 == 0)) {
|
||||
if ((test1 != -1) && (test2 != 1) && (test3 == 0)) {
|
||||
int next_ai_posn;
|
||||
char numeric_part[4];
|
||||
int numeric_value;
|
||||
int table3_letter;
|
||||
/* Encodation method "11" can be used */
|
||||
strcat(binary_string, "11");
|
||||
|
||||
|
@ -1145,7 +1150,7 @@ static int cc_binary_string(struct zint_symbol *symbol, const char source[], cha
|
|||
}
|
||||
}
|
||||
|
||||
int next_ai_posn = 2 + (int)strlen(ninety);
|
||||
next_ai_posn = 2 + (int)strlen(ninety);
|
||||
|
||||
if (source[next_ai_posn] == '[') {
|
||||
/* There are more AIs afterwords */
|
||||
|
@ -1169,7 +1174,6 @@ static int cc_binary_string(struct zint_symbol *symbol, const char source[], cha
|
|||
break;
|
||||
}
|
||||
|
||||
char numeric_part[4];
|
||||
if (test1 == 0) {
|
||||
strcpy(numeric_part, "0");
|
||||
} else {
|
||||
|
@ -1179,9 +1183,9 @@ static int cc_binary_string(struct zint_symbol *symbol, const char source[], cha
|
|||
numeric_part[i] = '\0';
|
||||
}
|
||||
|
||||
int numeric_value = atoi(numeric_part);
|
||||
numeric_value = atoi(numeric_part);
|
||||
|
||||
int table3_letter = -1;
|
||||
table3_letter = -1;
|
||||
if (numeric_value < 31) {
|
||||
table3_letter = posn("BDHIJKLNPQRSTVWZ", ninety[test1]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue