mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-12 00:53:49 +00:00
GS1: new GS1RAW_MODE (CLI "--gs1raw") and GS1 Syntax Engine
"Unbracketed AI" (caret) options for specifying GS1 input (ticket #350, props Mario Verbruggen) DBAR_EXP_CC/DBAR_EXPSTK_CC: fix separator over finder patterns when linear part is greater than 4 codeblocks general: left-over raw_text -> content_segs in comments; update & expand some GS1 General Specs refs; some minor code fiddling test suite: suppress some additional ZINT_SANITIZEM false positives (& add new ZINT_TESTUTIL_SANITIZEM_INIT helpers)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
libzint - the open source barcode library
|
||||
Copyright (C) 2019-2025 Robin Stuart <rstuart114@gmail.com>
|
||||
Copyright (C) 2019-2026 Robin Stuart <rstuart114@gmail.com>
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
@@ -49,6 +49,17 @@ extern "C" {
|
||||
#define ZINT_DEBUG_TEST_ZXINGCPP 512
|
||||
#define ZINT_DEBUG_TEST_BWIPP_ZXINGCPP 1024
|
||||
|
||||
#ifdef ZINT_SANITIZEM /* Suppress clang -fsanitize=memory false positives */
|
||||
#define ZINT_TESTUTIL_SANITIZEM_INIT = {0}
|
||||
#define ZINT_TESTUTIL_SANITIZEM_INIT_2D = {{0}}
|
||||
#else
|
||||
#define ZINT_TESTUTIL_SANITIZEM_INIT
|
||||
#define ZINT_TESTUTIL_SANITIZEM_INIT_2D
|
||||
#endif
|
||||
|
||||
/* Hack `option_3` flag to indicate GS1 Syntax Engine caret input */
|
||||
#define ZINT_TESTUTIL_GS1CARET (1 << 24)
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include "../common.h"
|
||||
|
||||
Reference in New Issue
Block a user