backend_tcl/zint_tcl.vcsproj: put ZINT_VERSION in general defines

and remove from individual .c files;
  rename include dirs "C:\myprograms\tcl9.0" -> "C:\Tcl" and lib
  dirs "C:\myprograms\tcl9.0\lib" -> "C:\Tcl\lib";
  suppress some warnings
backend_tcl/zint.c: suppress some warnings
tools/update_version.php: update for "backend_tcl/zint_tcl.dsp" ->
  ".vcxproj"
manual.pmd: backend_tcl: fix "require package" -> "package require"
  and explain "C:\Tcl" may need adjusting
general: update copyright years in ".rc" files
library: remove needless `eci` zeroing in `set_symbol_defaults()`
  and make `barcode_seg_funcs` initialization consistent (147 now)
This commit is contained in:
gitlost 2025-01-29 16:54:59 +00:00
parent b377b14360
commit 53cb29dbc6
12 changed files with 103 additions and 230 deletions

View file

@ -67,7 +67,7 @@ static void set_symbol_defaults(struct zint_symbol *symbol) {
symbol->option_1 = -1;
symbol->show_hrt = 1; /* Show human readable text */
symbol->input_mode = DATA_MODE;
symbol->eci = 0; /* Default 0 uses ECI 3 */
/* symbol->eci = 0; Default 0 uses ECI 3 */
symbol->dot_size = 0.8f; /* 0.4 / 0.5 */
symbol->text_gap = 1.0f;
symbol->guard_descent = 5.0f;
@ -607,7 +607,7 @@ static const barcode_seg_func_t barcode_seg_funcs[BARCODE_LAST + 1 - LIB_SEG_FUN
NULL, NULL, NULL, NULL, NULL, /*130-134*/
NULL, NULL, NULL, NULL, NULL, /*135-139*/
NULL, codeone, gridmatrix, NULL, ultra, /*140-144*/
rmqr, NULL, /*145-146*/
rmqr, NULL, NULL, /*145-147*/
};
static int reduced_charset(struct zint_symbol *symbol, struct zint_seg segs[], const int seg_count);

View file

@ -30,7 +30,7 @@ BEGIN
VALUE "FileDescription", "libzint barcode library\0"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "zint.dll\0"
VALUE "LegalCopyright", "Copyright © 2024 Robin Stuart & BogDan Vatra\0"
VALUE "LegalCopyright", "Copyright © 2025 Robin Stuart & BogDan Vatra\0"
VALUE "OriginalFilename", "zint.dll\0"
VALUE "ProductName", "libzint\0"
VALUE "ProductVersion", VER_FILEVERSION_STR

View file

@ -1,4 +1,4 @@
Copyright (c) 2024 Robin Stuart
Copyright (c) 2025 Robin Stuart
All rights reserved.
Redistribution and use in source and binary forms are permitted

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-2024 Harald Oehlmann <oehhar@users.sourceforge.net>
Copyright (C) 2014-2025 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
@ -178,6 +178,8 @@
- remove the zint command on dll unload
2024-12-23 GL
- Added DXFILMEDGE
2025-01-29 GL
- MSVC: suppress warning 4996 (_CRT_SECURE_NO_WARNINGS)
*/
#if defined(__WIN32__) || defined(_WIN32) || defined(WIN32)
@ -193,6 +195,11 @@
#ifdef ERROR_INVALID_DATA
#undef ERROR_INVALID_DATA
#endif
#if defined(_MSC_VER) && _MSC_VER > 1200 /* VC6 */
#pragma warning(disable: 4996) /* function or variable may be unsafe */
#endif
#endif
#include <zint.h>
@ -603,7 +610,7 @@ EXPORT BOOL WINAPI DllEntryPoint (HINSTANCE hInstance,
/* Initialisation Procedures */
DLLEXPORT int Zint_Init (Tcl_Interp *interp)
{
int * tkFlagPtr;
int *tkFlagPtr;
Tcl_CmdInfo info;
/*------------------------------------------------------------------------*/
/* If TCL_STUB is not defined, the following only does a version check */
@ -837,8 +844,8 @@ static int Encode(Tcl_Interp *interp, int objc,
int seg_count = 0;
int seg_no;
Tcl_Obj *pSegDataObjs[10] = {0};
Tcl_DString segInputs[10];
struct zint_seg segs[10];
Tcl_DString segInputs[10] = {{0}};
struct zint_seg segs[10] = {{0}};
double xdim = 0.0;
double resolution = 0.0;
/*------------------------------------------------------------------------*/
@ -1643,8 +1650,8 @@ static int Encode(Tcl_Interp *interp, int objc,
Tcl_NewStringObj("Unknown photo image", -1));
fError = 1;
} else {
Tk_PhotoImageBlock sImageBlock;
char * pImageRGBA = NULL;
Tk_PhotoImageBlock sImageBlock = {0};
char *pImageRGBA = NULL;
if (my_symbol->alphamap == NULL) {
sImageBlock.pixelPtr = (unsigned char *) my_symbol->bitmap;
sImageBlock.width = my_symbol->bitmap_width;

View file

@ -44,6 +44,7 @@
<OutDir>.\Debug\</OutDir>
<IntDir>.\Debug\</IntDir>
<LinkIncremental>true</LinkIncremental>
<TargetName>zint</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>.\Release\</OutDir>
@ -58,9 +59,9 @@
<Optimization>Disabled</Optimization>
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<AdditionalIncludeDirectories>..\backend;C:\myprograms\tcl9.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;ZINT_TCL_EXPORTS;USE_TCL_STUBS;USE_TK_STUBS;ZINT_NO_PNG;PACKAGE_VERSION="2.13.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<AdditionalIncludeDirectories>..\backend;C:\Tcl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;_ZINT_TCL_EXPORTS;USE_TCL_STUBS;USE_TK_STUBS;ZINT_NO_PNG;ZINT_VERSION="2.13.0.9";PACKAGE_VERSION="2.13.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\Debug\</AssemblerListingLocation>
<BrowseInformation>true</BrowseInformation>
<PrecompiledHeaderOutputFile>.\Debug\zint_tcl.pch</PrecompiledHeaderOutputFile>
@ -92,7 +93,7 @@
<SubSystem>Console</SubSystem>
<OutputFile>Debug/zint.dll</OutputFile>
<ImportLibrary>.\Debug\zint.lib</ImportLibrary>
<AdditionalLibraryDirectories>C:\myprograms\tcl9.0\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>C:\Tcl\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>odbc32.lib;odbccp32.lib;tclstub.lib;tkstub.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
@ -105,8 +106,8 @@
<Optimization>MaxSpeed</Optimization>
<SuppressStartupBanner>true</SuppressStartupBanner>
<WarningLevel>Level3</WarningLevel>
<AdditionalIncludeDirectories>..\backend;C:\myprograms\tcl9.0\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;ZINT_TCL_EXPORTS;USE_TCL_STUBS;USE_TK_STUBS;ZINT_NO_PNG;PACKAGE_VERSION="2.13.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\backend;C:\Tcl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;ZINT_TCL_EXPORTS;USE_TCL_STUBS;USE_TK_STUBS;ZINT_NO_PNG;ZINT_VERSION="2.13.0.9";PACKAGE_VERSION="2.13.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AssemblerListingLocation>.\Release\</AssemblerListingLocation>
<BrowseInformation>true</BrowseInformation>
<PrecompiledHeaderOutputFile>.\Release\zint_tcl.pch</PrecompiledHeaderOutputFile>
@ -136,208 +137,67 @@
<SubSystem>Console</SubSystem>
<OutputFile>zint.dll</OutputFile>
<ImportLibrary>.\Release\zint.lib</ImportLibrary>
<AdditionalLibraryDirectories>C:\myprograms\tcl9.0\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>C:\Tcl\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>odbc32.lib;odbccp32.lib;tclstub.lib;tkstub.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\backend\2of5.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\2of5.c" />
<ClCompile Include="..\backend\2of5inter.c" />
<ClCompile Include="..\backend\2of5inter_based.c" />
<ClCompile Include="..\backend\auspost.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\aztec.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\bc412.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\bmp.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\auspost.c" />
<ClCompile Include="..\backend\aztec.c" />
<ClCompile Include="..\backend\bc412.c" />
<ClCompile Include="..\backend\bmp.c" />
<ClCompile Include="..\backend\channel.c" />
<ClCompile Include="..\backend\codabar.c" />
<ClCompile Include="..\backend\codablock.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\code.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\code1.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\codablock.c" />
<ClCompile Include="..\backend\code.c" />
<ClCompile Include="..\backend\code1.c" />
<ClCompile Include="..\backend\code11.c" />
<ClCompile Include="..\backend\code128.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\code128.c" />
<ClCompile Include="..\backend\code128_based.c" />
<ClCompile Include="..\backend\code16k.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\code49.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\common.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\composite.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\dmatrix.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\dotcode.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\code16k.c" />
<ClCompile Include="..\backend\code49.c" />
<ClCompile Include="..\backend\common.c" />
<ClCompile Include="..\backend\composite.c" />
<ClCompile Include="..\backend\dmatrix.c" />
<ClCompile Include="..\backend\dotcode.c" />
<ClCompile Include="..\backend\dxfilmedge.c" />
<ClCompile Include="..\backend\eci.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\emf.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\filemem.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\general_field.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\gif.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\gridmtx.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\gs1.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\hanxin.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\imail.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\large.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\library.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\mailmark.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\maxicode.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\medical.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\output.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\pcx.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\pdf417.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\plessey.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\png.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\postal.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\ps.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\qr.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\raster.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\reedsol.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\rss.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\svg.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\telepen.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\tif.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\ultra.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\upcean.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\vector.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="zint.c">
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
<AdditionalOptions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> /D ZINT_VERSION="\"2.13.0.9\"" /D ZINT_VERSION="\"2.13.0.9\""</AdditionalOptions>
</ClCompile>
<ClCompile Include="..\backend\eci.c" />
<ClCompile Include="..\backend\emf.c" />
<ClCompile Include="..\backend\filemem.c" />
<ClCompile Include="..\backend\general_field.c" />
<ClCompile Include="..\backend\gif.c" />
<ClCompile Include="..\backend\gridmtx.c" />
<ClCompile Include="..\backend\gs1.c" />
<ClCompile Include="..\backend\hanxin.c" />
<ClCompile Include="..\backend\imail.c" />
<ClCompile Include="..\backend\large.c" />
<ClCompile Include="..\backend\library.c" />
<ClCompile Include="..\backend\mailmark.c" />
<ClCompile Include="..\backend\maxicode.c" />
<ClCompile Include="..\backend\medical.c" />
<ClCompile Include="..\backend\output.c" />
<ClCompile Include="..\backend\pcx.c" />
<ClCompile Include="..\backend\pdf417.c" />
<ClCompile Include="..\backend\plessey.c" />
<ClCompile Include="..\backend\png.c" />
<ClCompile Include="..\backend\postal.c" />
<ClCompile Include="..\backend\ps.c" />
<ClCompile Include="..\backend\qr.c" />
<ClCompile Include="..\backend\raster.c" />
<ClCompile Include="..\backend\reedsol.c" />
<ClCompile Include="..\backend\rss.c" />
<ClCompile Include="..\backend\svg.c" />
<ClCompile Include="..\backend\telepen.c" />
<ClCompile Include="..\backend\tif.c" />
<ClCompile Include="..\backend\ultra.c" />
<ClCompile Include="..\backend\upcean.c" />
<ClCompile Include="..\backend\vector.c" />
<ClCompile Include="zint.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>

View file

@ -985,9 +985,9 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb10-1"><a href=
<h2 id="zint-tcl-backend">2.5 Zint Tcl Backend</h2>
<p>The Tcl backend in the <code>"backend_tcl"</code> sub-directory may
be built using the provided TEA (Tcl Extension Architecture) build on
Linux, Windows, macOS and Android. For Windows, an MSVC6 makefile is
also available. See <a href="#annex-c.-tcl-backend-binding">Annex C. Tcl
Backend Binding</a> for further details.</p>
Linux, Windows, macOS and Android. See <a
href="#annex-c.-tcl-backend-binding">Annex C. Tcl Backend Binding</a>
for further details.</p>
<h1 id="using-zint-barcode-studio">3. Using Zint Barcode Studio</h1>
<p>Zint Barcode Studio is the graphical user interface for Zint. If you
are starting from a command line interface you can start the GUI by
@ -8695,9 +8695,12 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb123-1"><a href
<span id="cb123-4"><a href="#cb123-4" aria-hidden="true" tabindex="-1"></a><span class="fu">make</span></span>
<span id="cb123-5"><a href="#cb123-5" aria-hidden="true" tabindex="-1"></a><span class="fu">sudo</span> make install</span></code></pre></div>
<p>For Windows, a Microsoft Visual C++ project file is available at
<code>"backend_tcl\zint_tcl.vcxproj"</code>. There is also a Visual
Studio makefile available at <code>"backend_tcl\win\makefile.vc"</code>,
which can be run with <code>nmake</code> - for details see
<code>"backend_tcl\zint_tcl.vcxproj"</code>. Note that this assumes that
Tcl/Tk is available in <code>"C:\Tcl"</code> and that the libraries are
named <code>"tclstub.lib"</code> and <code>"tkstub.lib"</code> - change
to match your setup. There is also a Visual Studio makefile available at
<code>"backend_tcl\win\makefile.vc"</code>, which can be run with
<code>nmake</code> - for details see
<code>"backend_tcl\win\README.txt"</code>.</p>
<p>Once built and installed, invoke the Tcl/Tk CLI
<code>"wish"</code>:</p>
@ -8706,7 +8709,7 @@ class="sourceCode bash"><code class="sourceCode bash"><span id="cb124-1"><a href
<p>and ignoring the Tk window click back to the command prompt
<code>"%"</code> and type:</p>
<div class="sourceCode" id="cb125"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb125-1"><a href="#cb125-1" aria-hidden="true" tabindex="-1"></a><span class="ex">require</span> package zint</span>
class="sourceCode bash"><code class="sourceCode bash"><span id="cb125-1"><a href="#cb125-1" aria-hidden="true" tabindex="-1"></a><span class="ex">package</span> require zint</span>
<span id="cb125-2"><a href="#cb125-2" aria-hidden="true" tabindex="-1"></a><span class="ex">zint</span> help</span></code></pre></div>
<p>which will show the usage message, with options very similiar to the
Zint CLI. (One notable difference is that boolean options such as

View file

@ -239,8 +239,7 @@ root directory.
The Tcl backend in the `"backend_tcl"` sub-directory may be built using the
provided TEA (Tcl Extension Architecture) build on Linux, Windows, macOS and
Android. For Windows, an MSVC6 makefile is also available. See [Annex C. Tcl
Backend Binding] for further details.
Android. See [Annex C. Tcl Backend Binding] for further details.
# 3. Using Zint Barcode Studio
@ -5033,9 +5032,11 @@ sudo make install
```
For Windows, a Microsoft Visual C++ project file is available at
`"backend_tcl\zint_tcl.vcxproj"`. There is also a Visual Studio makefile
available at `"backend_tcl\win\makefile.vc"`, which can be run with `nmake` -
for details see `"backend_tcl\win\README.txt"`.
`"backend_tcl\zint_tcl.vcxproj"`. Note that this assumes that Tcl/Tk is
available in `"C:\Tcl"` and that the libraries are named `"tclstub.lib"` and
`"tkstub.lib"` - change to match your setup. There is also a Visual Studio
makefile available at `"backend_tcl\win\makefile.vc"`, which can be run with
`nmake` - for details see `"backend_tcl\win\README.txt"`.
Once built and installed, invoke the Tcl/Tk CLI `"wish"`:
@ -5046,7 +5047,7 @@ wish
and ignoring the Tk window click back to the command prompt `"%"` and type:
```bash
require package zint
package require zint
zint help
```

View file

@ -416,8 +416,7 @@ root directory.
The Tcl backend in the "backend_tcl" sub-directory may be built using the
provided TEA (Tcl Extension Architecture) build on Linux, Windows, macOS and
Android. For Windows, an MSVC6 makefile is also available. See Annex C. Tcl
Backend Binding for further details.
Android. See Annex C. Tcl Backend Binding for further details.
3. Using Zint Barcode Studio
@ -4831,8 +4830,10 @@ A Tcl binding is available in the "backend_tcl” sub-directory. To make on Unix
sudo make install
For Windows, a Microsoft Visual C++ project file is available at
"backend_tcl\zint_tcl.vcxproj". There is also a Visual Studio makefile available
at "backend_tcl\win\makefile.vc", which can be run with nmake - for details see
"backend_tcl\zint_tcl.vcxproj". Note that this assumes that Tcl/Tk is available
in "C:\Tcl" and that the libraries are named "tclstub.lib" and "tkstub.lib" -
change to match your setup. There is also a Visual Studio makefile available at
"backend_tcl\win\makefile.vc", which can be run with nmake - for details see
"backend_tcl\win\README.txt".
Once built and installed, invoke the Tcl/Tk CLI "wish":
@ -4841,7 +4842,7 @@ Once built and installed, invoke the Tcl/Tk CLI "wish":
and ignoring the Tk window click back to the command prompt "%" and type:
require package zint
package require zint
zint help
which will show the usage message, with options very similiar to the Zint CLI.

View file

@ -30,7 +30,7 @@ BEGIN
VALUE "FileDescription", "zint barcode generator\0"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "zint.exe\0"
VALUE "LegalCopyright", "Copyright © 2024 Robin Stuart & BogDan Vatra\0"
VALUE "LegalCopyright", "Copyright © 2025 Robin Stuart & BogDan Vatra\0"
VALUE "OriginalFilename", "zint.exe\0"
VALUE "ProductName", "zint\0"
VALUE "ProductVersion", VER_FILEVERSION_STR

View file

@ -58,7 +58,7 @@ BEGIN
VALUE "InternalName", "qtZint"
VALUE "LegalCopyright", "Copyright © 2024 Robin Stuart & BogDan Vatra"
VALUE "LegalCopyright", "Copyright © 2025 Robin Stuart & BogDan Vatra"
VALUE "License", "GNU General Public License version 3"

View file

@ -2,7 +2,7 @@
/* Update Zint version number in various files */
/*
libzint - the open source barcode library
Copyright (C) 2020-2024 Robin Stuart <rstuart114@gmail.com>
Copyright (C) 2020-2025 Robin Stuart <rstuart114@gmail.com>
*/
/* SPDX-License-Identifier: BSD-3-Clause */
@ -274,9 +274,10 @@ version_replace(1, $data_dirname . 'backend/Makefile.mingw', '/^ZINT_VERSION:=-D
version_replace(1, $data_dirname . 'backend_tcl/configure.ac', '/^AC_INIT\(\[zint\],[ \t]*\[/', '/[0-9.]+/', $v_base_str);
// backend_tcl/zint_tcl.dsp
// backend_tcl/zint_tcl.vcxproj
version_replace(2, $data_dirname . 'backend_tcl/zint_tcl.dsp', '/ZINT_VERSION="\\\\"/', '/ZINT_VERSION="\\\\"[0-9.]+\\\\""/', 'ZINT_VERSION="\\"' . $v_str . '\\""');
version_replace(2, $data_dirname . 'backend_tcl/zint_tcl.vcxproj', '/ZINT_VERSION="/', '/ZINT_VERSION="[0-9.]+"/', 'ZINT_VERSION="' . $v_str . '"');
version_replace(2, $data_dirname . 'backend_tcl/zint_tcl.vcxproj', '/PACKAGE_VERSION="/', '/PACKAGE_VERSION="[0-9.]+"/', 'PACKAGE_VERSION="' . $v_base_str . '"');
// backend_tcl/lib/zint/pkgIndex.tcl

View file

@ -55,7 +55,7 @@ BEGIN
VALUE "FileDescription", "zint barcode generator\0"
VALUE "FileVersion", VER_FILEVERSION_STR
VALUE "InternalName", "zint.exe\0"
VALUE "LegalCopyright", "Copyright © 2024 Robin Stuart\0"
VALUE "LegalCopyright", "Copyright © 2025 Robin Stuart\0"
VALUE "LegalTrademarks", "\0"
VALUE "License", "GNU General Public License version 3\0"
VALUE "OriginalFilename", "zint.exe\0"