mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-29 06:15:23 -04:00
Add GS1 support to Aztec Code
This commit is contained in:
parent
c7affa89de
commit
2dd4f31da4
4 changed files with 37 additions and 12 deletions
|
@ -59,7 +59,7 @@ int gs1_verify(struct zint_symbol *symbol, unsigned char source[], char reduced[
|
|||
|
||||
/* remove the following to make this code work */
|
||||
read_this = NOW;
|
||||
|
||||
|
||||
/* BogDan... Happy New Year! I've been trying to contact you but can't get through!
|
||||
the message keeps bouncing back to me. I've put a message on the developers forum on SF instead */
|
||||
|
||||
|
@ -90,7 +90,7 @@ int gs1_verify(struct zint_symbol *symbol, unsigned char source[], char reduced[
|
|||
ai_latch = 0;
|
||||
for(i = 0; i < ustrlen(source); i++) {
|
||||
ai_length += j;
|
||||
if((j == 1) && ((source[i] < '0') || (source[i] > '9'))) { ai_latch = 1; }
|
||||
if(((j == 1) && (source[i] != ']')) && ((source[i] < '0') || (source[i] > '9'))) { ai_latch = 1; }
|
||||
if(source[i] == '[') { bracket_level++; j = 1; }
|
||||
if(source[i] == ']') {
|
||||
bracket_level--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue