From owner-svn-ports-head@freebsd.org Thu Nov 9 20:17:23 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1489E5AB48; Thu, 9 Nov 2017 20:17:23 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6912876AB1; Thu, 9 Nov 2017 20:17:23 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA9KHMwa067817; Thu, 9 Nov 2017 20:17:22 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA9KHMlY067816; Thu, 9 Nov 2017 20:17:22 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201711092017.vA9KHMlY067816@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Thu, 9 Nov 2017 20:17:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453866 - head/devel/tcllib/files X-SVN-Group: ports-head X-SVN-Commit-Author: antoine X-SVN-Commit-Paths: head/devel/tcllib/files X-SVN-Commit-Revision: 453866 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Nov 2017 20:17:23 -0000 Author: antoine Date: Thu Nov 9 20:17:22 2017 New Revision: 453866 URL: https://svnweb.freebsd.org/changeset/ports/453866 Log: Regenerate patch-warnings so that it applies with stricter patch(1) PR: 223545 With hat: portmgr Modified: head/devel/tcllib/files/patch-warnings Modified: head/devel/tcllib/files/patch-warnings ============================================================================== --- head/devel/tcllib/files/patch-warnings Thu Nov 9 20:09:18 2017 (r453865) +++ head/devel/tcllib/files/patch-warnings Thu Nov 9 20:17:22 2017 (r453866) @@ -1,324 +1,29 @@ ---- modules/struct/graph/arc.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/arc.c 2014-12-08 18:42:51 -0500 -@@ -3,8 +3,9 @@ +--- modules/md5/md5.c.orig 2016-02-04 05:14:14 UTC ++++ modules/md5/md5.c +@@ -115,7 +115,7 @@ MD5_CTX *mdContext; + in the message whose digest is being computed. */ - --#include --#include --#include --#include -+#include "arc.h" -+#include "attr.h" -+#include "graph.h" -+#include "nacommon.h" -+#include "util.h" - - /* .................................................. */ ---- modules/struct/graph/attr.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/attr.c 2014-12-08 18:52:56 -0500 -@@ -3,6 +3,8 @@ - */ - --#include --#include -+#include "attr.h" -+#include "util.h" -+#include -+ - - /* .................................................. */ ---- modules/struct/graph/filter.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/filter.c 2014-12-08 19:09:17 -0500 -@@ -3,7 +3,8 @@ - */ - --#include --#include --#include -+#include -+#include "nacommon.h" -+#include "util.h" -+#include "node.h" - - /* .................................................. */ -@@ -254,11 +254,10 @@ - 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); -@@ -325,4 +324,5 @@ - 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 */; - } - } -@@ -585,4 +585,5 @@ - 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/sets_c.tcl 2014-02-11 14:04:18 -0500 -+++ modules/struct/sets_c.tcl 2014-12-08 19:14:25 -0500 -@@ -54,5 +54,5 @@ - S_intersect3, S_size, S_subsetof, S_subtract, - S_symdiff, S_union -- }; -+ } method; - - int m; -@@ -70,5 +70,5 @@ - */ - -- 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); ---- modules/struct/stack/ms.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/stack/ms.c 2014-12-08 20:27:34 -0500 -@@ -40,5 +40,5 @@ - 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) { -@@ -54,5 +54,5 @@ - */ - -- 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); ---- modules/pt/pt_rdengine_c.tcl 2014-02-11 14:04:18 -0500 -+++ modules/pt/pt_rdengine_c.tcl 2014-12-08 19:24:26 -0500 -@@ -49,5 +49,5 @@ - - typedef struct PARAMg { -- long int counter; -+ size_t counter; - char buf [50]; - } PARAMg; -@@ -77,5 +77,5 @@ - - paramg->counter ++; -- sprintf (paramg->buf, "rde%ld", paramg->counter); -+ sprintf (paramg->buf, "rde%td", paramg->counter); - return paramg->buf; - ---- modules/struct/queue_c.tcl 2014-02-11 14:04:18 -0500 -+++ modules/struct/queue_c.tcl 2014-12-08 19:52:34 -0500 -@@ -36,5 +36,5 @@ - - typedef struct QDg { -- long int counter; -+ size_t counter; - char buf [50]; - } QDg; -@@ -64,5 +64,5 @@ - - qdg->counter ++; -- sprintf (qdg->buf, "queue%d", qdg->counter); -+ sprintf (qdg->buf, "queue%td", qdg->counter); - return qdg->buf; - ---- modules/struct/stack_c.tcl 2014-02-11 14:04:18 -0500 -+++ modules/struct/stack_c.tcl 2014-12-08 19:52:34 -0500 -@@ -41,5 +41,5 @@ - - typedef struct SDg { -- long int counter; -+ size_t counter; - char buf [50]; - } SDg; -@@ -69,5 +69,5 @@ - - sdg->counter ++; -- sprintf (sdg->buf, "stack%d", sdg->counter); -+ sprintf (sdg->buf, "stack%td", sdg->counter); - return sdg->buf; - ---- modules/struct/tree_c.tcl 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree_c.tcl 2014-12-08 19:52:34 -0500 -@@ -42,5 +42,5 @@ - - typedef struct TDg { -- long int counter; -+ size_t counter; - char buf [50]; - } TDg; -@@ -70,5 +70,5 @@ - - tdg->counter ++; -- sprintf (tdg->buf, "tree%d", tdg->counter); -+ sprintf (tdg->buf, "tree%td", tdg->counter); - return tdg->buf; - ---- modules/struct/graph/ds.h 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/ds.h 2014-12-08 20:36:48 -0500 -@@ -161,5 +161,5 @@ - - typedef struct GG { -- long int counter; /* Graph id generator */ -+ size_t counter; /* Graph id generator */ - char buf [50]; /* Buffer for handle construction */ - } GG; ---- modules/struct/graph/global.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/global.c 2014-12-08 20:35:07 -0500 -@@ -25,5 +25,5 @@ - - gg->counter ++; -- sprintf (gg->buf, "graph%d", gg->counter); -+ sprintf (gg->buf, "graph%td", gg->counter); - return gg->buf; - } ---- modules/pt/rde_critcl/param.h 2015-04-30 04:21:20 UTC -+++ modules/pt/rde_critcl/param.h 2015-05-27 18:01:30 UTC -@@ -10,4 +10,5 @@ - #include /* Scoping */ - #include /* Stack handling */ -+#include /* intptr_t */ - - /* ---- modules/pt/rde_critcl/param.c 2015-04-30 04:21:20 UTC -+++ modules/pt/rde_critcl/param.c 2015-05-27 18:11:57 -@@ -4,9 +4,11 @@ - */ - --#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 */ - - /* -@@ -671,5 +673,5 @@ error_set (RDE_PARAM p, long int s) - ASSERT_BOUNDS(s,p->numstr); - -- rde_stack_push (p->ER->msg, (void*) s); -+ rde_stack_push (p->ER->msg, (void*)(intptr_t)s); - } - -@@ -821,5 +823,5 @@ rde_param_i_symbol_restore (RDE_PARAM p, - - tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); -- hPtr = Tcl_FindHashEntry (tablePtr, (char*) s); -+ hPtr = Tcl_FindHashEntry (tablePtr, (void*)(intptr_t)s); - if (!hPtr) { return 0; } - -@@ -862,5 +864,5 @@ rde_param_i_symbol_save (RDE_PARAM p, lo - */ - -- hPtr = Tcl_CreateHashEntry (&p->NC, (char*) at, &isnew); -+ hPtr = Tcl_CreateHashEntry (&p->NC, (void*)(intptr_t)at, &isnew); - - if (isnew) { -@@ -872,5 +874,5 @@ rde_param_i_symbol_save (RDE_PARAM p, lo - } - -- hPtr = Tcl_CreateHashEntry (tablePtr, (char*) s, &isnew); -+ hPtr = Tcl_CreateHashEntry (tablePtr, (void *)(intptr_t)s, &isnew); - - if (isnew) { -@@ -1072,5 +1074,7 @@ static int - UniCharIsHexDigit (int character) + void MD5Update (mdContext, inBuf, inLen) +-register MD5_CTX *mdContext; unsigned char *inBuf; ++register MD5_CTX *mdContext; const unsigned char *inBuf; + unsigned int inLen; { -- return (character >= 0) && (character < 0x80) && isxdigit(character); -+ return UniCharIsDecDigit(character) || -+ (character >= 'a' && character <= 'f') || -+ (character >= 'A' && character <= 'F'); - } + 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 { + } MD5_CTX; -@@ -1078,5 +1082,5 @@ static int - UniCharIsDecDigit (int character) - { -- return (character >= 0) && (character < 0x80) && isdigit(character); -+ return (character >= '0') && (character <= '9'); - } - ---- modules/struct/tree/m.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/m.c 2014-12-08 20:05:53 -0500 -@@ -5,4 +5,6 @@ - */ - -+#include -+#include - #include - #include "util.h" -@@ -19,4 +21,6 @@ - static int TclGetIntForIndex (Tcl_Interp* interp, Tcl_Obj* objPtr, - int endValue, int* indexPtr); -+static int TclCheckBadOctal (Tcl_Interp *interp, const char *value); -+static int TclFormatInt (char *buffer, long n); - - /* .................................................. */ -@@ -2546,5 +2550,5 @@ - res = t_walk (interp, tn, type, order, - t_walk_invokecmd, -- (Tcl_Obj*) cc, (Tcl_Obj*) ev, objv [0]); -+ (void *)(intptr_t)cc, (Tcl_Obj*) ev, objv [0]); - - ckfree ((char*) ev); ---- modules/struct/tree/walk.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/walk.c 2014-12-08 20:07:16 -0500 -@@ -1,7 +1,8 @@ - -+#include - #include --#include "tcl.h" --#include --#include -+#include -+#include "t.h" -+#include "util.h" - - /* .................................................. */ -@@ -238,5 +239,5 @@ - { - int res; -- int cc = (int) dummy0; -+ int cc = (intptr_t) dummy0; - Tcl_Obj** ev = (Tcl_Obj**) dummy1; /* cc+3 elements */ - ---- modules/md5/md5.h 2014-02-11 14:04:18 -0500 -+++ modules/md5/md5.h 2014-12-08 20:23:10 -0500 -@@ -60,5 +60,5 @@ - void MD5Init (MD5_CTX *mdContext); -void MD5Update (MD5_CTX *mdContext, unsigned char *buf, unsigned int len); +void MD5Update (MD5_CTX *mdContext, const unsigned char *buf, unsigned int len); void MD5Final (unsigned char digest[16], MD5_CTX *mdContext); void Transform (UINT4 *buf, UINT4 *in); ---- modules/md5/md5.c 2014-02-11 14:04:18 -0500 -+++ modules/md5/md5.c 2014-12-08 20:22:05 -0500 -@@ -116,5 +116,5 @@ - */ - void MD5Update (mdContext, inBuf, inLen) --register MD5_CTX *mdContext; unsigned char *inBuf; -+register MD5_CTX *mdContext; const unsigned char *inBuf; - unsigned int inLen; - { ---- modules/md5crypt/md5cryptc.tcl 2014-02-11 14:04:18 -0500 -+++ modules/md5crypt/md5cryptc.tcl 2014-12-08 20:20:05 -0500 -@@ -57,6 +58,7 @@ + +--- 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; @@ -328,211 +33,104 @@ + const unsigned char *sp,*ep; unsigned char final[16]; int sl,pl,i; -@@ -113,5 +115,5 @@ + 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); -@@ -143,6 +145,4 @@ + MD5Final(final,&ctx); +@@ -143,8 +144,6 @@ namespace eval ::md5crypt { + 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; ---- modules/rc4/rc4c.tcl 2014-02-11 14:04:18 -0500 -+++ modules/rc4/rc4c.tcl 2014-12-08 20:25:20 -0500 -@@ -21,4 +21,6 @@ + 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 -*- */ - critcl::ccode { -+ #include -+ - typedef struct RC4_CTX { - unsigned char x; ---- modules/struct/sets/m.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/sets/m.c 2014-12-08 20:40:10 -0500 -@@ -81,5 +81,5 @@ - } ++ #include ++ #include + #include + #define SCOPE static -- (void*) Tcl_CreateHashEntry(&vs->el, key, &new); -+ Tcl_CreateHashEntry(&vs->el, key, &new); - nx = 1; - } ---- modules/struct/sets/s.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/sets/s.c 2014-12-08 21:36:17 -0500 -@@ -294,5 +294,5 @@ - /* key is in a, not in b <=> in (a-b) */ - -- (void*) Tcl_CreateHashEntry(&s->el, key, &new); -+ Tcl_CreateHashEntry(&s->el, key, &new); - } - -@@ -330,5 +330,5 @@ - /* key is in a, in b <=> in (a*b) */ - -- (void*) Tcl_CreateHashEntry(&s->el, key, &new); -+ Tcl_CreateHashEntry(&s->el, key, &new); - } - -@@ -366,5 +366,5 @@ - 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;} - } -@@ -378,5 +378,5 @@ - int new; - -- (void*) Tcl_CreateHashEntry(&a->el, item, &new); -+ Tcl_CreateHashEntry(&a->el, item, &new); - } - ---- modules/struct/tree/ms.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/ms.c 2014-12-08 21:02:50 -0500 -@@ -313,5 +313,5 @@ - M_ROOTNAME, M_SERIALIZE, M_SET, M_SIZE, M_SPLICE, - M_SWAP, M_UNSET, M_WALK, M_WALKPROC -- }; -+ } method; - - if (objc < 2) { -@@ -327,5 +327,5 @@ - */ - -- 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); ---- modules/struct/tree/t.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/t.c 2014-12-08 21:07:14 -0500 -@@ -3,7 +3,8 @@ - */ - --#include --#include --#include -+#include -+#include "t.h" -+#include "tn.h" -+#include "util.h" - - /* .................................................. */ ---- modules/struct/tree/tn.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/tn.c 2014-12-08 21:09:28 -0500 -@@ -3,6 +3,7 @@ - */ - --#include --#include -+#include "t.h" -+#include "tn.h" -+#include "util.h" - - /* .................................................. */ ---- modules/struct/tree/util.h 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/util.h 2014-12-08 21:15:54 -0500 -@@ -53,5 +53,5 @@ - void nlq_push (NLQ* q, void* n); - void* nlq_pop (NLQ* q); --void* nlq_clear (NLQ* q); -+void nlq_clear (NLQ* q); - - #endif /* _UTIL_H */ ---- modules/struct/tree/util.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/tree/util.c 2014-12-08 21:15:58 -0500 -@@ -78,5 +78,5 @@ - */ - --void* -+void - nlq_clear (NLQ* q) - { ---- modules/struct/graph/util.h 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/util.h 2014-12-08 21:56:17 -0500 -@@ -54,5 +54,5 @@ - 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/util.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/util.c 2014-12-08 21:55:44 -0500 -@@ -78,5 +78,5 @@ - */ - --void* -+void - g_nlq_clear (NLQ* q) - { ---- modules/pt/rde_critcl/p.c 2014-02-11 14:04:18 -0500 -+++ modules/pt/rde_critcl/p.c 2014-12-08 21:21:53 -0500 -@@ -3,7 +3,8 @@ - */ - --#include /* Our public and internal APIs */ --#include /* Allocation macros */ -+#include - #include -+#include "pInt.h" /* Our public and internal APIs */ -+#include "util.h" /* Allocation macros */ - - /* .................................................. */ -@@ -129,5 +130,5 @@ - ASSERT (isnew, "Should have found entry"); - -- Tcl_SetHashValue (hPtr, p->numstr); -+ Tcl_SetHashValue (hPtr, (intptr_t)p->numstr); - - if (p->numstr >= p->maxnum) { ---- modules/pt/pt_parse_peg_c.tcl 2015-04-30 04:21:20 UTC -+++ modules/pt/pt_parse_peg_c.tcl 2015-05-27 18:21:29 UTC -@@ -46,4 +46,6 @@ +--- 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 -*- */ + #include + #include #include #define SCOPE static -@@ -883,5 +885,5 @@ + +@@ -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 -@@ -972,5 +974,5 @@ + 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; } -@@ -988,5 +990,5 @@ - rde_param_i_symbol_save (RDE_PARAM p, int s) + 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; -@@ -997,5 +999,5 @@ + 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); -@@ -1005,5 +1007,5 @@ + 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) { -@@ -1150,10 +1152,12 @@ + scs = ALLOC (NC_STATE); +@@ -1169,12 +1171,14 @@ namespace eval ::pt::parse { + static int UniCharIsHexDigit (int character) { - return (character >= 0) && (character < 0x80) && isxdigit(character); @@ -547,275 +145,202 @@ + return (character >= '0') && (character <= '9'); } SCOPE void -@@ -4693,5 +4697,5 @@ + rde_param_i_value_clear (RDE_PARAM p) +@@ -4727,7 +4731,7 @@ namespace eval ::pt::parse { + /* -*- c -*- */ typedef struct PARSERg { - long int counter; + size_t counter; char buf [50]; } PARSERg; -@@ -4721,5 +4725,5 @@ +@@ -4755,7 +4759,7 @@ namespace eval ::pt::parse { + } + parserg->counter ++; - sprintf (parserg->buf, "peg%ld", parserg->counter); + sprintf (parserg->buf, "peg%td", parserg->counter); return parserg->buf; #undef KEY ---- modules/struct/graph/graph.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/graph.c 2014-12-08 21:33:22 -0500 -@@ -3,10 +3,11 @@ - */ + } +--- 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 { + */ --#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" + typedef struct PARAMg { +- long int counter; ++ size_t counter; + char buf [50]; + } PARAMg; - /* .................................................. */ -@@ -160,9 +161,9 @@ - goto abort; +@@ -76,7 +76,7 @@ namespace eval ::pt { } -- if (Tcl_FindHashEntry (&cn, (char*) n)) continue; -+ if (Tcl_FindHashEntry (&cn, (void *) n)) continue; - ASSERT_BOUNDS(j, lc-1); -- he = Tcl_CreateHashEntry (&cn, (char*) n, &new); -+ he = Tcl_CreateHashEntry (&cn, (void *) n, &new); - lv [j] = n->base.name; -- Tcl_SetHashValue (he, (ClientData) j); -+ Tcl_SetHashValue (he, (ClientData)(intptr_t)j); - j += 3; - } -@@ -181,5 +182,5 @@ - he = Tcl_CreateHashEntry (&cn, (char*) n, &new); - lv [j] = n->base.name; -- Tcl_SetHashValue (he, (ClientData) j); -+ Tcl_SetHashValue (he, (ClientData)(intptr_t)j); - j += 3; - } ---- modules/struct/graph/methods.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/methods.c 2014-12-08 21:39:41 -0500 -@@ -5,12 +5,14 @@ + + paramg->counter ++; +- sprintf (paramg->buf, "rde%ld", paramg->counter); ++ sprintf (paramg->buf, "rde%td", paramg->counter); + return paramg->buf; + + #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 */ -+#include +-#include /* Our public and internal APIs */ +-#include /* Allocation macros */ ++#include #include --#include --#include --#include --#include --#include --#include --#include -+#include "arc.h" -+#include "attr.h" -+#include "graph.h" -+#include "methods.h" -+#include "nacommon.h" -+#include "node.h" -+#include "util.h" -+#include "walk.h" ++#include "pInt.h" /* Our public and internal APIs */ ++#include "util.h" /* Allocation macros */ - /* .................................................. ---- modules/struct/graph/nacommon.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/nacommon.c 2014-12-08 21:41:25 -0500 -@@ -3,7 +3,8 @@ - */ + /* .................................................. */ --#include --#include --#include -+#include "attr.h" -+#include "nacommon.h" -+#include "util.h" -+#include "node.h" +@@ -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"); - /* .................................................. */ ---- modules/struct/graph/node.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/node.c 2014-12-08 21:43:45 -0500 -@@ -3,7 +3,8 @@ +- 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 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. */ --#include --#include --#include -+#include "nacommon.h" -+#include "arc.h" -+#include "node.h" -+#include "util.h" +-#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 */ - /* .................................................. */ ---- modules/struct/graph/methods.h 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/methods.h 2014-12-08 21:47:58 -0500 -@@ -31,4 +31,5 @@ - int gm_arc_DELETE (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); - int gm_arc_EXISTS (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); -+int gm_arc_FLIP (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); - int gm_arc_GET (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); - int gm_arc_GETALL (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); -@@ -40,4 +41,8 @@ - int gm_arc_KEYS (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); - int gm_arc_LAPPEND (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); -+int gm_arc_MOVE (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); -+int gm_arc_MOVE_SRC (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); -+int gm_arc_MOVE_TARG (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); -+int gm_arc_NODES (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); - int gm_arc_RENAME (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); - int gm_arc_SET (G* g, Tcl_Interp* interp, int objc, Tcl_Obj* const* objv); ---- modules/struct/graph/objcmd.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/objcmd.c 2014-12-08 21:53:43 -0500 -@@ -41,5 +41,5 @@ - M_NODE, M_NODES, M_SERIALIZE, M_SET, M_SWAP, M_UNSET, - M_WALK -- }; -+ } method; + /* + * = = == === ===== ======== ============= ===================== +@@ -670,7 +672,7 @@ error_set (RDE_PARAM p, long int s) - static CONST char* a_methods [] = { -@@ -58,5 +58,5 @@ - MA_SETWEIGHT, MA_SOURCE, MA_TARGET, MA_UNSET, MA_UNSETWEIGHT, - MA_WEIGHTS -- }; -+ } a_method; + ASSERT_BOUNDS(s,p->numstr); - static CONST char* n_methods [] = { -@@ -70,5 +70,5 @@ - MN_GET, MN_GETALL, MN_INSERT, MN_KEYEXISTS, MN_KEYS, - MN_LAPPEND, MN_OPPOSITE, MN_RENAME, MN_SET, MN_UNSET -- }; -+ } n_method; +- rde_stack_push (p->ER->msg, (void*) s); ++ rde_stack_push (p->ER->msg, (void*)(intptr_t)s); + } - if (objc < 2) { -@@ -84,5 +84,5 @@ - */ + static void +@@ -820,7 +822,7 @@ rde_param_i_symbol_restore (RDE_PARAM p, + if (!hPtr) { return 0; } -- 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); -@@ -96,5 +96,5 @@ - 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); -@@ -142,5 +142,5 @@ - 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); ---- modules/struct/graph/walk.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/graph/walk.c 2014-12-08 21:58:59 -0500 -@@ -1,7 +1,7 @@ -- --#include "tcl.h" --#include --#include --#include -+#include -+#include -+#include "graph.h" -+#include "util.h" -+#include "walk.h" + tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); +- hPtr = Tcl_FindHashEntry (tablePtr, (char*) s); ++ hPtr = Tcl_FindHashEntry (tablePtr, (void*)(intptr_t)s); + if (!hPtr) { return 0; } - /* .................................................. */ -@@ -23,5 +23,5 @@ - int cc, Tcl_Obj** ev, Tcl_Obj* action); + /* +@@ -861,7 +863,7 @@ rde_param_i_symbol_save (RDE_PARAM p, lo + * 2-level hash table keyed by location, and symbol ... + */ --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); +- hPtr = Tcl_CreateHashEntry (&p->NC, (char*) at, &isnew); ++ hPtr = Tcl_CreateHashEntry (&p->NC, (void*)(intptr_t)at, &isnew); -@@ -288,5 +288,5 @@ - /* .................................................. */ + if (isnew) { + tablePtr = ALLOC (Tcl_HashTable); +@@ -871,7 +873,7 @@ rde_param_i_symbol_save (RDE_PARAM p, lo + tablePtr = (Tcl_HashTable*) Tcl_GetHashValue (hPtr); + } --static int -+static void - walk_neighbours (GN* n, Tcl_HashTable* vn, int dir, - int* nc, GN*** nv) ---- modules/struct/queue/ms.c 2014-02-11 14:04:18 -0500 -+++ modules/struct/queue/ms.c 2014-12-08 22:02:03 -0500 -@@ -42,5 +42,5 @@ - M_PEEK, M_PUT, M_SIZE, - M_UNGET -- }; -+ } method; +- hPtr = Tcl_CreateHashEntry (tablePtr, (char*) s, &isnew); ++ hPtr = Tcl_CreateHashEntry (tablePtr, (void *)(intptr_t)s, &isnew); - if (objc < 2) { -@@ -56,5 +56,5 @@ - */ + if (isnew) { + /* +@@ -1071,13 +1073,15 @@ UniCharIsAscii (int character) + static int + UniCharIsHexDigit (int character) + { +- return (character >= 0) && (character < 0x80) && isxdigit(character); ++ return UniCharIsDecDigit(character) || ++ (character >= 'a' && character <= 'f') || ++ (character >= 'A' && character <= 'F'); + } -- 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); ---- modules/sha1/sha1c.tcl 2015-04-30 00:21:20 -0400 -+++ modules/sha1/sha1c.tcl 2015-05-27 13:54:27 -0400 -@@ -33,6 +33,5 @@ - sha1_free_rep(Tcl_Obj* obj) - { -- SHA1_CTX* mp = (SHA1_CTX*) obj->internalRep.otherValuePtr; -- Tcl_Free ((char*)mp); -+ Tcl_Free(obj->internalRep.otherValuePtr); - } - ---- modules/pt/pt_cparam_config_critcl.tcl 2015-04-30 04:21:20 UTC -+++ modules/pt/pt_cparam_config_critcl.tcl 2015-05-27 21:42:23 UTC -@@ -115,4 +115,6 @@ proc ::pt::cparam::configuration::critcl - /* -*- c -*- */ + static int + UniCharIsDecDigit (int character) + { +- return (character >= 0) && (character < 0x80) && isdigit(character); ++ return (character >= '0') && (character <= '9'); + } -+ #include -+ #include - #include - #define SCOPE static ---- modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic 2015-04-30 04:21:20 UTC -+++ modules/pt/tests/data/ok/peg_cparam-critcl/0_basic_arithmetic 2015-05-27 22:50:17 UTC -@@ -46,4 +46,6 @@ + /* +--- modules/pt/rde_critcl/param.h.orig 2016-02-04 05:14:14 UTC ++++ modules/pt/rde_critcl/param.h +@@ -9,6 +9,7 @@ + #include "tcl.h" + #include /* Scoping */ + #include /* Stack handling */ ++#include /* intptr_t */ + + /* + * 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 { + critcl::ccode { /* -*- c -*- */ + #include + #include #include #define SCOPE static -@@ -897,5 +899,5 @@ + +@@ -896,7 +898,7 @@ namespace eval ::PARSER { + 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 -@@ -987,5 +989,5 @@ + error_state_free (void* esx) +@@ -986,7 +988,7 @@ namespace eval ::PARSER { + 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; } -@@ -1012,5 +1014,5 @@ + scs = Tcl_GetHashValue (hPtr); +@@ -1011,7 +1013,7 @@ namespace eval ::PARSER { + TRACE (("RDE_PARAM %p",p)); TRACE (("INT %d",s)); - hPtr = Tcl_CreateHashEntry (&p->NC, (char*) at, &isnew); + hPtr = Tcl_CreateHashEntry (&p->NC, (void*)(intptr_t)at, &isnew); if (isnew) { tablePtr = ALLOC (Tcl_HashTable); -@@ -1020,5 +1022,5 @@ + Tcl_InitHashTable (tablePtr, TCL_ONE_WORD_KEYS); +@@ -1019,7 +1021,7 @@ namespace eval ::PARSER { + } else { *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***