[BACK]Return to patch-src_bltList.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / blt / patches

File: [cvs.NetBSD.org] / pkgsrc / x11 / blt / patches / patch-src_bltList.c (download)

Revision 1.1, Mon Jun 6 04:27:14 2022 UTC (20 months, 3 weeks ago) by dholland
Branch: MAIN
CVS Tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, HEAD

Patch up x11/blt some.

Most importantly, fix up what it passes to the TCL package handling
functions, since as it was the library won't initialize. I can't
remember when this changed in TCL but I've seen the same issue
before... years ago. This library has likely been inoperable all that

Patch up a whole bunch of build warnings, some significant.

However, it probably still doesn't work and in addition to a lot more
routine build issues it needs attention from someone who knows more
tcl than me.

Bump PKGREVISION (to 13). I'm not going to bump the handful of
dependent packages since I don't think I've done anything to change
the interface, plus they're all likely inoperable anyway given how
broken this thing looks.

Prerequisite for checking PR 32807 for currency, since it depends on
blt and blt won't load. But I rather imagine the problem seen at the
time was blt dumping core.

$NetBSD: patch-src_bltList.c,v 1.1 2022/06/06 04:27:14 dholland Exp $

Make the node type stuff consistent with bltHash to silence compiler warnings.

--- src/bltList.c~	2002-09-18 22:30:51.000000000 +0000
+++ src/bltList.c
@@ -114,7 +114,7 @@ FreeNode(nodePtr)
-    int type;
+    size_t type;
     struct Blt_ListStruct *listPtr;
@@ -250,7 +250,7 @@ Blt_ListDestroy(listPtr)
 Blt_ListInit(listPtr, type)
     struct Blt_ListStruct *listPtr;
-    int type;
+    size_t type;
     listPtr->nNodes = 0;
     listPtr->headPtr = listPtr->tailPtr = NULL;