1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-10 05:26:00 +00:00

DXFILMEDGE: various tweaks:

change # 147 -> 127 to use up barcode # holes;
  use "common.h" funcs `str_to_uppercase()` -> `to_upper()`,
  `count_char_occurrences()` -> `chr_cnt()`;
  prefix defines with `DX_` and funcs with `dx_`;
  `ZINT_DEBUG_PRINT` -> `symbol->debug & ZINT_DEBUG_PRINT`;
  bools to ints; use `posn()` to check for slash (returns length);
  restrict line lengths to 118; suppress some clang-tidy warnings;
  normalize some error messages;
  check for single "A" if any (`sscanf()`);
  use compliant height default; some whitespace formatting;
Tcl: add DXFILMEDGE support
docs: document DXFILMEDGE; update to latest pandoc
test suite: ZXingCPP: DXFILMEDGE support
This commit is contained in:
gitlost
2024-12-23 20:52:08 +00:00
parent d13a3aaf1a
commit fe3907c2cb
21 changed files with 451 additions and 255 deletions

View File

@@ -1,7 +1,7 @@
/* zint_tcl.c TCL binding for zint */
/*
zint - the open source tcl binding to the zint barcode library
Copyright (C) 2014-2023 Harald Oehlmann <oehhar@users.sourceforge.net>
Copyright (C) 2014-2024 Harald Oehlmann <oehhar@users.sourceforge.net>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
@@ -176,6 +176,8 @@
- TCL 9 compatibility
- support TCL buildinfo
- remove the zint command on dll unload
2024-12-23 GL
- Added DXFILMEDGE
*/
#if defined(__WIN32__) || defined(_WIN32) || defined(WIN32)
@@ -330,6 +332,7 @@ static const char *s_code_list[] = {
"MailMark-2D",
"UPU-S10",
"MailMark-4S",
"DXFilmEdge",
"AztecRunes",
"Code32",
"EAN-CC",
@@ -432,6 +435,7 @@ static const int s_code_number[] = {
BARCODE_MAILMARK_2D,
BARCODE_UPU_S10,
BARCODE_MAILMARK_4S,
BARCODE_DXFILMEDGE,
BARCODE_AZRUNE,
BARCODE_CODE32,
BARCODE_EANX_CC,