mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-21 20:07:06 +00:00
CLI: --gs1XXX args now imply `--gs1
GUI: fix chkGS1Strict enabling on startup regression from previous commit; update CLI equivalence with --gs1strict & adjust for implied --gs1; add tests CMake: allow lpng/zlib and gs1encoders to take paths (for Windows) win32/README: simplify locating lpng/zlib/gs1encoders for cmake using above; add note on 64-bit build manual/man page: adjust for various above changes
This commit is contained in:
@@ -1362,9 +1362,16 @@ namespace Zint {
|
||||
arg_bool(cmd, "--fullmultibyte", supportsFullMultibyte() && (option3() & 0xFF) == ZINT_FULL_MULTIBYTE);
|
||||
|
||||
if (supportsGS1()) {
|
||||
arg_bool(cmd, "--gs1", (inputMode() & 0x07) == GS1_MODE);
|
||||
arg_bool(cmd, "--gs1parens", gs1Parens() || (inputMode() & GS1PARENS_MODE));
|
||||
arg_bool(cmd, "--gs1nocheck", gs1NoCheck() || (inputMode() & GS1NOCHECK_MODE));
|
||||
bool done_gs1 = false;
|
||||
if (gs1Parens() || (inputMode() & GS1PARENS_MODE)) {
|
||||
arg_bool(cmd, "--gs1parens", (done_gs1 = true));
|
||||
}
|
||||
if (gs1NoCheck() || (inputMode() & GS1NOCHECK_MODE)) {
|
||||
arg_bool(cmd, "--gs1nocheck", (done_gs1 = true));
|
||||
} else if (gs1SyntaxEngine() || (inputMode() & GS1SYNTAXENGINE_MODE)) {
|
||||
arg_bool(cmd, "--gs1strict", (done_gs1 = true));
|
||||
}
|
||||
arg_bool(cmd, "--gs1", (inputMode() & 0x07) == GS1_MODE && !done_gs1);
|
||||
arg_bool(cmd, "--gssep", gsSep());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user