mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Silence debug output
This commit is contained in:
parent
b968073d71
commit
118caf10ea
@ -527,7 +527,7 @@ static int dm200encode(struct zint_symbol *symbol, const unsigned char source[],
|
|||||||
int sp, tp, i, gs1;
|
int sp, tp, i, gs1;
|
||||||
int current_mode, next_mode;
|
int current_mode, next_mode;
|
||||||
int inputlen = *length_p;
|
int inputlen = *length_p;
|
||||||
int debug = 1;
|
int debug = 0;
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
char binary[2 * inputlen];
|
char binary[2 * inputlen];
|
||||||
#else
|
#else
|
||||||
@ -970,7 +970,7 @@ static int dm200encode(struct zint_symbol *symbol, const unsigned char source[],
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int dm200encode_remainder(unsigned char target[], int target_length, const unsigned char source[], const int inputlen, const int last_mode, const int process_buffer[], const int process_p, const int symbols_left) {
|
static int dm200encode_remainder(unsigned char target[], int target_length, const unsigned char source[], const int inputlen, const int last_mode, const int process_buffer[], const int process_p, const int symbols_left) {
|
||||||
int debug = 1;
|
int debug = 0;
|
||||||
|
|
||||||
switch (last_mode) {
|
switch (last_mode) {
|
||||||
case DM_C40:
|
case DM_C40:
|
||||||
@ -1210,7 +1210,7 @@ int data_matrix_200(struct zint_symbol *symbol, unsigned char source[], const in
|
|||||||
}
|
}
|
||||||
ecc200(binary, bytes, datablock, rsblock, skew);
|
ecc200(binary, bytes, datablock, rsblock, skew);
|
||||||
// Print Codewords
|
// Print Codewords
|
||||||
//#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
{
|
{
|
||||||
int CWCount;
|
int CWCount;
|
||||||
if (skew)
|
if (skew)
|
||||||
@ -1222,7 +1222,7 @@ int data_matrix_200(struct zint_symbol *symbol, unsigned char source[], const in
|
|||||||
printf(" %3i", binary[posCur]);
|
printf(" %3i", binary[posCur]);
|
||||||
puts("\n");
|
puts("\n");
|
||||||
}
|
}
|
||||||
//#endif
|
#endif
|
||||||
{ // placement
|
{ // placement
|
||||||
int x, y, NC, NR, *places;
|
int x, y, NC, NR, *places;
|
||||||
NC = W - 2 * (W / FW);
|
NC = W - 2 * (W / FW);
|
||||||
|
Loading…
Reference in New Issue
Block a user