Add verbose mode to output debug info without recompiling

This commit is contained in:
Robin Stuart 2017-04-11 10:05:38 +01:00
parent 5acbffff0d
commit 6f4610aa98
11 changed files with 26 additions and 22 deletions

View file

@ -367,7 +367,7 @@ int dotcode_encode_message(struct zint_symbol *symbol, const unsigned char sourc
int input_position, array_length, i;
char encoding_mode;
int inside_macro, done;
int debug = 0;
int debug = symbol->debug;
int binary_buffer_size = 0;
int lawrencium[6]; // Reversed radix 103 values
@ -1088,7 +1088,7 @@ int dotcode(struct zint_symbol *symbol, const unsigned char source[], int length
#else
char* dot_stream;
char* dot_array;
unsigned char* masked_codeword_array;
unsigned char* masked_codeword_array;
unsigned char* codeword_array = (unsigned char *) _alloca(length * 3 * sizeof (unsigned char));
#endif /* _MSC_VER */