mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 10:15:10 -04:00
- set_height: fix min warning message - need to multiply
`min_row_height` by `zero_count`; use new precision modifier - errtxtf: add processing of precision modifier for "%f"/"%g" - test_qzint: fix "BARCODE_QRCODE no text" `encodedOption1()` default 0 -> -1
This commit is contained in:
parent
d222add96d
commit
0d1f878661
5 changed files with 201 additions and 166 deletions
|
@ -255,8 +255,9 @@ INTERNAL int errtxt(const int error_number, struct zint_symbol *symbol, const in
|
|||
/* Set `symbol->errtxt` to "err_id: msg" with restricted subset of `printf()` formatting, returning `error_number`.
|
||||
If `err_id` is -1, the "err_id: " prefix is omitted. Only the following specifiers are supported: "c", "d", "f",
|
||||
"g" and "s", with no modifiers apart from "<n>$" numbering for l10n ("<n>" 1-9), in which case all specifiers must
|
||||
be numbered, "%s" with length precisions: "%.*s", "%<n+1>$.*<n>$s", "%.<p>s" and "%<n>$.<p>s", and "%d" with
|
||||
zero-padded minimum field lengths: "%0<m>d" or %<n>$0<m>d" ("<m>" 1-99) */
|
||||
be numbered, "%s" with length precisions: "%.*s", "%<n+1>$.*<n>$s", "%.<p>s" and "%<n>$.<p>s", "%d" with
|
||||
zero-padded minimum field lengths: "%0<m>d" or %<n>$0<m>d" ("<m>" 1-99), and "%f"/"%g" with single-digit precision:
|
||||
"%.<m>f" or "%<n>$.<m>f" */
|
||||
INTERNAL int errtxtf(const int error_number, struct zint_symbol *symbol, const int err_id, const char *fmt, ...)
|
||||
ZINT_FORMAT_PRINTF(4, 5);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue