mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-02 16:09:51 -04:00
Get test_library compiled on windows
test_file_unreadable cannot be implemented easily, as files are always readable by their owner on windows. While `_chmod` is available in the POSIX compatibility function set, it cannot be used to take away read permissions, either. While here, move functional code out of any assert statements. It shall be executed even when the assertions are disabled
This commit is contained in:
parent
e7947dc9a4
commit
afea0ad2c3
2 changed files with 90 additions and 40 deletions
|
@ -192,7 +192,7 @@ INTERNAL int dpd_parcel(struct zint_symbol *symbol, unsigned char source[], int
|
|||
INTERNAL int plot_raster(struct zint_symbol *symbol, int rotate_angle, int file_type); /* Plot to PNG/BMP/PCX */
|
||||
INTERNAL int plot_vector(struct zint_symbol *symbol, int rotate_angle, int file_type); /* Plot to EPS/EMF/SVG */
|
||||
|
||||
STATIC_UNLESS_ZINT_TEST int error_tag(char error_string[100], int error_number) {
|
||||
INTERNAL int error_tag(char error_string[100], int error_number) {
|
||||
|
||||
if (error_number != 0) {
|
||||
const char *fmt = error_number >= ZINT_ERROR ? "Error %.93s" : "Warning %.91s"; /* Truncate if too long */
|
||||
|
@ -931,7 +931,7 @@ static int reduced_charset(struct zint_symbol *symbol, unsigned char *source, in
|
|||
return error_number;
|
||||
}
|
||||
|
||||
STATIC_UNLESS_ZINT_TEST void strip_bom(unsigned char *source, int *input_length) {
|
||||
INTERNAL void strip_bom(unsigned char *source, int *input_length) {
|
||||
int i;
|
||||
|
||||
/* Note if BOM is only data then not stripped */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue