pkgsrc/x11/xview-lib/patches/patch-au
dmcmahill 51b94997c0 Fix on powerpc. Patches provided by Andrew Cagney <cagney@tpgi.com.au>
in PR pkg/12803 and integrated by me.  It also now compiles on alpha but
segfaults there so change the broken message accordingly.
2001-05-02 21:46:07 +00:00

34 lines
1.3 KiB
Text

$NetBSD: patch-au,v 1.1 2001/05/02 21:46:09 dmcmahill Exp $
--- ./lib/libxview/font/font_get.c.nbsd Sat Apr 28 21:26:26 2001
+++ ./lib/libxview/font/font_get.c Sat Apr 28 21:30:27 2001
@@ -43,7 +43,6 @@
XFontStruct *x_font_info = (XFontStruct *)font->x_font_info;
Xv_opaque v;
int attr_is_char_width = 0;
- Attr_avlist avlist = (Attr_avlist) args;
#ifdef OW_I18N
if (font->type == FONT_TYPE_TEXT) {
@@ -138,8 +137,8 @@
}
case FONT_STRING_DIMS:{
- char *string = (char *) avlist[0];
- Font_string_dims *size = (Font_string_dims *) avlist[1];
+ char *string = (char *)va_arg(args, Attr_attribute);
+ Font_string_dims *size = (Font_string_dims *)va_arg(args, Attr_attribute);
struct pr_size my_pf_size;
if (string) {
my_pf_size = xv_pf_textwidth(strlen(string), font_public, string);
@@ -264,8 +263,8 @@
#ifdef OW_I18N
case FONT_STRING_DIMS_WC:{
- wchar_t *ws = (wchar_t *) avlist[0];
- Font_string_dims *size = (Font_string_dims *) avlist[1];
+ wchar_t *ws = (wchar_t *) va_arg(args, Attr_attribute);
+ Font_string_dims *size = (Font_string_dims *) va_arg(args, Attr_attribute);
struct pr_size my_pf_size;
if (ws) {