File:
[cvs.NetBSD.org] /
pkgsrc /
x11 /
blt /
patches /
patch-src_bltList.h
Revision
1.1:
download - view:
text,
annotated -
select for diffs
Mon Jun 6 04:27:14 2022 UTC (2 years, 6 months ago) by
dholland
Branches:
MAIN
CVS tags:
pkgsrc-2024Q3-base,
pkgsrc-2024Q3,
pkgsrc-2024Q2-base,
pkgsrc-2024Q2,
pkgsrc-2024Q1-base,
pkgsrc-2024Q1,
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
time.
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.h,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.h~ 2002-09-18 22:30:51.000000000 +0000
+++ src/bltList.h
@@ -57,12 +57,12 @@ struct Blt_ListStruct {
struct Blt_ListNodeStruct *headPtr; /* Pointer to first element in list */
struct Blt_ListNodeStruct *tailPtr; /* Pointer to last element in list */
int nNodes; /* Number of node currently in the list. */
- int type; /* Type of keys in list. */
+ size_t type; /* Type of keys in list. */
};
-EXTERN void Blt_ListInit _ANSI_ARGS_((Blt_List list, int type));
+EXTERN void Blt_ListInit _ANSI_ARGS_((Blt_List list, size_t type));
EXTERN void Blt_ListReset _ANSI_ARGS_((Blt_List list));
-EXTERN Blt_List Blt_ListCreate _ANSI_ARGS_((int type));
+EXTERN Blt_List Blt_ListCreate _ANSI_ARGS_((size_t type));
EXTERN void Blt_ListDestroy _ANSI_ARGS_((Blt_List list));
EXTERN Blt_ListNode Blt_ListCreateNode _ANSI_ARGS_((Blt_List list,
CONST char *key));
CVSweb <webmaster@jp.NetBSD.org>