1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-05-14 18:13:53 +00:00

Add GS1 support to Aztec Code

This commit is contained in:
hooper114
2009-01-16 05:50:22 +00:00
parent c7affa89de
commit 2dd4f31da4
4 changed files with 37 additions and 12 deletions

View File

@@ -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--;