mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 05:54:19 -04:00
Tabs/typo in zint.h; PostNet -> POSTNET; ui: shortcuts, tooltips; tests inkscape -> libreoffice
This commit is contained in:
parent
36c19053d7
commit
e37a82a8f1
90 changed files with 1048 additions and 840 deletions
|
@ -47,7 +47,7 @@ static void test_pixel_plot(int index, int debug) {
|
|||
struct item {
|
||||
int width;
|
||||
int height;
|
||||
unsigned char *pattern;
|
||||
char *pattern;
|
||||
int repeat;
|
||||
};
|
||||
// s/\/\*[ 0-9]*\*\//\=printf("\/*%3d*\/", line(".") - line("'<"))
|
||||
|
@ -66,8 +66,6 @@ static void test_pixel_plot(int index, int debug) {
|
|||
int data_size = ARRAY_SIZE(data);
|
||||
|
||||
char *bmp = "out.bmp";
|
||||
char escaped[1024];
|
||||
int escaped_size = 1024;
|
||||
|
||||
char data_buf[8 * 2 + 1];
|
||||
|
||||
|
@ -94,7 +92,7 @@ static void test_pixel_plot(int index, int debug) {
|
|||
}
|
||||
assert_equal(size, (int) strlen(data_buf), "i:%d bmp_pixel_plot size %d != strlen(data_buf) %d\n", i, size, (int) strlen(data_buf));
|
||||
|
||||
symbol->bitmap = data_buf;
|
||||
symbol->bitmap = (unsigned char *) data_buf;
|
||||
|
||||
ret = bmp_pixel_plot(symbol, data_buf);
|
||||
assert_zero(ret, "i:%d bmp_pixel_plot ret %d != 0 (%s)\n", i, ret, symbol->errtxt);
|
||||
|
@ -126,7 +124,7 @@ static void test_print(int index, int generate, int debug) {
|
|||
int option_2;
|
||||
char *fgcolour;
|
||||
char *bgcolour;
|
||||
unsigned char* data;
|
||||
char* data;
|
||||
char* expected_file;
|
||||
};
|
||||
struct item data[] = {
|
||||
|
@ -165,7 +163,7 @@ static void test_print(int index, int generate, int debug) {
|
|||
strcpy(symbol->bgcolour, data[i].bgcolour);
|
||||
}
|
||||
|
||||
ret = ZBarcode_Encode(symbol, data[i].data, length);
|
||||
ret = ZBarcode_Encode(symbol, (unsigned char *) data[i].data, length);
|
||||
assert_zero(ret, "i:%d %s ZBarcode_Encode ret %d != 0 %s\n", i, testUtilBarcodeName(data[i].symbology), ret, symbol->errtxt);
|
||||
|
||||
strcpy(symbol->outfile, bmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue