mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-21 03:47:07 +00:00
ERROR_* renamed to ZERROR*
This commit is contained in:
@@ -41,7 +41,7 @@ int code_49(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||||||
|
|
||||||
if(length > 81) {
|
if(length > 81) {
|
||||||
strcpy(symbol->errtxt, "Input too long");
|
strcpy(symbol->errtxt, "Input too long");
|
||||||
return ERROR_TOO_LONG;
|
return ZERROR_TOO_LONG;
|
||||||
}
|
}
|
||||||
if(symbol->input_mode == GS1_MODE) { gs1 = 1; } else { gs1 = 0; }
|
if(symbol->input_mode == GS1_MODE) { gs1 = 1; } else { gs1 = 0; }
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ int code_49(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||||||
for(i = 0; i < length; i++) {
|
for(i = 0; i < length; i++) {
|
||||||
if(source[i] > 127) {
|
if(source[i] > 127) {
|
||||||
strcpy(symbol->errtxt, "Invalid characters in input data");
|
strcpy(symbol->errtxt, "Invalid characters in input data");
|
||||||
return ERROR_INVALID_DATA;
|
return ZERROR_INVALID_DATA;
|
||||||
}
|
}
|
||||||
if(gs1 && (source[i] == '['))
|
if(gs1 && (source[i] == '['))
|
||||||
concat(intermediate, "*"); /* FNC1 */
|
concat(intermediate, "*"); /* FNC1 */
|
||||||
@@ -180,10 +180,10 @@ int code_49(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||||||
} while(i < h);
|
} while(i < h);
|
||||||
|
|
||||||
switch(codewords[0]) { /* Set starting mode value */
|
switch(codewords[0]) { /* Set starting mode value */
|
||||||
case 48: M = 2;
|
case 48: M = 2; break;
|
||||||
case 43: M = 4;
|
case 43: M = 4; break;
|
||||||
case 44: M = 5;
|
case 44: M = 5; break;
|
||||||
default: M = 0;
|
default: M = 0; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(M != 0) {
|
if(M != 0) {
|
||||||
@@ -195,7 +195,7 @@ int code_49(struct zint_symbol *symbol, unsigned char source[], int length)
|
|||||||
|
|
||||||
if(codeword_count > 49) {
|
if(codeword_count > 49) {
|
||||||
strcpy(symbol->errtxt, "Input too long");
|
strcpy(symbol->errtxt, "Input too long");
|
||||||
return ERROR_TOO_LONG;
|
return ZERROR_TOO_LONG;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Place codewords in code character array (c grid) */
|
/* Place codewords in code character array (c grid) */
|
||||||
|
|||||||
Reference in New Issue
Block a user