2
0
mirror of https://github.com/zint/zint synced 2024-11-16 20:57:25 +13:00

Syncronize QZint

This commit is contained in:
hooper114
2008-11-18 08:52:43 +00:00
parent 88cc19bab1
commit 6ae8a7d0d8
8 changed files with 18 additions and 8 deletions

@ -8,7 +8,7 @@ find_package(Qr)
set(zint_COMMON_SRCS common.c library.c ps.c large.c reedsol.c)
set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c)
set(zint_POSTAL_SRCS postal.c auspost.c imail.c)
set(zint_TWODIM_SRCS code16k.c blockf.c dmatrix.c dm200.c pdf417.c qr.c maxicode.c composite.c aztec.c)
set(zint_TWODIM_SRCS code16k.c blockf.c dmatrix.c dm200.c pdf417.c qr.c micqr.c maxicode.c composite.c aztec.c)
set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} )
if(PNG_FOUND)

@ -7,7 +7,7 @@
# make clean cleans up a previous compilation and any object or editor files
#
ZINT_VERSION:=-DZINT_VERSION=\"1.99.1\"
ZINT_VERSION:=-DZINT_VERSION=\"2.0.1\"
CC := gcc

@ -561,7 +561,7 @@ void protect_ecc050(char protected_stream[], char unprotected_stream[])
char mid_reg[4];
char low_reg[4];
char u1, u2, u3;
char output[4];
char output[6];
char gate_input[8];
int i, blocks, j, count;
@ -1073,6 +1073,7 @@ int matrix89(struct zint_symbol *symbol, unsigned char source[])
char header[20];
int symbol_size, hex_segment, width;
symbol_size = 0;
for(i = 0; i < input_length; i++) {
if(source[i] > 127) {
strcpy(symbol->errtxt, "Data Matrix ECC 000 - 140 doesn't support extended ASCII");

@ -39,6 +39,7 @@ void qrnumeric_encode(char binary[], unsigned char source[])
char block_binary[11];
int block_value;
block_value = 0;
input_length = ustrlen(source);
blocks = input_length / 3;
remainder = input_length % 3;
@ -597,6 +598,8 @@ int microqr(struct zint_symbol *symbol, unsigned char source[])
symbol_size = 0;
if(is_sane(QRSET, source) == 0) { char_system = ALPHANUM; }
if(is_sane(NESET, source) == 0) { char_system = NUMERIC; }
width = 0;
format = 0;
if(symbol->option_1 == 4) {
strcpy(symbol->errtxt, "Error correction level H not available for Micro QR symbols");