From nobody Thu May 12 13:10:46 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0B2161ADD6AA; Thu, 12 May 2022 13:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KzXFy6HFZz4bQR; Thu, 12 May 2022 13:10:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652361046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SW5LMb28rdIiHNWRcHiitzssfbxebk6xuabIiZ3uQfg=; b=NEqSMBORWPFpoDcF4yfAa3z50w3pYXgdMGhQaW0Lm99oHjeaRNhmFcWTgEx14/lmL22bRq ubF/qit2stXY/Xoa5BlPrRnS6Brd4WHuVZz7DosdurYf2S1Pd4Mi7QZ3w2iAe36HiC4jKy F62WSKNrZL71u1f4uNvZsxI0Dbi5Zq5EPJruuIkfm6zXacg+YgHpO9Tcj1Xra5mWzQG5Tp ETSahFNVqA+M5h9taLsToBKaUzf2vkaNgvr41CtLFZzicet3gLkZzmbe+WynUlT1PDiZ8a IaNT8wLQslQftmxQ0bVbz7h727j5HWW61SloijkbrnmqnEaVlRrdQXrQyRrfRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9D5DE6ABB; Thu, 12 May 2022 13:10:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24CDAkiF025975; Thu, 12 May 2022 13:10:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24CDAkwD025974; Thu, 12 May 2022 13:10:46 GMT (envelope-from git) Date: Thu, 12 May 2022 13:10:46 GMT Message-Id: <202205121310.24CDAkwD025974@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Pietro Cerutti Subject: git: 40908d8bebbc - main - devel/tcllib: update to 1.21 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gahr X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 40908d8bebbc5f3757e771592d477196b1910ab1 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652361046; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SW5LMb28rdIiHNWRcHiitzssfbxebk6xuabIiZ3uQfg=; b=sm01NeHP+mHSN2x0Sf7zBblLntilYRo+xvAE31/LPedWe2lTqmEx7IBO/WMnoHICJSNdH0 PxQ00jLzchNjEtlChPY7yIMoZIMUz2yy5gWUNBdpgDWOmHJM4drBFM84qK+VXGh/dkCRi5 12D7e5nLsEBKl1vEdIEh3lQX70CJDGS7CYT6m8kernkrMutlSvw4NgTaaittSZTqCDj8L0 286eNzWpBq05YdtFwApRzPwQRoEqqA7LLeMTGH0F3fD1APxxe0AefwMzq6mAPF8ZLbC8VY duNi9gvu4dtFNcY1rRbTUJY11CmozvZtNtwyGxRXFrPapyKV5LM7kpyv89xvRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652361046; a=rsa-sha256; cv=none; b=cL70qTY8Hd5oE/ant1IFA0zNQhTwBSSqOFaXYhAn/X8jbIwa+5vxuyey6wxnF/fzrFjcgM /hY33iByAH56OqEGy04FQbB5GzJjHSBg5XJM+DD1xqURq/hrS3yofjL4D6TcTCIeHwhhf7 FpRXi5t97nCGMC+5DgyJV02vryqz9rrOd0Fm7Z9EKdiDoKipa1tj1Y38oy9UoMHOwTDsYz 3rCBKAWo9v14AEc//YsyACvVhBv+g8XPBLKAz47zRgZkprM9dbtVuzqpXh0v85IEnH9geT fMyKtp8dJ4/28BTS1/lSWumSgAY5nJmlOVdAM0NcC96LkX02h85ui9+rAzSBng== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by gahr: URL: https://cgit.FreeBSD.org/ports/commit/?id=40908d8bebbc5f3757e771592d477196b1910ab1 commit 40908d8bebbc5f3757e771592d477196b1910ab1 Author: Pietro Cerutti AuthorDate: 2022-05-12 13:08:53 +0000 Commit: Pietro Cerutti CommitDate: 2022-05-12 13:10:41 +0000 devel/tcllib: update to 1.21 Release notes: https://core.tcl-lang.org/tcllib/technote/7a047636411e --- devel/tcllib/Makefile | 2 +- devel/tcllib/distinfo | 6 +- devel/tcllib/files/patch-warnings | 1722 ++++++++++++++++--------------------- devel/tcllib/pkg-plist | 102 ++- 4 files changed, 788 insertions(+), 1044 deletions(-) diff --git a/devel/tcllib/Makefile b/devel/tcllib/Makefile index 04b896389cbb..1bdfdd552a70 100644 --- a/devel/tcllib/Makefile +++ b/devel/tcllib/Makefile @@ -1,7 +1,7 @@ # Created by: Mikhail Teterin PORTNAME= tcllib -PORTVERSION= 1.20 +PORTVERSION= 1.21 CATEGORIES= devel tcl MASTER_SITES= https://core.tcl.tk/tcllib/uv/ diff --git a/devel/tcllib/distinfo b/devel/tcllib/distinfo index e2ff96cafc8d..e7b82e3fbe82 100644 --- a/devel/tcllib/distinfo +++ b/devel/tcllib/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1575275009 -SHA256 (tcllib-1.20.tar.xz) = 199e8ec7ee26220e8463bc84dd55c44965fc8ef4d4ac6e4684b2b1c03b1bd5b9 -SIZE (tcllib-1.20.tar.xz) = 6692664 +TIMESTAMP = 1652338359 +SHA256 (tcllib-1.21.tar.xz) = 10c7749e30fdd6092251930e8a1aa289b193a3b7f1abf17fee1d4fa89814762f +SIZE (tcllib-1.21.tar.xz) = 6467488 diff --git a/devel/tcllib/files/patch-warnings b/devel/tcllib/files/patch-warnings index 38276e544816..dcbbf3bf52d9 100644 --- a/devel/tcllib/files/patch-warnings +++ b/devel/tcllib/files/patch-warnings @@ -1,6 +1,17 @@ ---- modules/md5/md5.c.orig 2016-02-04 05:14:14 UTC -+++ modules/md5/md5.c -@@ -115,7 +115,7 @@ MD5_CTX *mdContext; +--- ./modules/rc4/rc4c.tcl.orig 2021-10-28 21:08:34.000000000 +0000 ++++ ./modules/rc4/rc4c.tcl 2022-05-12 07:00:35.590698000 +0000 +@@ -20,6 +20,8 @@ + namespace eval ::rc4 { + + critcl::ccode { ++ #include ++ + #include + + typedef struct RC4_CTX { +--- ./modules/md5/md5.c.orig 2019-08-23 04:55:08.000000000 +0000 ++++ ./modules/md5/md5.c 2022-05-12 07:00:35.560242000 +0000 +@@ -115,7 +115,7 @@ in the message whose digest is being computed. */ void MD5Update (mdContext, inBuf, inLen) @@ -9,9 +20,9 @@ unsigned int inLen; { register int i, ii; ---- modules/md5/md5.h.orig 2016-02-04 05:14:14 UTC -+++ modules/md5/md5.h -@@ -59,7 +59,7 @@ typedef struct { +--- ./modules/md5/md5.h.orig 2019-08-23 04:55:08.000000000 +0000 ++++ ./modules/md5/md5.h 2022-05-12 07:00:35.560779000 +0000 +@@ -59,7 +59,7 @@ } MD5_CTX; void MD5Init (MD5_CTX *mdContext); @@ -20,224 +31,467 @@ void MD5Final (unsigned char digest[16], MD5_CTX *mdContext); void Transform (UINT4 *buf, UINT4 *in); ---- modules/md5crypt/md5cryptc.tcl.orig 2016-02-04 05:14:14 UTC -+++ modules/md5crypt/md5cryptc.tcl -@@ -57,8 +57,9 @@ namespace eval ::md5crypt { - const char *salt, - const char *magic) - { -- static char passwd[120], *p; -- static const unsigned char *sp,*ep; -+ static char passwd[120]; -+ char *p; -+ const unsigned char *sp,*ep; - unsigned char final[16]; - int sl,pl,i; - MD5_CTX ctx,ctx1; -@@ -113,7 +114,7 @@ namespace eval ::md5crypt { - } - - /* Now make the output string */ -- snprintf(passwd, sizeof(passwd), "%s%.*s$", (char *)magic, -+ p = passwd + snprintf(passwd, sizeof(passwd), "%s%.*s$", (char *)magic, - sl, (const char *)sp); - - MD5Final(final,&ctx); -@@ -143,8 +144,6 @@ namespace eval ::md5crypt { - MD5Final(final,&ctx1); - } +--- ./modules/struct/tree/ms.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/tree/ms.c 2022-05-12 07:00:40.010342000 +0000 +@@ -312,7 +312,7 @@ + M_NODES, M_NUMCHILDREN, M_PARENT, M_PREVIOUS, M_RENAME, + M_ROOTNAME, M_SERIALIZE, M_SET, M_SIZE, M_SPLICE, + M_SWAP, M_UNSET, M_WALK, M_WALKPROC +- }; ++ } method; -- p = passwd + strlen(passwd); -- - l = (final[ 0]<<16) | (final[ 6]<<8) | final[12]; to64(p,l,4); p += 4; - l = (final[ 1]<<16) | (final[ 7]<<8) | final[13]; to64(p,l,4); p += 4; - l = (final[ 2]<<16) | (final[ 8]<<8) | final[14]; to64(p,l,4); p += 4; ---- modules/pt/pt_cparam_config_critcl.tcl.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/pt_cparam_config_critcl.tcl -@@ -114,6 +114,8 @@ proc ::pt::cparam::configuration::critcl - critcl::ccode { - /* -*- c -*- */ + if (objc < 2) { + Tcl_WrongNumArgs (interp, objc, objv, "option ?arg arg ...?"); +@@ -326,7 +326,7 @@ + * the requested functionality + */ -+ #include -+ #include - #include - #define SCOPE static +- switch (m) { ++ switch (method = m) { + case M_TASSIGN: return tm_TASSIGN (t, interp, objc, objv); + case M_TSET: return tm_TSET (t, interp, objc, objv); + case M_ANCESTORS: return tm_ANCESTORS (t, interp, objc, objv); +--- ./modules/struct/tree/util.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/tree/util.c 2022-05-12 07:00:40.012345000 +0000 +@@ -77,7 +77,7 @@ + /* Delete all items in the list. + */ ---- modules/pt/pt_cparam_config_tea.tcl.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/pt_cparam_config_tea.tcl -@@ -94,6 +94,7 @@ proc ::pt::cparam::configuration::tea::d - * * ** *** ***** ******** ************* *********************/ - #include - #include -+ #include - #include - #include - #define SCOPE static ---- modules/pt/pt_parse_peg_c.tcl.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/pt_parse_peg_c.tcl -@@ -45,6 +45,8 @@ namespace eval ::pt::parse { - critcl::ccode { - /* -*- c -*- */ +-void* ++void + nlq_clear (NLQ* q) + { + NL* next; +--- ./modules/struct/tree/util.h.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/tree/util.h 2022-05-12 07:00:40.012741000 +0000 +@@ -52,7 +52,7 @@ + void nlq_append (NLQ* q, void* n); + void nlq_push (NLQ* q, void* n); + void* nlq_pop (NLQ* q); +-void* nlq_clear (NLQ* q); ++void nlq_clear (NLQ* q); -+ #include -+ #include - #include - #define SCOPE static + #endif /* _UTIL_H */ + +--- ./modules/struct/tree/walk.c.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/struct/tree/walk.c 2022-05-12 07:00:40.013310000 +0000 +@@ -1,8 +1,9 @@ -@@ -896,7 +898,7 @@ namespace eval ::pt::parse { - p->ER->loc = p->CL; - p->ER->msg = rde_stack_new (NULL); - ASSERT_BOUNDS(s,p->numstr); -- rde_stack_push (p->ER->msg, (void*) s); -+ rde_stack_push (p->ER->msg, (void*)(intptr_t)s); - } - static void - error_state_free (void* esx) -@@ -986,7 +988,7 @@ namespace eval ::pt::parse { - hPtr = Tcl_FindHashEntry (&p->NC, (char*) p->CL); - if (!hPtr) { return 0; } - tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); -- hPtr = Tcl_FindHashEntry (tablePtr, (char*) s); -+ hPtr = Tcl_FindHashEntry (tablePtr, (void *)(intptr_t)s); - if (!hPtr) { return 0; } - - scs = Tcl_GetHashValue (hPtr); -@@ -1002,7 +1004,7 @@ namespace eval ::pt::parse { - SCOPE void - rde_param_i_symbol_save (RDE_PARAM p, long int s) - { -- long int at = (long int) rde_stack_top (p->LS); -+ intptr_t at = (intptr_t)rde_stack_top (p->LS); - NC_STATE* scs; - Tcl_HashEntry* hPtr; - Tcl_HashTable* tablePtr; -@@ -1011,7 +1013,7 @@ namespace eval ::pt::parse { - TRACE (("RDE_PARAM %p",p)); - TRACE (("INT %d",s)); - -- hPtr = Tcl_CreateHashEntry (&p->NC, (char*) at, &isnew); -+ hPtr = Tcl_CreateHashEntry (&p->NC, (void*) at, &isnew); - if (isnew) { - tablePtr = ALLOC (Tcl_HashTable); - Tcl_InitHashTable (tablePtr, TCL_ONE_WORD_KEYS); -@@ -1019,7 +1021,7 @@ namespace eval ::pt::parse { - } else { - tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); - } -- hPtr = Tcl_CreateHashEntry (tablePtr, (char*) s, &isnew); -+ hPtr = Tcl_CreateHashEntry (tablePtr, (void*)(intptr_t)s, &isnew); - if (isnew) { - - scs = ALLOC (NC_STATE); -@@ -1169,12 +1171,14 @@ namespace eval ::pt::parse { - static int - UniCharIsHexDigit (int character) - { -- return (character >= 0) && (character < 0x80) && isxdigit(character); -+ return UniCharIsDecDigit(character) || -+ (character >= 'a' && character <= 'f') || -+ (character >= 'A' && character <= 'F'); - } - static int - UniCharIsDecDigit (int character) - { -- return (character >= 0) && (character < 0x80) && isdigit(character); -+ return (character >= '0') && (character <= '9'); - } - SCOPE void - rde_param_i_value_clear (RDE_PARAM p) -@@ -4727,7 +4731,7 @@ namespace eval ::pt::parse { - /* -*- c -*- */ ++#include + #include +-#include "tcl.h" +-#include +-#include ++#include ++#include "t.h" ++#include "util.h" - typedef struct PARSERg { -- long int counter; -+ size_t counter; - char buf [50]; - } PARSERg; + /* .................................................. */ -@@ -4755,7 +4759,7 @@ namespace eval ::pt::parse { +--- ./modules/struct/sets/m.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/sets/m.c 2022-05-12 07:00:40.005832000 +0000 +@@ -80,7 +80,7 @@ + s_get (interp, val, &vs); } - parserg->counter ++; -- sprintf (parserg->buf, "peg%ld", parserg->counter); -+ sprintf (parserg->buf, "peg%td", parserg->counter); - return parserg->buf; - #undef KEY +- (void*) Tcl_CreateHashEntry(&vs->el, key, &new); ++ Tcl_CreateHashEntry(&vs->el, key, &new); + nx = 1; } ---- modules/pt/pt_rdengine_c.tcl.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/pt_rdengine_c.tcl -@@ -48,7 +48,7 @@ namespace eval ::pt { - */ - - typedef struct PARAMg { -- long int counter; -+ size_t counter; - char buf [50]; - } PARAMg; - -@@ -76,7 +76,7 @@ namespace eval ::pt { - } - - paramg->counter ++; -- sprintf (paramg->buf, "rde%ld", paramg->counter); -+ sprintf (paramg->buf, "rde%td", paramg->counter); - return paramg->buf; + if (nx) { +--- ./modules/struct/sets/s.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/sets/s.c 2022-05-12 07:00:40.006303000 +0000 +@@ -293,7 +293,7 @@ + if (Tcl_FindHashEntry (&b->el, key) != NULL) continue; + /* key is in a, not in b <=> in (a-b) */ - #undef KEY ---- modules/pt/rde_critcl/p.c.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/rde_critcl/p.c -@@ -2,9 +2,10 @@ - * (c) PARAM functions - */ +- (void*) Tcl_CreateHashEntry(&s->el, key, &new); ++ Tcl_CreateHashEntry(&s->el, key, &new); + } --#include /* Our public and internal APIs */ --#include /* Allocation macros */ -+#include - #include -+#include "pInt.h" /* Our public and internal APIs */ -+#include "util.h" /* Allocation macros */ + return s; +@@ -329,7 +329,7 @@ + if (Tcl_FindHashEntry (&b->el, key) == NULL) continue; + /* key is in a, in b <=> in (a*b) */ - /* .................................................. */ +- (void*) Tcl_CreateHashEntry(&s->el, key, &new); ++ Tcl_CreateHashEntry(&s->el, key, &new); + } -@@ -132,7 +133,7 @@ param_intern (RDE_STATE p, const char* l - hPtr = Tcl_CreateHashEntry(&p->str, literal, &isnew); - ASSERT (isnew, "Should have found entry"); + return s; +@@ -365,7 +365,7 @@ + he != NULL; + he = Tcl_NextHashEntry(&hs)) { + key = Tcl_GetHashKey (&b->el, he); +- (void*) Tcl_CreateHashEntry(&a->el, key, &new); ++ Tcl_CreateHashEntry(&a->el, key, &new); + if (new) {nx = 1;} + } + } +@@ -377,7 +377,7 @@ + { + int new; -- Tcl_SetHashValue (hPtr, p->numstr); -+ Tcl_SetHashValue (hPtr, (intptr_t)p->numstr); +- (void*) Tcl_CreateHashEntry(&a->el, item, &new); ++ Tcl_CreateHashEntry(&a->el, item, &new); + } - if (p->numstr >= p->maxnum) { - long int new; ---- modules/pt/rde_critcl/param.c.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/rde_critcl/param.c -@@ -3,11 +3,13 @@ - * == pt::rde (critcl) - Data Structures - PARAM architectural state. + void +--- ./modules/struct/graph/ds.h.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/graph/ds.h 2022-05-12 07:00:35.592738000 +0000 +@@ -160,7 +160,7 @@ */ --#include /* Public and private APIs */ --#include /* Stack handling */ --#include /* Token cache handling */ --#include /* Allocation utilities */ -+#include -+#include - #include -+#include "param.h" /* Public and private APIs */ -+#include "stack.h" /* Stack handling */ -+#include "tc.h" /* Token cache handling */ -+#include "util.h" /* Allocation utilities */ - - /* - * = = == === ===== ======== ============= ===================== -@@ -670,7 +672,7 @@ error_set (RDE_PARAM p, long int s) - - ASSERT_BOUNDS(s,p->numstr); + typedef struct GG { +- long int counter; /* Graph id generator */ ++ size_t counter; /* Graph id generator */ + char buf [50]; /* Buffer for handle construction */ + } GG; -- rde_stack_push (p->ER->msg, (void*) s); -+ rde_stack_push (p->ER->msg, (void*)(intptr_t)s); +--- ./modules/struct/graph/filter.c.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/struct/graph/filter.c 2022-05-12 07:00:35.593586000 +0000 +@@ -261,13 +261,12 @@ + (na->mode == NA_NONE)) { + filter_none (interp, gx, &l); + } else { +- if (na->mode != NA_NONE) { +- if (nodes) { +- filter_mode_n (na->mode, gx, &l, na->nc, na->nv, g); +- } else { +- filter_mode_a (na->mode, gx, &l, na->nc, na->nv, g); +- } ++ if (nodes) { ++ filter_mode_n (na->mode, gx, &l, na->nc, na->nv, g); ++ } else { ++ filter_mode_a (na->mode, gx, &l, na->nc, na->nv, g); + } ++ + if (na->key && na->value) { + filter_kv (interp, gx, &l, gf, g, na->key, na->value); + } else if (na->key) { +@@ -332,6 +331,7 @@ + case NA_IN: filter_mode_a_in (gx, l, nc, nv, g); break; + case NA_INNER: filter_mode_a_inn (gx, l, nc, nv, g); break; + case NA_OUT: filter_mode_a_out (gx, l, nc, nv, g); break; ++ case NA_NONE: /* nothing */; + } + } + +@@ -592,6 +592,7 @@ + case NA_IN: filter_mode_n_in (gx, l, nc, nv, g); break; + case NA_INNER: filter_mode_n_inn (gx, l, nc, nv, g); break; + case NA_OUT: filter_mode_n_out (gx, l, nc, nv, g); break; ++ case NA_NONE: /* nothing */; + } + } + +--- ./modules/struct/graph/graph.c.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/struct/graph/graph.c 2022-05-12 07:00:35.594881000 +0000 +@@ -2,12 +2,13 @@ + * (c) Graph functions + */ + +-#include +-#include +-#include +-#include +-#include +-#include ++#include ++#include "arc.h" ++#include "attr.h" ++#include "graph.h" ++#include "node.h" ++#include "objcmd.h" ++#include "util.h" + + /* .................................................. */ + +--- ./modules/struct/graph/objcmd.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/graph/objcmd.c 2022-05-12 07:00:40.002398000 +0000 +@@ -40,7 +40,7 @@ + M_DESTROY, M_GET, M_GETALL, M_KEYEXISTS, M_KEYS, M_LAPPEND, + M_NODE, M_NODES, M_SERIALIZE, M_SET, M_SWAP, M_UNSET, + M_WALK +- }; ++ } method; + + static CONST char* a_methods [] = { + "append", "attr", "delete", "exists", "flip", +@@ -57,7 +57,7 @@ + MA_MOVE_SOURCE, MA_MOVE_TARGET, MA_NODES, MA_RENAME, MA_SET, MA_SETUNWEIGHTED, + MA_SETWEIGHT, MA_SOURCE, MA_TARGET, MA_UNSET, MA_UNSETWEIGHT, + MA_WEIGHTS +- }; ++ } a_method; + + static CONST char* n_methods [] = { + "append", "attr", "degree", "delete", "exists", +@@ -69,7 +69,7 @@ + MN_APPEND, MN_ATTR, MN_DEGREE, MN_DELETE, MN_EXISTS, + MN_GET, MN_GETALL, MN_INSERT, MN_KEYEXISTS, MN_KEYS, + MN_LAPPEND, MN_OPPOSITE, MN_RENAME, MN_SET, MN_UNSET +- }; ++ } n_method; + + if (objc < 2) { + Tcl_WrongNumArgs (interp, objc, objv, "option ?arg arg ...?"); +@@ -83,7 +83,7 @@ + * the requested functionality + */ + +- switch (m) { ++ switch (method = m) { + case M_GSET: return gm_GSET (g, interp, objc, objv); + case M_GASSIGN: return gm_GASSIGN (g, interp, objc, objv); + case M_APPEND: return gm_APPEND (g, interp, objc, objv); +@@ -95,7 +95,7 @@ + 0, &m) != TCL_OK) { + return TCL_ERROR; + } +- switch (m) { ++ switch (a_method = m) { + case MA_APPEND: return gm_arc_APPEND (g, interp, objc, objv); + case MA_ATTR: return gm_arc_ATTR (g, interp, objc, objv); + case MA_DELETE: return gm_arc_DELETE (g, interp, objc, objv); +@@ -141,7 +141,7 @@ + 0, &m) != TCL_OK) { + return TCL_ERROR; + } +- switch (m) { ++ switch (n_method = m) { + case MN_APPEND: return gm_node_APPEND (g, interp, objc, objv); + case MN_ATTR: return gm_node_ATTR (g, interp, objc, objv); + case MN_DEGREE: return gm_node_DEGREE (g, interp, objc, objv); +--- ./modules/struct/graph/util.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/graph/util.c 2022-05-12 07:00:40.002840000 +0000 +@@ -77,7 +77,7 @@ + /* Delete all items in the list. + */ + +-void* ++void + g_nlq_clear (NLQ* q) + { + NL* next; +--- ./modules/struct/graph/util.h.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/graph/util.h 2022-05-12 07:00:40.003195000 +0000 +@@ -53,7 +53,7 @@ + void g_nlq_append (NLQ* q, void* n); + void g_nlq_push (NLQ* q, void* n); + void* g_nlq_pop (NLQ* q); +-void* g_nlq_clear (NLQ* q); ++void g_nlq_clear (NLQ* q); + + #endif /* _G_UTIL_H */ + +--- ./modules/struct/graph/walk.c.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/struct/graph/walk.c 2022-05-12 07:00:40.003767000 +0000 +@@ -1,9 +1,9 @@ + +-#include "tcl.h" + #include +-#include +-#include +-#include ++#include ++#include "graph.h" ++#include "util.h" ++#include "walk.h" + + /* .................................................. */ + +@@ -23,7 +23,7 @@ + static int walk_invoke (Tcl_Interp* interp, GN* n, + int cc, Tcl_Obj** ev, Tcl_Obj* action); + +-static int walk_neighbours (GN* n, Tcl_HashTable* v, int dir, ++static void walk_neighbours (GN* n, Tcl_HashTable* v, int dir, + int* nc, GN*** nv); + + /* .................................................. */ +@@ -288,7 +288,7 @@ + + /* .................................................. */ + +-static int ++static void + walk_neighbours (GN* n, Tcl_HashTable* vn, int dir, + int* nc, GN*** nv) + { +--- ./modules/struct/queue/ms.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/queue/ms.c 2022-05-12 07:00:40.004897000 +0000 +@@ -41,7 +41,7 @@ + M_CLEAR, M_DESTROY, M_GET, + M_PEEK, M_PUT, M_SIZE, + M_UNGET +- }; ++ } method; + + if (objc < 2) { + Tcl_WrongNumArgs (interp, objc, objv, "option ?arg arg ...?"); +@@ -55,7 +55,7 @@ + * the requested functionality + */ + +- switch (m) { ++ switch (method = m) { + case M_CLEAR: return qum_CLEAR (q, interp, objc, objv); + case M_DESTROY: return qum_DESTROY (q, interp, objc, objv); + case M_GET: return qum_PEEK (q, interp, objc, objv, 1 /* get */); +--- ./modules/struct/stack/ms.c.orig 2019-08-23 04:55:09.000000000 +0000 ++++ ./modules/struct/stack/ms.c 2022-05-12 07:00:40.007279000 +0000 +@@ -39,7 +39,7 @@ + enum methods { + M_CLEAR, M_DESTROY, M_GET, M_GETR, M_PEEK, M_PEEKR, + M_POP, M_PUSH, M_ROTATE, M_SIZE, M_TRIM, M_TRIMV +- }; ++ } method; + + if (objc < 2) { + Tcl_WrongNumArgs (interp, objc, objv, "option ?arg arg ...?"); +@@ -53,7 +53,7 @@ + * the requested functionality + */ + +- switch (m) { ++ switch (method = m) { + case M_CLEAR: return stm_CLEAR (s, interp, objc, objv); + case M_DESTROY: return stm_DESTROY (s, interp, objc, objv); + case M_GET: return stm_GET (s, interp, objc, objv, 0 ); /* get */ +--- ./modules/struct/queue_c.tcl.orig 2021-10-28 21:08:34.000000000 +0000 ++++ ./modules/struct/queue_c.tcl 2022-05-12 07:00:40.004223000 +0000 +@@ -35,7 +35,7 @@ + */ + + typedef struct QDg { +- long int counter; ++ size_t counter; + char buf [50]; + } QDg; + +--- ./modules/struct/sets_c.tcl.orig 2021-10-28 20:35:34.000000000 +0000 ++++ ./modules/struct/sets_c.tcl 2022-05-12 07:00:40.005270000 +0000 +@@ -53,7 +53,7 @@ + S_equal,S_exclude, S_include, S_intersect, + S_intersect3, S_size, S_subsetof, S_subtract, + S_symdiff, S_union +- }; ++ } method; + + int m; + +@@ -69,7 +69,7 @@ + * the requested functionality + */ + +- switch (m) { ++ switch (method = m) { + case S_add: return sm_ADD (NULL, interp, objc, objv); + case S_contains: return sm_CONTAINS (NULL, interp, objc, objv); + case S_difference: return sm_DIFFERENCE (NULL, interp, objc, objv); +--- ./modules/struct/stack_c.tcl.orig 2021-10-28 21:08:34.000000000 +0000 ++++ ./modules/struct/stack_c.tcl 2022-05-12 07:00:40.006760000 +0000 +@@ -40,7 +40,7 @@ + */ + + typedef struct SDg { +- long int counter; ++ size_t counter; + char buf [50]; + } SDg; + +--- ./modules/struct/tree_c.tcl.orig 2021-10-28 21:08:34.000000000 +0000 ++++ ./modules/struct/tree_c.tcl 2022-05-12 07:00:40.007725000 +0000 +@@ -41,7 +41,7 @@ + */ + + typedef struct TDg { +- long int counter; ++ size_t counter; + char buf [50]; + } TDg; + +--- ./modules/sha1/sha1c.tcl.orig 2022-05-03 18:53:00.000000000 +0000 ++++ ./modules/sha1/sha1c.tcl 2022-05-12 07:00:35.591089000 +0000 +@@ -32,8 +32,7 @@ + static void + sha1_free_rep(Tcl_Obj* obj) + { +- SHA1_CTX* mp = (SHA1_CTX*) obj->internalRep.otherValuePtr; +- Tcl_Free ((char*)mp); ++ Tcl_Free(obj->internalRep.otherValuePtr); + } + + static void +--- ./modules/md5crypt/md5cryptc.tcl.orig 2021-10-28 21:08:52.000000000 +0000 ++++ ./modules/md5crypt/md5cryptc.tcl 2022-05-12 07:00:35.561245000 +0000 +@@ -57,8 +57,9 @@ + const char *salt, + const char *magic) + { +- static char passwd[120], *p; +- static const unsigned char *sp,*ep; ++ static char passwd[120]; ++ char *p; ++ const unsigned char *sp,*ep; + unsigned char final[16]; + int sl,pl,i; + MD5_CTX ctx,ctx1; +@@ -113,7 +114,7 @@ + } + + /* Now make the output string */ +- snprintf(passwd, sizeof(passwd), "%s%.*s$", (char *)magic, ++ p = passwd + snprintf(passwd, sizeof(passwd), "%s%.*s$", (char *)magic, + sl, (const char *)sp); + + MD5Final(final,&ctx); +@@ -143,8 +144,6 @@ + MD5Final(final,&ctx1); + } + +- p = passwd + strlen(passwd); +- + l = (final[ 0]<<16) | (final[ 6]<<8) | final[12]; to64(p,l,4); p += 4; + l = (final[ 1]<<16) | (final[ 7]<<8) | final[13]; to64(p,l,4); p += 4; + l = (final[ 2]<<16) | (final[ 8]<<8) | final[14]; to64(p,l,4); p += 4; +--- ./modules/pt/rde_critcl/p.c.orig 2019-08-23 04:55:08.000000000 +0000 ++++ ./modules/pt/rde_critcl/p.c 2022-05-12 07:00:35.565397000 +0000 +@@ -2,9 +2,10 @@ + * (c) PARAM functions + */ + +-#include /* Our public and internal APIs */ +-#include /* Allocation macros */ ++#include + #include ++#include "pInt.h" /* Our public and internal APIs */ ++#include "util.h" /* Allocation macros */ + + /* .................................................. */ + +@@ -132,7 +133,7 @@ + hPtr = Tcl_CreateHashEntry(&p->str, literal, &isnew); + ASSERT (isnew, "Should have found entry"); + +- Tcl_SetHashValue (hPtr, p->numstr); ++ Tcl_SetHashValue (hPtr, (intptr_t)p->numstr); + + if (p->numstr >= p->maxnum) { + long int new; +--- ./modules/pt/rde_critcl/param.c.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/pt/rde_critcl/param.c 2022-05-12 07:00:35.566472000 +0000 +@@ -672,7 +672,7 @@ + + ASSERT_BOUNDS(s,p->numstr); + +- rde_stack_push (p->ER->msg, (void*) s); ++ rde_stack_push (p->ER->msg, (void*)(intptr_t)s); } static void -@@ -820,7 +822,7 @@ rde_param_i_symbol_restore (RDE_PARAM p, +@@ -822,7 +822,7 @@ if (!hPtr) { return 0; } tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); @@ -246,7 +500,7 @@ if (!hPtr) { return 0; } /* -@@ -861,7 +863,7 @@ rde_param_i_symbol_save (RDE_PARAM p, lo +@@ -863,7 +863,7 @@ * 2-level hash table keyed by location, and symbol ... */ @@ -255,7 +509,7 @@ if (isnew) { tablePtr = ALLOC (Tcl_HashTable); -@@ -871,7 +873,7 @@ rde_param_i_symbol_save (RDE_PARAM p, lo +@@ -873,7 +873,7 @@ tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); } @@ -264,7 +518,7 @@ if (isnew) { /* -@@ -1071,13 +1073,15 @@ UniCharIsAscii (int character) +@@ -1073,13 +1073,15 @@ static int UniCharIsHexDigit (int character) { @@ -282,8 +536,8 @@ } /* ---- modules/pt/rde_critcl/param.h.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/rde_critcl/param.h +--- ./modules/pt/rde_critcl/param.h.orig 2019-08-23 04:55:08.000000000 +0000 ++++ ./modules/pt/rde_critcl/param.h 2022-05-12 07:00:35.567038000 +0000 @@ -9,6 +9,7 @@ #include "tcl.h" #include /* Scoping */ @@ -292,18 +546,18 @@ /* * The state structure is opaque, its internals are known only to the ---- modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic -@@ -45,6 +45,8 @@ namespace eval ::PARSER { +--- ./modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic 2022-05-12 07:00:35.568151000 +0000 +@@ -45,6 +45,8 @@ critcl::ccode { /* -*- c -*- */ + #include + #include #include - #define SCOPE static - -@@ -896,7 +898,7 @@ namespace eval ::PARSER { + #include /* is... */ + #include /* qsort */ +@@ -898,7 +900,7 @@ p->ER->loc = p->CL; p->ER->msg = rde_stack_new (NULL); ASSERT_BOUNDS(s,p->numstr); @@ -312,7 +566,7 @@ } static void error_state_free (void* esx) -@@ -986,7 +988,7 @@ namespace eval ::PARSER { +@@ -988,7 +990,7 @@ hPtr = Tcl_FindHashEntry (&p->NC, (char*) p->CL); if (!hPtr) { return 0; } tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); @@ -321,7 +575,7 @@ if (!hPtr) { return 0; } scs = Tcl_GetHashValue (hPtr); -@@ -1011,7 +1013,7 @@ namespace eval ::PARSER { +@@ -1013,7 +1015,7 @@ TRACE (("RDE_PARAM %p",p)); TRACE (("INT %d",s)); @@ -330,7 +584,7 @@ if (isnew) { tablePtr = ALLOC (Tcl_HashTable); Tcl_InitHashTable (tablePtr, TCL_ONE_WORD_KEYS); -@@ -1019,7 +1021,7 @@ namespace eval ::PARSER { +@@ -1021,7 +1023,7 @@ } else { tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); } @@ -339,7 +593,7 @@ if (isnew) { scs = ALLOC (NC_STATE); -@@ -1169,12 +1171,14 @@ namespace eval ::PARSER { +@@ -1171,12 +1173,14 @@ static int UniCharIsHexDigit (int character) { @@ -356,18 +610,18 @@ } SCOPE void rde_param_i_value_clear (RDE_PARAM p) ---- modules/pt/tests/data/ok/peg_cparam-critcl/10_notahead.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/tests/data/ok/peg_cparam-critcl/10_notahead -@@ -45,6 +45,8 @@ namespace eval ::PARSER { +--- ./modules/pt/tests/data/ok/peg_cparam-critcl/10_notahead.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/pt/tests/data/ok/peg_cparam-critcl/10_notahead 2022-05-12 07:00:35.569227000 +0000 +@@ -45,6 +45,8 @@ critcl::ccode { /* -*- c -*- */ + #include + #include #include - #define SCOPE static - -@@ -896,7 +898,7 @@ namespace eval ::PARSER { + #include /* is... */ + #include /* qsort */ +@@ -898,7 +900,7 @@ p->ER->loc = p->CL; p->ER->msg = rde_stack_new (NULL); ASSERT_BOUNDS(s,p->numstr); @@ -376,7 +630,7 @@ } static void error_state_free (void* esx) -@@ -986,7 +988,7 @@ namespace eval ::PARSER { +@@ -988,7 +990,7 @@ hPtr = Tcl_FindHashEntry (&p->NC, (char*) p->CL); if (!hPtr) { return 0; } tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); @@ -385,7 +639,7 @@ if (!hPtr) { return 0; } scs = Tcl_GetHashValue (hPtr); -@@ -1011,7 +1013,7 @@ namespace eval ::PARSER { +@@ -1013,7 +1015,7 @@ TRACE (("RDE_PARAM %p",p)); TRACE (("INT %d",s)); @@ -394,7 +648,7 @@ if (isnew) { tablePtr = ALLOC (Tcl_HashTable); Tcl_InitHashTable (tablePtr, TCL_ONE_WORD_KEYS); -@@ -1019,7 +1021,7 @@ namespace eval ::PARSER { +@@ -1021,7 +1023,7 @@ } else { tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); } @@ -403,7 +657,7 @@ if (isnew) { scs = ALLOC (NC_STATE); -@@ -1169,12 +1171,14 @@ namespace eval ::PARSER { +@@ -1171,12 +1173,14 @@ static int UniCharIsHexDigit (int character) { @@ -420,18 +674,18 @@ } SCOPE void rde_param_i_value_clear (RDE_PARAM p) ---- modules/pt/tests/data/ok/peg_cparam-critcl/11_epsilon.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/tests/data/ok/peg_cparam-critcl/11_epsilon -@@ -45,6 +45,8 @@ namespace eval ::PARSER { +--- ./modules/pt/tests/data/ok/peg_cparam-critcl/11_epsilon.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/pt/tests/data/ok/peg_cparam-critcl/11_epsilon 2022-05-12 07:00:35.570230000 +0000 +@@ -45,6 +45,8 @@ critcl::ccode { /* -*- c -*- */ + #include + #include #include - #define SCOPE static - -@@ -896,7 +898,7 @@ namespace eval ::PARSER { + #include /* is... */ + #include /* qsort */ +@@ -898,7 +900,7 @@ p->ER->loc = p->CL; p->ER->msg = rde_stack_new (NULL); ASSERT_BOUNDS(s,p->numstr); @@ -440,7 +694,7 @@ } static void error_state_free (void* esx) -@@ -986,7 +988,7 @@ namespace eval ::PARSER { +@@ -988,7 +990,7 @@ hPtr = Tcl_FindHashEntry (&p->NC, (char*) p->CL); if (!hPtr) { return 0; } tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); @@ -449,7 +703,7 @@ if (!hPtr) { return 0; } scs = Tcl_GetHashValue (hPtr); -@@ -1011,7 +1013,7 @@ namespace eval ::PARSER { +@@ -1013,7 +1015,7 @@ TRACE (("RDE_PARAM %p",p)); TRACE (("INT %d",s)); @@ -458,7 +712,7 @@ if (isnew) { tablePtr = ALLOC (Tcl_HashTable); Tcl_InitHashTable (tablePtr, TCL_ONE_WORD_KEYS); -@@ -1019,7 +1021,7 @@ namespace eval ::PARSER { +@@ -1021,7 +1023,7 @@ } else { tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); } @@ -467,7 +721,7 @@ if (isnew) { scs = ALLOC (NC_STATE); -@@ -1169,12 +1171,14 @@ namespace eval ::PARSER { +@@ -1171,12 +1173,14 @@ static int UniCharIsHexDigit (int character) { @@ -484,18 +738,18 @@ } SCOPE void rde_param_i_value_clear (RDE_PARAM p) ---- modules/pt/tests/data/ok/peg_cparam-critcl/1_functions.orig 2016-02-04 05:14:14 UTC -+++ modules/pt/tests/data/ok/peg_cparam-critcl/1_functions -@@ -45,6 +45,8 @@ namespace eval ::PARSER { +--- ./modules/pt/tests/data/ok/peg_cparam-critcl/1_functions.orig 2021-04-14 16:57:28.000000000 +0000 ++++ ./modules/pt/tests/data/ok/peg_cparam-critcl/1_functions 2022-05-12 07:00:35.571208000 +0000 +@@ -45,6 +45,8 @@ critcl::ccode { /* -*- c -*- */ + #include + #include #include - #define SCOPE static - -@@ -896,7 +898,7 @@ namespace eval ::PARSER { + #include /* is... */ *** 1858 LINES SKIPPED ***