View | Details | Raw Unified | Return to bug 94990
Collapse All | Expand All

(-)xview/files/lib+libxview+panel+p_list.c (+103 lines)
Line 0 Link Here
1
--- lib/libxview/panel/p_list.c.orig	Sat Mar 25 23:52:08 2006
2
+++ lib/libxview/panel/p_list.c	Sun Mar 26 00:10:19 2006
3
@@ -24,8 +24,9 @@
4
 #include <xview/screen.h>
5
 #include <xview/openmenu.h>
6
 #include <xview/win_notify.h>
7
-#ifdef SVR4 
8
+#if defined(BSD4_4) || defined(SVR4) 
9
 #include <stdlib.h> 
10
+#include <stdarg.h>
11
 #endif
12
 
13
 #define PANEL_LIST_PRIVATE(item)        \
14
@@ -1239,7 +1240,7 @@
15
 	return ((Xv_opaque) dp->choose_one);
16
 
17
       case PANEL_ITEM_NTH_WINDOW:
18
-	if (*(int *) valist == 0)
19
+	if (va_arg(valist, int) == 0)
20
 	    return (Xv_opaque) dp->list_sb;
21
 	else
22
 	    return (Xv_opaque) NULL;
23
@@ -1266,7 +1267,7 @@
24
 	return (Xv_opaque) dp->list_sb;
25
 
26
       case PANEL_LIST_SELECTED:
27
-	row = *(int *) valist;
28
+	row = va_arg(valist, int);
29
 	node = find_or_create_nth_row(dp, row, FALSE);
30
 	return (node ? (Xv_opaque) node->f.selected : (Xv_opaque) XV_ERROR);
31
 
32
@@ -1278,7 +1279,7 @@
33
 	return -1;	/* no rows selected */
34
 	
35
       case PANEL_LIST_NEXT_SELECTED:
36
-	row = *(int *) valist;
37
+	row = va_arg(valist, int);
38
 	node = find_or_create_nth_row(dp, row, FALSE);
39
 	if (!node)
40
 	    return -1;	/* specified row doesn't exist */
41
@@ -1289,7 +1290,7 @@
42
 	return -1;	/* no subsequent row selected */
43
 
44
       case PANEL_LIST_CLIENT_DATA:
45
-	row = *(int *) valist;
46
+	row = va_arg(valist, int);
47
 	node = find_or_create_nth_row(dp, row, FALSE);
48
 	return (node ? (Xv_opaque) node->client_data : (Xv_opaque) XV_ERROR);
49
 
50
@@ -1297,7 +1298,7 @@
51
 #ifdef OW_I18N
52
       case PANEL_LIST_STRING_WCS:
53
 #endif
54
-	row = *(int *) valist;
55
+	row = va_arg(valist, int);
56
 	node = find_or_create_nth_row(dp, row, FALSE);
57
 #ifdef OW_I18N
58
 	if (node != NULL)
59
@@ -1312,7 +1313,7 @@
60
 #endif
61
 
62
       case PANEL_LIST_GLYPH:
63
-	row = *(int *) valist;
64
+	row = va_arg(valist, int);
65
 	node = find_or_create_nth_row(dp, row, FALSE);
66
 	return (node ? (Xv_opaque) node->glyph : (Xv_opaque) XV_ERROR);
67
 
68
@@ -1328,7 +1329,7 @@
69
 #endif
70
 
71
       case PANEL_LIST_FONT:
72
-	row = *(int *) valist;
73
+	row = va_arg(valist, int);
74
 	node = find_or_create_nth_row(dp, row, FALSE);
75
 	return (node ? (Xv_opaque) node->font : (Xv_opaque) XV_ERROR);
76
 
77
@@ -1352,7 +1353,7 @@
78
 
79
 
80
     case PANEL_LIST_INACTIVE:
81
-	row = *(int *) valist;
82
+	row = va_arg(valist, int);
83
 	node = find_or_create_nth_row(dp, row, FALSE);
84
 	return (node ? (Xv_opaque) node->f.row_inactive : (Xv_opaque) XV_ERROR);
85
 
86
@@ -1407,7 +1408,7 @@
87
     }
88
 
89
     case PANEL_LIST_EXTENSION_DATA:
90
-	row = *(int *) valist;
91
+	row = va_arg(valist, int);
92
 	node = find_or_create_nth_row(dp, row, FALSE);
93
 	return (node ? (Xv_opaque) node->exten_data : (Xv_opaque) XV_ERROR);
94
 
95
@@ -3789,7 +3790,7 @@
96
 
97
     /* weigh timeval's against multiclick-timeout resource */
98
     is_multiclick = panel_is_multiclick(ip->panel, 
99
-					dp->last_click_row->click_time,
100
+					&dp->last_click_row->click_time,
101
 					&event_time(event)
102
 					);
103
 
(-)xview/files/patch+lib+libxview+panel+p_mlinetxt.c (+19 lines)
Line 0 Link Here
1
--- lib/libxview/panel/p_mlinetxt.c.orig	Sat Mar 25 23:52:08 2006
2
+++ lib/libxview/panel/p_mlinetxt.c	Sun Mar 26 00:22:01 2006
3
@@ -14,6 +14,7 @@
4
  * Multi-line Text Field Panel Item
5
  */
6
 #include <string.h>
7
+#include <stdarg.h>
8
 #include <xview_private/panel_impl.h>
9
 #include <xview_private/draw_impl.h>
10
 #include <xview/defaults.h>
11
@@ -449,7 +450,7 @@
12
 	return (Xv_opaque) dp->rows_displayed;
13
 
14
       case PANEL_ITEM_NTH_WINDOW:
15
-	switch (*(int *) valist) {
16
+	switch (va_arg(valist, int)) {
17
 	  case 0:
18
 	    return dp->view;
19
 	  case 1:
(-)xview/files/patch+lib+libxview+panel+panel.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/panel/panel.c.orig	Sat Mar 25 23:52:08 2006
2
+++ lib/libxview/panel/panel.c	Sun Mar 26 00:19:28 2006
3
@@ -27,6 +27,7 @@
4
 Pkg_private int panel_destroy();
5
 
6
 static int      panel_layout();
7
+static int	panel_unregister_view(Panel_info *panel, Xv_Window view);
8
 
9
 Xv_private_data Defaults_pairs xv_kbd_cmds_value_pairs[4];
10
 
(-)xview/files/patch-clients+clock+clock.c (+131 lines)
Line 0 Link Here
1
--- clients/clock/clock.c.orig	Tue Jun 29 00:11:39 1993
2
+++ clients/clock/clock.c	Sun Mar 26 16:29:50 2006
3
@@ -22,6 +22,7 @@
4
 #include  <stdio.h>
5
 #include  <pwd.h>
6
 #include  <math.h>
7
+#include  <time.h>
8
 #include  <xview/xview.h>
9
 #include  <xview/panel.h>
10
 #include  <xview/canvas.h>
11
@@ -146,6 +147,10 @@
12
 static Notify_value analog_timer_expired();
13
 static Notify_value icon_timer_expired();
14
 static Notify_value dig_timer_expired();
15
+static int min (int a, int b);
16
+static int seconds_on();
17
+static int date_on();
18
+static int armwidth();
19
 
20
 typedef enum {digital, analog} Face;
21
 
22
@@ -488,7 +493,7 @@
23
 init_images (c, w, h)
24
 	Clock c; int w, h;
25
 {
26
-	int now;
27
+	time_t now;
28
 	struct tm *tm;
29
 
30
 	/* resize the remote images */
31
@@ -866,7 +871,7 @@
32
 paint_date (c) 
33
 	Clock c;
34
 {
35
-	int now;
36
+	time_t now;
37
 	struct tm *tm;
38
 	char buf[25];
39
 	Frame f;
40
@@ -910,7 +915,8 @@
41
 paint_second_hand (c) 
42
 	Clock c; 
43
 {
44
-	int x, y, diameter, radius, now, fromrim, angle, height, width;
45
+	int x, y, diameter, radius, fromrim, angle, height, width;
46
+	time_t	now;
47
 	struct tm *tm;
48
 	ClockDisplay d;
49
 	Pixwin *pw;
50
@@ -993,7 +999,8 @@
51
 	Pixwin * pw;
52
 	Rectlist *area;
53
 {
54
-	int w, h, x, y, prw, prh, now;
55
+	int w, h, x, y, prw, prh;
56
+	time_t now;
57
 	struct tm *tm;
58
 	Clock c;
59
 
60
@@ -1020,7 +1027,7 @@
61
 	Pixwin *pw;
62
 	Rectlist *area;
63
 {
64
-	int now;
65
+	time_t now;
66
 	Font_string_dims size;
67
 	struct tm *tm;
68
 	Clock c;
69
@@ -1048,7 +1055,8 @@
70
 icon_timer_expired (me, which)
71
 {
72
 	static int	mins, hours;
73
-	int		now, w, h;
74
+	time_t		now;
75
+	int		w, h;
76
 	struct		tm *tm;
77
 	Font_string_dims size;
78
 	Clock		c;
79
@@ -1077,11 +1085,12 @@
80
 
81
 static Notify_value
82
 analog_timer_expired (me, which)
83
-	Notify_value	me;
84
+	Frame	me;
85
 	int		which;
86
 {
87
 	static int	mins, hours;
88
-	int		now, x, y, w, h, prw, prh;
89
+	time_t		now;
90
+	int		x, y, w, h, prw, prh;
91
 	struct		tm *tm;
92
 	Clock		c;
93
 
94
@@ -1154,7 +1163,8 @@
95
 	Pixwin *	pw;
96
 	Rectlist	*area;
97
 {
98
-	int		i, now, y_coord, fontHeight, fontWidth;
99
+	int		i, y_coord, fontHeight, fontWidth;
100
+	time_t		now;
101
 	struct tm	*tm;
102
 	Clock		c;
103
 	ClockDisplay		d;
104
@@ -1211,7 +1221,7 @@
105
 	int		which, invalidate;
106
 {
107
 	static int	mins, hours;
108
-	int		now;
109
+	time_t		now;
110
 	struct		tm *tm;
111
 	Clock		c;
112
 
113
@@ -1273,7 +1283,8 @@
114
 	Panel_item item;
115
 	Event *event;
116
 {
117
-	int w, h, now;
118
+	int w, h; 
119
+	time_t now;
120
 	struct tm *tm;
121
 	Clock c		= (Clock) xv_get (item, XV_KEY_DATA, key, 0);
122
 	ClockDisplay d	= c-> display;
123
@@ -1662,7 +1673,7 @@
124
 init_clck (argc, argv)
125
 	int  argc; char **argv;
126
 {
127
-	int now;
128
+	time_t now;
129
 	struct tm *tm;
130
 	Menu_item       tmp_item;
131
 	char    **argscanner = argv;
(-)xview/files/patch-clients+olwm+screen.c (-9 lines)
Lines 21-35 Link Here
21
 		    		return True;
21
 		    		return True;
22
 				/*NOTREACHED*/
22
 				/*NOTREACHED*/
23
 		    		break;
23
 		    		break;
24
@@ -460,7 +467,7 @@
25
  * 	Construct bitmap search path as follows:
26
  *		$OPENWINHOME/etc/workspace/patterns
27
  *		$OPENWINHOME/include/X11/include/bitmaps
28
- *		/usr/X11/include/X11/include/bitmaps
29
+ *		/usr/X11R6/include/X11/include/bitmaps
30
  *
31
  * REMIND: this should be cleaned up so that it doesn't use a fixed-size 
32
  * array.
33
@@ -483,7 +490,7 @@
24
@@ -483,7 +490,7 @@
34
 	(void)sprintf(bmPath, "%s/include/X11/bitmaps",owHome);
25
 	(void)sprintf(bmPath, "%s/include/X11/bitmaps",owHome);
35
 	bitmapSearchPath[i++] = MemNewString(bmPath);
26
 	bitmapSearchPath[i++] = MemNewString(bmPath);
(-)xview/files/patch-clients+olwm+st.c (+11 lines)
Line 0 Link Here
1
--- clients/olwm/st.c.orig	Sat Mar 25 22:22:56 2006
2
+++ clients/olwm/st.c	Sat Mar 25 22:23:59 2006
3
@@ -34,6 +34,8 @@
4
 	(table->hash == ST_NUMHASH) ? ((int) (key) % table->num_bins) :\
5
 	(*table->hash)((key), table->num_bins))
6
 
7
+static rehash(st_table *table);
8
+
9
 st_table *st_init_table_with_params(compare, hash, size, density, grow_factor,
10
 				    reorder_flag)
11
 int (*compare)();
(-)xview/files/patch-clients+olwm+winicon.c (-5 / +5 lines)
Lines 1-12 Link Here
1
--- ./clients/olwm/winicon.c.orig	Tue Jun 29 07:12:04 1993
1
--- clients/olwm/winicon.c.orig	Sat Mar 25 21:22:48 2006
2
+++ ./clients/olwm/winicon.c	Sat Apr  1 18:26:06 2000
2
+++ clients/olwm/winicon.c	Sat Mar 25 22:25:54 2006
3
@@ -32,6 +32,10 @@
3
@@ -32,6 +32,10 @@
4
 extern 	Bool	PropGetWMName();
4
 extern 	Bool	PropGetWMName();
5
 extern 	Bool	PropGetWMIconName();
5
 extern 	Bool	PropGetWMIconName();
6
 
6
 
7
+static int heightTopIcon();
7
+static int heightTopIcon(WinIconFrame *win);
8
+static int heightBottomIcon();
8
+static int heightBottomIcon(WinIconFrame *win);
9
+static int widthBothIcon();
9
+static int widthBothIcon(WinIconFrame *win);
10
+
10
+
11
 /***************************************************************************
11
 /***************************************************************************
12
 * private data
12
 * private data
(-)xview/files/patch-clients+olwmslave+helprecv.c (+11 lines)
Line 0 Link Here
1
--- clients/olwmslave/helprecv.c.orig	Sat Mar 25 22:29:53 2006
2
+++ clients/olwmslave/helprecv.c	Sat Mar 25 22:30:46 2006
3
@@ -15,7 +15,7 @@
4
 #include "helpcmd.h"
5
 
6
 extern	int	ShowHelpWindow();
7
-	void	ReceiveHelpCmd();
8
+static	void	ReceiveHelpCmd();
9
 
10
 /* ----------------------------------------------------------------------
11
  *	RegisterHelpWindow
(-)xview/files/patch-clients+olwmslave+helpwin.c (-6 / +22 lines)
Lines 1-9 Link Here
1
--- clients/olwmslave/helpwin.c.orig	Fri Oct 17 18:23:54 2003
1
--- clients/olwmslave/helpwin.c.orig	Sat Mar 25 21:22:48 2006
2
+++ clients/olwmslave/helpwin.c	Fri Oct 17 19:01:59 2003
2
+++ clients/olwmslave/helpwin.c	Sat Mar 25 22:33:07 2006
3
@@ -136,6 +136,7 @@
3
@@ -128,14 +128,15 @@
4
 Bool		ImageHelpWindow();
4
  *	Local Forward Functions
5
 void		MoreHelp();
5
  * ---------------------------------------------------------------------*/
6
 void		ErrorNotice();
6
 int		ShowHelpWindow();
7
-void		InitHelpWindow();
8
-Bool		CreateHelpWindow();
9
-Notify_value	DestroyHelpWindow();
10
-void		ResetHelpWindow();
11
-Bool		TextHelpWindow();
12
-Bool		ImageHelpWindow();
13
-void		MoreHelp();
14
-void		ErrorNotice();
15
+static void		InitHelpWindow();
16
+static Bool		CreateHelpWindow();
17
+static Notify_value	DestroyHelpWindow();
18
+static void		ResetHelpWindow();
19
+static Bool		TextHelpWindow();
20
+static Bool		ImageHelpWindow();
21
+static void		MoreHelp();
22
+static void		ErrorNotice();
7
+static int	ConstrainMousePos();
23
+static int	ConstrainMousePos();
8
 
24
 
9
 /* ----------------------------------------------------------------------
25
 /* ----------------------------------------------------------------------
(-)xview/files/patch-clients+olwmslave+olwmslave.c (+15 lines)
Line 0 Link Here
1
--- clients/olwmslave/olwmslave.c.orig	Sat Mar 25 22:35:19 2006
2
+++ clients/olwmslave/olwmslave.c	Sat Mar 25 22:36:52 2006
3
@@ -44,9 +44,9 @@
4
 /* ----------------------------------------------------------------------
5
  *	Forward Definitions
6
  * ----------------------------------------------------------------------*/
7
-void		InitScreenInfo();
8
-void		ParseScreenArgs();
9
-Notify_value	InputReader();
10
+static void		InitScreenInfo();
11
+static void		ParseScreenArgs();
12
+static Notify_value	InputReader();
13
 
14
 /* ----------------------------------------------------------------------
15
  * 	main
(-)xview/files/patch-clients+olwmslave+propsrecv.c (+11 lines)
Line 0 Link Here
1
--- clients/olwmslave/propsrecv.c.orig	Sat Mar 25 22:42:20 2006
2
+++ clients/olwmslave/propsrecv.c	Sat Mar 25 22:43:01 2006
3
@@ -15,7 +15,7 @@
4
 #include "propscmd.h"
5
 
6
 extern	int	ShowWindowProps();
7
-	void	ReceivePropsCmd();
8
+static	void	ReceivePropsCmd();
9
 
10
 /* ----------------------------------------------------------------------
11
  *	RegisterPropsWindow
(-)xview/files/patch-clients+olwmslave+propswin.c (+15 lines)
Line 0 Link Here
1
--- clients/olwmslave/propswin.c.orig	Sat Mar 25 22:43:32 2006
2
+++ clients/olwmslave/propswin.c	Sat Mar 25 22:44:16 2006
3
@@ -38,9 +38,9 @@
4
  *      Local Forward Declarations
5
  * ----------------------------------------------------------------------*/
6
 int		ShowWindowProps();
7
-void		InitWindowProps();
8
-Bool		CreateWindowProps();
9
-Notify_value	DestroyWindowProps();
10
+static void		InitWindowProps();
11
+static Bool		CreateWindowProps();
12
+static Notify_value	DestroyWindowProps();
13
 void		ApplyProps();
14
 void		ResetProps();
15
 
(-)xview/files/patch-lib+libxview+color+cms_pblc.c (-3 / +70 lines)
Lines 1-6 Link Here
1
--- lib/libxview/color/cms_pblc.c.orig	Mon Sep 29 00:02:28 2003
1
--- lib/libxview/color/cms_pblc.c.orig	Tue Jun 29 00:15:53 1993
2
+++ lib/libxview/color/cms_pblc.c	Mon Sep 29 00:02:28 2003
2
+++ lib/libxview/color/cms_pblc.c	Sat Mar 25 23:35:01 2006
3
@@ -316,9 +316,10 @@
3
@@ -4,6 +4,7 @@
4
 #endif
5
 #endif
6
 
7
+#include <stdarg.h>
8
 #include <xview/cms.h>
9
 #include <xview/notify.h>
10
 #ifdef OW_I18N
11
@@ -316,14 +317,15 @@
4
 {
12
 {
5
     Cms_info		*cms = CMS_PRIVATE(cms_public);
13
     Cms_info		*cms = CMS_PRIVATE(cms_public);
6
     Xv_opaque		value;
14
     Xv_opaque		value;
Lines 12-14 Link Here
12
     switch (attr) {
20
     switch (attr) {
13
       case CMS_PIXEL: {
21
       case CMS_PIXEL: {
14
 	  unsigned long    index;
22
 	  unsigned long    index;
23
 	  
24
-	  index = (unsigned long)avlist[0];
25
+	  index = va_arg(args, unsigned long);
26
 	  if (index >= cms->size) {
27
 	      index = cms->size - 1;
28
 	  } else if (index < 0) {
29
@@ -398,29 +400,37 @@
30
 	break;
31
 	
32
       case CMS_COLORS:  
33
-	if (cms_get_colors(cms, (unsigned long)0, cms->size, 
34
-			   (Xv_singlecolor *)avlist[0], (XColor *)NULL,
35
-			   (unsigned char *)NULL, (unsigned char *)NULL,
36
-			   (unsigned char *)NULL) == XV_OK) {
37
-	    value = (Xv_opaque)avlist[0];
38
-	} else {
39
-	    value = NULL;
40
+	{
41
+	    Xv_singlecolor *v = va_arg(args, Xv_singlecolor *);
42
+	
43
+	    if (cms_get_colors(cms, (unsigned long)0, cms->size, 
44
+			       v, (XColor *)NULL,
45
+			       (unsigned char *)NULL, (unsigned char *)NULL,
46
+			       (unsigned char *)NULL) == XV_OK) {
47
+		value = (Xv_opaque)v;
48
+	    } else {
49
+		value = NULL;
50
+	    }
51
 	}
52
 	break;
53
 	
54
       case CMS_X_COLORS:  
55
-	if (cms_get_colors(cms, (unsigned long)0, cms->size, 
56
-			   (Xv_singlecolor *)NULL, (XColor *)avlist[0],
57
-			   (unsigned char *)NULL, (unsigned char *)NULL,
58
-			   (unsigned char *)NULL) == XV_OK) {
59
-	    value = (Xv_opaque)avlist[0];
60
-	} else {
61
-	    value = NULL;
62
+	{
63
+	    XColor *v = va_arg(args, XColor *);
64
+	    
65
+	    if (cms_get_colors(cms, (unsigned long)0, cms->size, 
66
+			       (Xv_singlecolor *)NULL, v,
67
+			       (unsigned char *)NULL, (unsigned char *)NULL,
68
+			       (unsigned char *)NULL) == XV_OK) {
69
+		value = (Xv_opaque)v;
70
+	    } else {
71
+		value = NULL;
72
+	    }
73
 	}
74
 	break;
75
 	
76
       case CMS_CMS_DATA: {
77
-	  Xv_cmsdata	    *cms_data = (Xv_cmsdata *)avlist[0];
78
+	  Xv_cmsdata	    *cms_data = va_arg(args, Xv_cmsdata *);
79
 	  
80
 	  cms_data->type = cms->type;
81
 	  cms_data->size = cms->size;
(-)xview/files/patch-lib+libxview+font+font_get.c (-3 / +33 lines)
Lines 1-6 Link Here
1
--- lib/libxview/font/font_get.c.orig	Tue Jun 29 14:15:00 1993
1
--- lib/libxview/font/font_get.c.orig	Sat Mar 25 21:22:49 2006
2
+++ lib/libxview/font/font_get.c	Sat Jan  9 23:35:51 1999
2
+++ lib/libxview/font/font_get.c	Sat Mar 25 23:10:35 2006
3
@@ -43,7 +43,9 @@
3
@@ -11,6 +11,7 @@
4
  */
5
 
6
 #include <stdio.h>
7
+#include <stdarg.h>
8
 #include <X11/Xlib.h>
9
 #include <xview/attr.h>
10
 #include <xview_private/font_impl.h>
11
@@ -43,7 +44,9 @@
4
     XFontStruct		*x_font_info = (XFontStruct *)font->x_font_info;
12
     XFontStruct		*x_font_info = (XFontStruct *)font->x_font_info;
5
     Xv_opaque       v;
13
     Xv_opaque       v;
6
     int             attr_is_char_width = 0;
14
     int             attr_is_char_width = 0;
Lines 11-13 Link Here
11
 
19
 
12
 #ifdef OW_I18N
20
 #ifdef OW_I18N
13
     if (font->type == FONT_TYPE_TEXT)  {
21
     if (font->type == FONT_TYPE_TEXT)  {
22
@@ -138,8 +141,8 @@
23
 	}
24
 
25
       case FONT_STRING_DIMS:{
26
-	    char           *string = (char *) avlist[0];
27
-	    Font_string_dims *size = (Font_string_dims *) avlist[1];
28
+	    char           *string = (char *) va_arg(args, char *);
29
+	    Font_string_dims *size = (Font_string_dims *) va_arg(args, Font_string_dims *);
30
 	    struct pr_size  my_pf_size;
31
 	    if (string) {
32
 		my_pf_size = xv_pf_textwidth(strlen(string), font_public, string);
33
@@ -264,8 +267,8 @@
34
 
35
 #ifdef OW_I18N
36
       case FONT_STRING_DIMS_WC:{
37
-            wchar_t             *ws = (wchar_t *) avlist[0];
38
-            Font_string_dims    *size = (Font_string_dims *) avlist[1];
39
+            wchar_t             *ws = (wchar_t *) va_arg(args, wchar_t *);
40
+            Font_string_dims    *size = (Font_string_dims *) va_arg(args, Font_string_dims *);
41
             struct pr_size      my_pf_size;
42
 
43
             if (ws) {
(-)xview/files/patch-lib+libxview+frame+fm_get.c (-4 / +15 lines)
Lines 1-10 Link Here
1
--- ./lib/libxview/frame/fm_get.c.orig	Tue Jun 29 07:16:10 1993
1
--- lib/libxview/frame/fm_get.c.orig	Tue Jun 29 00:16:10 1993
2
+++ ./lib/libxview/frame/fm_get.c	Sat Apr  1 18:25:24 2000
2
+++ lib/libxview/frame/fm_get.c	Sat Mar 25 23:50:29 2006
3
@@ -10,6 +10,7 @@ static char     sccsid[] = "@(#)fm_get.c
3
@@ -10,6 +10,7 @@
4
  *	file for terms of the license.
4
  *	file for terms of the license.
5
  */
5
  */
6
 
6
 
7
+#include <ctype.h>
7
+#include <stdarg.h>
8
 #include <xview_private/fm_impl.h>
8
 #include <xview_private/fm_impl.h>
9
 #include <xview_private/draw_impl.h>
9
 #include <xview_private/draw_impl.h>
10
 #include <xview/server.h>
10
 #include <xview/server.h>
11
@@ -369,8 +370,8 @@
12
 	return((Xv_opaque)status_get(frame, compose_led));
13
 
14
       case FRAME_MIN_SIZE: {
15
-	 int *width = (int *)va_arg(valist, int),
16
-	     *height = (int *)va_arg(valist, int),
17
+	 int *width = (int *)va_arg(valist, int *),
18
+	     *height = (int *)va_arg(valist, int *),
19
 	      footer_height = 0;
20
 
21
          if (status_get(frame, show_footer) && frame->footer &&
(-)xview/files/patch-lib+libxview+frame+fm_input.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/frame/fm_input.c.orig	Sat Mar 25 23:39:23 2006
2
+++ lib/libxview/frame/fm_input.c	Sat Mar 25 23:42:06 2006
3
@@ -359,6 +359,7 @@
4
  */
5
 Xv_private	void
6
 frame_set_accept_default_focus(frame_public, flag)
7
+	Frame frame_public;
8
 {
9
     Frame_class_info *frame = FRAME_CLASS_PRIVATE(frame_public);
10
 
(-)xview/files/patch-lib+libxview+io_stream+input.c (+11 lines)
Line 0 Link Here
1
--- lib/libxview/io_stream/input.c.orig	Sat Mar 25 23:13:46 2006
2
+++ lib/libxview/io_stream/input.c	Sat Mar 25 23:14:17 2006
3
@@ -22,7 +22,7 @@
4
 		XV_MSG("input stream not of type input"), 0); \
5
 	ops = in->ops.input_ops
6
 
7
-char	*stream_getstring();
8
+static char	*stream_getstring();
9
 
10
 /* GENERIC INPUT FUNCTIONS */
11
 
(-)xview/files/patch-lib+libxview+misc+gettext.c (-11 / +18 lines)
Lines 1-16 Link Here
1
--- lib/libxview/misc/gettext.c.orig	Sat Aug  6 21:47:27 2005
1
--- lib/libxview/misc/gettext.c.orig	1993-06-29 05:16:30.000000000 +0000
2
+++ lib/libxview/misc/gettext.c	Sat Aug  6 21:51:07 2005
2
+++ lib/libxview/misc/gettext.c
3
@@ -10,10 +10,12 @@
3
@@ -8,12 +8,14 @@ static char     sccsid[] = "@(#)gettext.
4
 #include <xview_private/gettext.h>
4
 #endif
5
 
5
 
6
 char *strdup();
6
 #include <xview_private/gettext.h>
7
-
8
-char *strdup();
7
-char * dgettext(), *bindtextdomain();
9
-char * dgettext(), *bindtextdomain();
8
+char * dgettext(char* domain_nane, char* msg_id), *bindtextdomain();
10
-char *_gettext();
9
 char *_gettext();
11
-char *fgets(), *getenv();
10
 char *fgets(), *getenv();
12
-caddr_t mmap();
11
+#ifndef OS_HAS_MMAP
13
+#include <string.h>
12
 caddr_t mmap();
14
+#include <stdlib.h>
13
+#endif
15
+#include <sys/types.h>
16
+#include <sys/mman.h>
17
+
18
+char *bindtextdomain(char *, unsigned char *);
19
+char *dgettext(char *, char*);
20
+static char *_gettext();
14
 
21
 
15
 static struct domain_binding *firstbind=0, *lastbind=0;
22
 static struct domain_binding *firstbind=0, *lastbind=0;
16
 
23
 
(-)xview/files/patch-lib+libxview+notice+notice_set.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/notice/notice_set.c.orig	Sun Mar 26 00:02:43 2006
2
+++ lib/libxview/notice/notice_set.c	Sun Mar 26 00:04:18 2006
3
@@ -22,7 +22,6 @@
4
 #include <xview/win_input.h>
5
 #include <xview/cms.h>
6
 
7
-extern char		*strchr();
8
 Pkg_private Xv_opaque	notice_generic_set();
9
 #ifdef  OW_I18N
10
 static CHAR     **notice_string_set();
(-)xview/files/patch-lib+libxview+notify+ndet_auto.c (-3 / +7 lines)
Lines 1-6 Link Here
1
--- lib/libxview/notify/ndet_auto.c.orig	Sun Oct 12 19:37:15 2003
1
--- lib/libxview/notify/ndet_auto.c.orig	Tue Jun 29 00:18:19 1993
2
+++ lib/libxview/notify/ndet_auto.c	Sun Oct 12 19:39:34 2003
2
+++ lib/libxview/notify/ndet_auto.c	Sun Mar 26 16:32:53 2006
3
@@ -21,7 +21,8 @@
3
@@ -21,11 +21,11 @@
4
 #include <xview_private/ndis.h>	/* For ndis_enqueue */
4
 #include <xview_private/ndis.h>	/* For ndis_enqueue */
5
 #include <errno.h>
5
 #include <errno.h>
6
 #include <signal.h>
6
 #include <signal.h>
Lines 10-12 Link Here
10
 #include <stdlib.h> 
10
 #include <stdlib.h> 
11
 #endif SVR4
11
 #endif SVR4
12
 
12
 
13
-extern          errno;
14
 
15
 pkg_private_data sigset_t ndet_sigs_auto;
16
 pkg_private_data Notify_client ndet_auto_nclient =
(-)xview/files/patch-lib+libxview+notify+ndet_loop.c (-4 / +16 lines)
Lines 1-6 Link Here
1
--- lib/libxview/notify/ndet_loop.c.orig	Tue Jun 29 07:18:19 1993
1
--- lib/libxview/notify/ndet_loop.c.orig	Tue Jun 29 07:18:19 1993
2
+++ lib/libxview/notify/ndet_loop.c	Sun Apr  2 03:32:17 2000
2
+++ lib/libxview/notify/ndet_loop.c	Thu Dec 20 10:09:16 2001
3
@@ -14,13 +14,14 @@ static char     sccsid[] = "@(#)ndet_loo
3
@@ -14,13 +14,18 @@ static char     sccsid[] = "@(#)ndet_loo
4
  * Ndet_loop.c - Notification loop.
4
  * Ndet_loop.c - Notification loop.
5
  */
5
  */
6
 
6
 
Lines 11-22 Link Here
11
 #include <xview_private/nint.h>
11
 #include <xview_private/nint.h>
12
 #include <xview_private/ndis.h>	/* For ndis_dispatch */
12
 #include <xview_private/ndis.h>	/* For ndis_dispatch */
13
 #ifndef SVR4
13
 #ifndef SVR4
14
-#include <syscall.h>
14
+#if !defined(__FreeBSD__)
15
 #include <syscall.h>
16
+#else
15
+#include <sys/syscall.h>
17
+#include <sys/syscall.h>
18
+#endif
16
 #else SVR4
19
 #else SVR4
17
 #include <sys/syscall.h>
20
 #include <sys/syscall.h>
18
 #include <sys/poll.h>
21
 #include <sys/poll.h>
19
@@ -224,7 +225,8 @@ notify_start()
22
@@ -35,8 +40,6 @@ static char     sccsid[] = "@(#)ndet_loo
23
 #include <stdio.h>		/* For temp debugging */
24
 #include <rpc/rpc.h>
25
 
26
-extern int      errno;
27
-
28
 pkg_private_data u_int ndet_flags = 0;
29
 pkg_private_data NTFY_CLIENT *ndet_clients = 0;
30
 pkg_private_data NTFY_CLIENT *ndet_client_latest = 0;
31
@@ -224,7 +227,8 @@ notify_start()
20
 	     * will return with an EINTR when a signal arrives while IN
32
 	     * will return with an EINTR when a signal arrives while IN
21
 	     * select, not ON THE WAY into select).
33
 	     * select, not ON THE WAY into select).
22
 	     */
34
 	     */
(-)xview/files/patch-lib+libxview+notify+ndet_wait.c (+11 lines)
Line 0 Link Here
1
--- lib/libxview/notify/ndet_wait.c.orig	2006-01-04 11:52:12.000000000 +0000
2
+++ lib/libxview/notify/ndet_wait.c
3
@@ -18,8 +18,6 @@ static char     sccsid[] = "@(#)ndet_wai
4
 #include <xview_private/ndet.h>
5
 #include <errno.h>
6
 
7
-extern          errno;
8
-
9
 pkg_private int
10
 ndet_check_pid(pid)
11
     int             pid;
(-)xview/files/patch-lib+libxview+notify+ndetselect.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/notify/ndetselect.c.orig	2006-01-04 11:53:02.000000000 +0000
2
+++ lib/libxview/notify/ndetselect.c
3
@@ -28,7 +28,6 @@ static int      ndet_select_nfds, ndet_s
4
 
5
 static Notify_client ndet_select_nclient = (Notify_client) & ndet_select_ibits;
6
 
7
-extern          errno;
8
 extern int      notify_exclude_fd;
9
 
10
 extern int
(-)xview/files/patch-lib+libxview+notify+ntfyclient.c (-36 / +29 lines)
Lines 1-58 Link Here
1
--- ./lib/libxview/notify/ntfyclient.c.orig	Tue Jun 29 07:18:11 1993
1
--- lib/libxview/notify/ntfyclient.c.orig	Tue Jun 29 00:18:11 1993
2
+++ ./lib/libxview/notify/ntfyclient.c	Sat Apr  1 18:25:26 2000
2
+++ lib/libxview/notify/ntfyclient.c	Sun Mar 26 19:54:38 2006
3
@@ -18,7 +18,9 @@ static char     sccsid[] = "@(#)ntfyclie
3
@@ -43,7 +43,20 @@
4
 #include <xview_private/ntfy.h>
4
    tmp = key2a >> 16;
5
 #include <xview_private/ndis.h>	/* For ndis_default_prioritizer */
5
    tmp1 = key2a << 21;
6
 #include <xview_private/ndet.h>	
6
    key2a = tmp1 | ((key2a << 5) & 0x001f0000) | tmp;
7
+#ifndef __FreeBSD__
7
-   return key1a - key2a;
8
 #include <search.h>
8
+/*   return key1a - key2a; */
9
+#endif
9
+   /* OUCH, trying to store the result of the subtraction of two unsigned
10
 #include <xview_private/portable.h>
10
+    * ints (which potentially can use the whole range of an unsigned int, due
11
+    * to the bit-shifting above) in a signed int is not a very clever idea.
12
+    * But we only have to return *any* positive value if key1a is greater than
13
+    * key2a, 0 if they're equal or *any* negatve value if key1a is less than
14
+    * key2a; the actual difference doesn't matter. So let's use a simple
15
+    * comparison.
16
+    * <mbuck@debian.org>
17
+    */
18
+   return  (key1a < key2a) ? -1 :
19
+          ((key1a > key2a) ?  1 :
20
+                              0);
21
+   
22
 }
11
 
23
 
12
 /* Variables used in paranoid enumerator (see ntfy_condition) */
24
 pkg_private NTFY_CLIENT *
13
@@ -60,6 +62,7 @@ ntfy_find_nclient(client_list, nclient, 
25
@@ -60,6 +73,7 @@
14
     if (*client_latest && (*client_latest)->nclient == nclient)
26
     if (*client_latest && (*client_latest)->nclient == nclient)
15
 	return (*client_latest);
27
 	return (*client_latest);
16
 
28
 
17
+#ifndef __FreeBSD__
29
+#ifdef _SEARCH_H_
18
     if(( client_list == ndet_clients ) && ndet_clients ) {
30
     if(( client_list == ndet_clients ) && ndet_clients ) {
19
        dummy_client.nclient = nclient;
31
        dummy_client.nclient = nclient;
20
        /* Find client */
32
        /* Find client */
21
@@ -73,7 +76,9 @@ ntfy_find_nclient(client_list, nclient, 
33
@@ -73,7 +87,9 @@
22
            return (client);
34
            return (client);
23
        }
35
        }
24
     }
36
     }
25
-
37
-
26
+#else
38
+#else
27
+    if(0);
39
+	if(0);
28
+#endif
40
+#endif
29
     else 
41
     else 
30
         /* Search entire list */
42
         /* Search entire list */
31
         for (client = client_list; client; client = next) {
43
         for (client = client_list; client; client = next) {
32
@@ -100,6 +105,7 @@ ntfy_new_nclient(client_list, nclient, c
44
@@ -163,8 +179,10 @@
33
     register NTFY_CLIENT *client;
34
     static NTFY_CLIENT *new_client;
35
 
36
+#ifndef __FreeBSD__
37
     if( client_list == &ndet_clients ) {
38
         if( new_client  == NTFY_CLIENT_NULL ) {
39
             if ((new_client = ntfy_alloc_client()) == NTFY_CLIENT_NULL)
40
@@ -119,7 +125,9 @@ ntfy_new_nclient(client_list, nclient, c
41
         else
42
             return client;
43
     }
44
-
45
+#else
46
+    if(0);
47
+#endif
48
     else if ((client = ntfy_find_nclient(*client_list, nclient,
49
 				    client_latest)) != NTFY_CLIENT_NULL)
50
         return client;
51
@@ -163,8 +171,10 @@ ntfy_remove_client(client_list, client, 
52
 	ntfy_remove_condition(client, condition, who);
45
 	ntfy_remove_condition(client, condition, who);
53
     }
46
     }
54
     /* Remove & free client from client_list */
47
     /* Remove & free client from client_list */
55
+#ifndef __FreeBSD__
48
+#ifdef _SEARCH_H_
56
     if( client_list == &ndet_clients )
49
     if( client_list == &ndet_clients )
57
         tdelete( client, ndet_root, ndet_compar );
50
         tdelete( client, ndet_root, ndet_compar );
58
+#endif
51
+#endif
(-)xview/files/patch-lib+libxview+notify+sys_select.c (-16 / +23 lines)
Lines 1-16 Link Here
1
*** lib/libxview/notify/sys_select.c~	Mon Jun 28 22:18:11 1993
1
--- lib/libxview/notify/sys_select.c.orig	Tue Jun 29 07:18:11 1993
2
--- lib/libxview/notify/sys_select.c	Tue Nov 22 08:20:27 1994
2
+++ lib/libxview/notify/sys_select.c	Thu Dec 20 10:09:16 2001
3
***************
3
@@ -15,7 +15,11 @@ static char     sccsid[] = "@(#)sys_sele
4
*** 15,21 ****
4
  */
5
--- 15,25 ----
5
 
6
   */
6
 #ifndef SVR4
7
  
7
+#if !defined(__FreeBSD__)
8
  #ifndef SVR4
8
 #include <syscall.h>
9
+ #ifndef __FreeBSD__
9
+#else
10
  #include <syscall.h>
10
+#include <sys/syscall.h>
11
+ #else
11
+#endif
12
+ #include <sys/syscall.h>
12
 #else SVR4
13
+ #endif
13
 #include <values.h>
14
  #else SVR4
14
 #include <sys/time.h>
15
  #include <values.h>
15
@@ -28,8 +32,6 @@ static char     sccsid[] = "@(#)sys_sele
16
  #include <sys/time.h>
16
 #include <errno.h>		/* For debugging */
17
 #include <stdio.h>		/* For debugging */
18
 
19
-extern          errno;
20
-
21
 #ifndef NULL
22
 #define NULL	0
23
 #endif 
(-)xview/files/patch-lib+libxview+rect+rect_util.c (-4 / +4 lines)
Lines 1-10 Link Here
1
--- ./lib/libxview/rect/rect_util.c.orig	Tue Jun 29 07:15:17 1993
1
--- lib/libxview/rect/rect_util.c.orig	Sat Mar 25 21:22:49 2006
2
+++ ./lib/libxview/rect/rect_util.c	Sat Apr  1 18:25:27 2000
2
+++ lib/libxview/rect/rect_util.c	Sat Mar 25 23:18:00 2006
3
@@ -16,6 +16,8 @@ static char     sccsid[] = "@(#)rect_uti
3
@@ -16,6 +16,8 @@
4
 
4
 
5
 #include <xview/rect.h>
5
 #include <xview/rect.h>
6
 
6
 
7
+static int rect_nearest_edge();
7
+static int rect_nearest_edge(int minimum, int delta, int val);
8
+
8
+
9
 /*
9
 /*
10
  * Compute the distance from rect to (x, y). If (x, y) is in rect, zero is
10
  * Compute the distance from rect to (x, y). If (x, y) is in rect, zero is
(-)xview/files/patch-lib+libxview+screen+scrn_get.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/screen/scrn_get.c.orig	Sat Mar 25 23:20:12 2006
2
+++ lib/libxview/screen/scrn_get.c	Sat Mar 25 23:20:44 2006
3
@@ -20,6 +20,7 @@
4
 #include <xview/base.h>
5
 #include <xview/font.h>
6
 #include <xview/server.h>
7
+#include <X11/Xlibint.h>
8
 
9
 /* Bitmap used for the inactive GC */
10
 static unsigned short screen_gray50_bitmap[16] = {   /* 50% gray pattern */
(-)xview/files/patch-lib+libxview+sel+seln.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/sel/seln.c.orig	2006-01-04 10:33:29.000000000 +0000
2
+++ lib/libxview/sel/seln.c
3
@@ -69,7 +69,6 @@ selection_get(sel_read, window)
4
     FILE           *file;
5
     int             c;
6
     int             n;
7
-    extern          errno;
8
 
9
     *sel = selnull;
10
     (void) win_lockdata(window);
(-)xview/files/patch-lib+libxview+sel+seln_impl.h (-2 / +13 lines)
Lines 1-5 Link Here
1
--- ./lib/libxview/sel/seln_impl.h.orig	Tue Jun 29 07:15:25 1993
1
--- lib/libxview/sel/seln_impl.h.orig	Tue Jun 29 07:15:25 1993
2
+++ ./lib/libxview/sel/seln_impl.h	Sat Apr  1 18:25:27 2000
2
+++ lib/libxview/sel/seln_impl.h	Thu Dec 20 10:09:17 2001
3
@@ -9,12 +9,17 @@
3
@@ -9,12 +9,17 @@
4
  *	file for terms of the license.
4
  *	file for terms of the license.
5
  */
5
  */
Lines 19-21 Link Here
19
 #endif FILE
19
 #endif FILE
20
 #include <sys/time.h>
20
 #include <sys/time.h>
21
 #include <sys/types.h>
21
 #include <sys/types.h>
22
@@ -27,10 +32,6 @@
23
 #include <xview/sel_attrs.h>
24
 #include <X11/Xlib.h>
25
 
26
-extern int          errno;
27
-
28
-
29
-
30
 /*
31
  * Procedure IDs for client-module procedures 
32
  */
(-)xview/files/patch-lib+libxview+selection+sel_util.c (-3 / +11 lines)
Lines 1-5 Link Here
1
--- ./lib/libxview/selection/sel_util.c.orig	Tue Jun 29 07:16:03 1993
1
--- lib/libxview/selection/sel_util.c.orig	Tue Jun 29 07:16:03 1993
2
+++ ./lib/libxview/selection/sel_util.c	Sat Apr  1 18:25:28 2000
2
+++ lib/libxview/selection/sel_util.c	Thu Dec 20 10:09:17 2001
3
@@ -23,6 +23,7 @@ static void tvdiff();
3
@@ -23,6 +23,7 @@ static void tvdiff();
4
 static void FreeMultiProp();
4
 static void FreeMultiProp();
5
 static int	SelMatchReply();
5
 static int	SelMatchReply();
Lines 8-14 Link Here
8
 
8
 
9
 Pkg_private struct timeval *
9
 Pkg_private struct timeval *
10
 xv_sel_cvt_xtime_to_timeval( XTime )
10
 xv_sel_cvt_xtime_to_timeval( XTime )
11
@@ -601,7 +602,7 @@ Sel_reply_info  *reply;
11
@@ -510,7 +511,6 @@ char           *arg;
12
     int             result;
13
     struct timeval  timeout;
14
     struct timeval starttime, curtime, diff1, diff2;
15
-    extern int errno;
16
     
17
     timeout.tv_sec = seconds;
18
     timeout.tv_usec = 0;
19
@@ -601,7 +601,7 @@ Sel_reply_info  *reply;
12
 	reqTbl->reply = reply;
20
 	reqTbl->reply = reply;
13
 	reqTbl->next = NULL;
21
 	reqTbl->next = NULL;
14
 	(void)XSaveContext( dpy, DefaultRootWindow(dpy),replyCtx,
22
 	(void)XSaveContext( dpy, DefaultRootWindow(dpy),replyCtx,
(-)xview/files/patch-lib+libxview+textsw+txt_e_menu.c (-22 / +66 lines)
Lines 1-22 Link Here
1
*** lib/libxview/textsw/txt_e_menu.c.org	Sun Jan 21 16:01:52 2001
1
--- lib/libxview/textsw/txt_e_menu.c.orig	Tue Jun 29 00:17:42 1993
2
--- lib/libxview/textsw/txt_e_menu.c	Sun Jan 21 16:03:27 2001
2
+++ lib/libxview/textsw/txt_e_menu.c	Sun Mar 26 17:27:17 2006
3
***************
3
@@ -19,7 +19,7 @@
4
*** 144,153 ****
4
  *  3. $(HOME)/.text_extras_menu{.<locale>} (home dir),
5
--- 144,160 ----
5
  *  4. locale sensitive system default
6
  
6
  *		("$OPENWINHOME/lib/locale/<locale>/XView/.text_extras_menu")
7
  #ifdef __FreeBSD__
7
- *  4. fall back to SunView1 ("/usr/lib/.text_extras_menu")
8
  	/* Gee, still?... We will try the old fashioned way */
8
+ *  4. fall back to SunView1 ("/usr/X11R6/lib/.text_extras_menu")
9
+ 	/* If it is never defined, EXTRASMENU is set to text_extras_menu
9
  *
10
+ 	   see top of this file ... */
10
  * Always try locale specific name first, if not there, try without
11
          (void) sprintf(tmp, "%s/lib/.%s",
11
  * locale name.  In the #4, we will fall back to the "C" locale.
12
  		       filename, EXTRASMENU);
12
@@ -45,13 +45,16 @@
13
  	if ((result = check_filename_locale(NULL, tmp, 1)) != NULL)
13
  * Declare errno. Some BSD systems do not have errno declared in
14
  		goto found;
14
  * <errno.h>
15
+ 	/* EXTRASMENU is absolute specified as normally done
15
  */
16
+ 	   during  compile time option -DEXTRASMENU="\"$(TEXT_EXTRAS_MENU)\" */
16
-extern int errno;
17
+ 	(void) sprintf(tmp, "%s", EXTRASMENU);
17
 
18
+ 	if ((result = check_filename_locale(NULL, tmp, 1)) != NULL)
18
 #define	ERROR	-1
19
+ 	    goto found;
19
 
20
  #endif
20
 #define	MAX_FILES	40
21
      }
21
+#ifndef MAXPATHLEN
22
  
22
 #define MAXPATHLEN	1024
23
+#endif
24
+#ifndef EXTRASMENU
25
 #define	EXTRASMENU	"text_extras_menu"
26
+#endif
27
 #define	MAXSTRLEN	256
28
 #define	MAXARGS		20
29
 
30
@@ -75,9 +78,12 @@
31
 static	int      free_argv();
32
 static	int      Nargs;
33
 static	char	*check_filename_locale();
34
+static		any_shell_meta(char *s);
35
 
36
 extern int      EXTRASMENU_FILENAME_KEY;
37
 
38
+static any_shell_meta();
39
+
40
 Pkg_private char *
41
 textsw_get_extras_filename(mi)
42
     Menu_item       mi;
43
@@ -138,15 +144,22 @@
44
 
45
 #ifdef notdef
46
 	/* Gee, still?... We will try the old fashioned way */
47
+	/* If it is never defined, EXTRASMENU is set to text_extras_menu
48
+	   see top of this file ... */
49
         (void) sprintf(tmp, "%s/lib/.%s",
50
 		       filename, EXTRASMENU);
51
 	if ((result = check_filename_locale(NULL, tmp, 1)) != NULL)
52
 		goto found;
53
+	/* EXTRASMENU is absolute specified as normally done
54
+	   during  compile time option -DEXTRASMENU="\"$(TEXT_EXTRAS_MENU)\" */
55
+	(void) sprintf(tmp, "%s", EXTRASMENU);
56
+	if ((result = check_filename_locale(NULL, tmp, 1)) != NULL)
57
+	    goto found;
58
 #endif
59
     }
60
 
61
     /* Giving up, try with ancient way (SunView1) */
62
-    (void) sprintf(tmp, "/usr/lib/.%s", EXTRASMENU);
63
+    (void) sprintf(tmp, "/usr/X11R6/lib/.%s", EXTRASMENU);
64
     result = xv_strsave(tmp);
65
 
66
 found:
(-)xview/files/patch-lib+libxview+textsw+txt_event.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/textsw/txt_event.c.orig	2006-01-04 11:15:27.000000000 +0000
2
+++ lib/libxview/textsw/txt_event.c
3
@@ -22,7 +22,6 @@ static char     sccsid[] = "@(#)txt_even
4
 #include <xview_private/win_keymap.h>
5
 
6
 
7
-extern int      errno;
8
 Pkg_private Notify_error win_post_event();
9
 Pkg_private void     ev_blink_caret();
10
 
(-)xview/files/patch-lib+libxview+textsw+txt_field.c (+20 lines)
Line 0 Link Here
1
--- lib/libxview/textsw/txt_field.c.orig	Sun Mar 26 01:09:21 2006
2
+++ lib/libxview/textsw/txt_field.c	Sun Mar 26 01:10:42 2006
3
@@ -121,8 +121,6 @@
4
 		    CHAR            marker2[3];
5
 		    int             marker2_len;
6
 		    unsigned        direction;
7
-		    static void     textsw_get_match_symbol();
8
-
9
 		    buf = buf + (buf_len - marker1_len);
10
 		    (void) textsw_get_match_symbol(marker1, marker1_len,
11
 					 marker2, &marker2_len, &direction);
12
@@ -152,8 +150,6 @@
13
 		    CHAR            marker2[3];
14
 		    int             marker2_len;
15
 		    unsigned        direction;
16
-		    static void     textsw_get_match_symbol();
17
-
18
 		    (void) textsw_get_match_symbol(marker1, marker1_len,
19
 					 marker2, &marker2_len, &direction);
20
 		    if (STRNCMP(buf, marker2, marker2_len) == 0) {
(-)xview/files/patch-lib+libxview+textsw+txt_file.c (-9 / +10 lines)
Lines 1-6 Link Here
1
--- lib/libxview/textsw/txt_file.c.orig	Tue Jun 29 00:17:48 1993
1
--- lib/libxview/textsw/txt_file.c.orig	Tue Jun 29 00:17:48 1993
2
+++ lib/libxview/textsw/txt_file.c	Sun Oct  5 17:00:24 2003
2
+++ lib/libxview/textsw/txt_file.c	Sun Mar 26 17:23:07 2006
3
@@ -18,10 +18,14 @@
3
@@ -18,10 +18,15 @@
4
 #include <xview_private/txt_impl.h>
4
 #include <xview_private/txt_impl.h>
5
 #include <xview_private/ev_impl.h>
5
 #include <xview_private/ev_impl.h>
6
 #include <xview_private/txt_18impl.h>
6
 #include <xview_private/txt_18impl.h>
Lines 12-22 Link Here
12
 #include <unistd.h>
12
 #include <unistd.h>
13
+#ifdef BSD4_4
13
+#ifdef BSD4_4
14
+#include <sys/file.h>
14
+#include <sys/file.h>
15
+#include <errno.h>
15
+#endif
16
+#endif
16
 #else
17
 #else
17
 #include <sys/dir.h>
18
 #include <sys/dir.h>
18
 #include <sys/file.h>
19
 #include <sys/file.h>
19
@@ -33,7 +37,6 @@
20
@@ -33,7 +38,6 @@
20
  */
21
  */
21
 #undef MIN
22
 #undef MIN
22
 #undef MAX
23
 #undef MAX
Lines 24-30 Link Here
24
 #include <xview/notice.h>
25
 #include <xview/notice.h>
25
 #include <xview/frame.h>
26
 #include <xview/frame.h>
26
 #include <errno.h>
27
 #include <errno.h>
27
@@ -45,13 +48,16 @@
28
@@ -45,13 +49,16 @@
28
 
29
 
29
 extern CHAR    *STRCAT();
30
 extern CHAR    *STRCAT();
30
 extern CHAR    *STRNCAT();
31
 extern CHAR    *STRNCAT();
Lines 36-50 Link Here
36
 #endif /* SVR4 */
37
 #endif /* SVR4 */
37
-extern int      errno, sys_nerr;
38
-extern int      errno, sys_nerr;
38
-extern char    *sys_errlist[];
39
-extern char    *sys_errlist[];
40
+#if !(defined(BSD) && (BSD >= 199306))
39
+extern int	errno;
41
+extern int	errno;
40
+extern const int sys_nerr;
42
+extern const int sys_nerr;
41
+#if (defined(BSD) && (BSD >= 199306))
42
+extern const char *const sys_errlist[];
43
+extern const char *const sys_errlist[];
43
+#endif /* BSD */
44
+#endif /* BSD */
44
 
45
 
45
 Pkg_private int textsw_change_directory();
46
 Pkg_private int textsw_change_directory();
46
 Pkg_private void textsw_display(), textsw_display_view_margins();
47
 Pkg_private void textsw_display(), textsw_display_view_margins();
47
@@ -354,7 +360,7 @@
48
@@ -354,7 +361,7 @@
48
     }
49
     }
49
 
50
 
50
 #ifdef		OW_I18N
51
 #ifdef		OW_I18N
Lines 53-59 Link Here
53
     if (getcwd(pathname_mb, MAXPATHLEN) == 0)
54
     if (getcwd(pathname_mb, MAXPATHLEN) == 0)
54
 #else
55
 #else
55
     if (getwd(pathname_mb) == 0)
56
     if (getwd(pathname_mb) == 0)
56
@@ -364,7 +370,7 @@
57
@@ -364,7 +371,7 @@
57
 
58
 
58
 #else		/* OW_I18N */
59
 #else		/* OW_I18N */
59
 
60
 
Lines 62-68 Link Here
62
     if (getcwd(pathname, MAXPATHLEN) == 0)
63
     if (getcwd(pathname, MAXPATHLEN) == 0)
63
 #else
64
 #else
64
     if (getwd(pathname) == 0)
65
     if (getwd(pathname) == 0)
65
@@ -1538,7 +1544,7 @@
66
@@ -1538,7 +1545,7 @@
66
     int             cmd_is_undo_all_edit;	/* This is for doing an "Undo
67
     int             cmd_is_undo_all_edit;	/* This is for doing an "Undo
67
 						 * All edit" */
68
 						 * All edit" */
68
 {
69
 {
Lines 71-77 Link Here
71
     pkg_private Es_status textsw_checkpoint_internal();
72
     pkg_private Es_status textsw_checkpoint_internal();
72
 #else /* SVR4 */
73
 #else /* SVR4 */
73
     static Es_status textsw_checkpoint_internal();
74
     static Es_status textsw_checkpoint_internal();
74
@@ -2386,7 +2392,7 @@
75
@@ -2386,7 +2393,7 @@
75
     return (result);
76
     return (result);
76
 }
77
 }
77
 
78
 
(-)xview/files/patch-lib+libxview+textsw+txt_filter.c (-7 / +16 lines)
Lines 1-7 Link Here
1
--- lib/libxview/textsw/txt_filter.c.orig	Sun Oct  5 14:57:49 2003
1
--- lib/libxview/textsw/txt_filter.c.orig	Tue Jun 29 00:17:39 1993
2
+++ lib/libxview/textsw/txt_filter.c	Sun Oct  5 15:20:32 2003
2
+++ lib/libxview/textsw/txt_filter.c	Sun Mar 26 16:56:26 2006
3
@@ -17,7 +17,8 @@
3
@@ -17,7 +17,8 @@
4
 #include "types.h"
4
 #include <sys/types.h>
5
 #include <sys/file.h>
5
 #include <sys/file.h>
6
 #include <unistd.h>
6
 #include <unistd.h>
7
-#ifdef SVR4
7
-#ifdef SVR4
Lines 19-31 Link Here
19
 #include <unistd.h>
19
 #include <unistd.h>
20
 #else
20
 #else
21
 #include <vfork.h>
21
 #include <vfork.h>
22
@@ -54,6 +57,9 @@
22
@@ -55,6 +56,7 @@
23
 #define	REPLY_ERROR	-1
24
 #define	REPLY_OKAY	 0
23
 #define	REPLY_OKAY	 0
25
 #define	REPLY_SEND	 1
24
 #define	REPLY_SEND	 1
25
 
26
+
26
+
27
 /* performance: global cache of getdtablesize() */
28
 extern int      dtablesize_cache;
29
 
30
@@ -66,8 +68,8 @@
31
 (dtablesize_cache?dtablesize_cache:(dtablesize_cache=getdtablesize()))
32
 #endif /* SVR4 */
33
 
34
-
35
-extern int      errno;
27
+static int	talk_to_filter();
36
+static int	talk_to_filter();
28
+static int	start_filter();
37
+static int	start_filter();
29
 
38
 
30
 /* performance: global cache of getdtablesize() */
39
 Xv_public char    *xv_getlogindir();
31
 extern int      dtablesize_cache;
40
 Pkg_private Es_index textsw_do_input();
(-)xview/files/patch-lib+libxview+textsw+txt_getkey.c (+11 lines)
Line 0 Link Here
1
--- lib/libxview/textsw/txt_getkey.c.orig	2006-01-04 11:41:31.000000000 +0000
2
+++ lib/libxview/textsw/txt_getkey.c
3
@@ -21,8 +21,6 @@ static char     sccsid[] = "@(#)txt_getk
4
 #include <xview_private/ev_impl.h>	/* For declaration of ev_add_finder */
5
 #include <errno.h>
6
 
7
-extern int      errno;
8
-
9
 static void     textsw_do_get();
10
 Pkg_private Es_index textsw_find_mark_internal();
11
 Pkg_private Es_index textsw_insert_pieces();
(-)xview/files/patch-lib+libxview+textsw+txt_input.c (-3 / +53 lines)
Lines 1-6 Link Here
1
--- ./lib/libxview/textsw/txt_input.c.orig	Tue Jun 29 07:17:42 1993
1
--- lib/libxview/textsw/txt_input.c.orig	Tue Jun 29 00:17:42 1993
2
+++ ./lib/libxview/textsw/txt_input.c	Sat Apr  1 18:25:29 2000
2
+++ lib/libxview/textsw/txt_input.c	Sun Mar 26 17:07:11 2006
3
@@ -57,6 +57,8 @@ static	void	textsw_do_undo();
3
@@ -40,8 +40,6 @@
4
 #include <stdlib.h> 
5
 #endif /* SVR4 */
6
 
7
-extern int      errno;
8
-
9
 Pkg_private Xv_Cursor move_cursor, dup_cursor;	/* laf */
10
 Pkg_private void termsw_menu_set();
11
 Pkg_private Key_map_handle textsw_do_filter();
12
@@ -57,6 +55,8 @@
4
 Pkg_private     void textsw_implicit_commit_doit();
13
 Pkg_private     void textsw_implicit_commit_doit();
5
 #endif
14
 #endif
6
 
15
 
Lines 9-11 Link Here
9
 #define SPACE_CHAR 0x20
18
 #define SPACE_CHAR 0x20
10
 
19
 
11
 Pkg_private int
20
 Pkg_private int
21
@@ -192,6 +192,15 @@
22
 
23
 #endif
24
 
25
+static int      textsw_scroll_event();
26
+static int      textsw_function_key_event();
27
+static int      textsw_mouse_event();
28
+static int      textsw_edit_function_key_event();
29
+static int      textsw_caret_motion_event();
30
+static int      textsw_field_event();
31
+static int      textsw_file_operation();
32
+static int      textsw_erase_action();
33
+
34
 
35
 Pkg_private int
36
 textsw_process_event(view_public, ie, arg)
37
@@ -200,15 +209,6 @@
38
     Notify_arg      arg;
39
 {
40
     Pkg_private void     textsw_update_scrollbars();
41
-    static int      textsw_scroll_event();
42
-    static int      textsw_function_key_event();
43
-    static int      textsw_mouse_event();
44
-    static int      textsw_edit_function_key_event();
45
-    static int      textsw_caret_motion_event();
46
-    static int      textsw_field_event();
47
-    static int      textsw_file_operation();
48
-    static int      textsw_erase_action();
49
-
50
     int             caret_was_up;
51
     int             result = TEXTSW_PE_USED;
52
     register Textsw_view_handle view = VIEW_PRIVATE(view_public);
53
@@ -592,7 +592,7 @@
54
 #ifdef OW_I18N
55
 Pkg_private	int
56
 #else
57
-static int
58
+int
59
 #endif
60
 textsw_do_newline(view, action)
61
     register Textsw_view_handle view;
(-)xview/files/patch-lib+libxview+textsw+txt_menu.c (+20 lines)
Line 0 Link Here
1
--- lib/libxview/textsw/txt_menu.c.orig	Sun Mar 26 01:01:17 2006
2
+++ lib/libxview/textsw/txt_menu.c	Sun Mar 26 01:02:52 2006
3
@@ -129,6 +129,8 @@
4
 
5
 
6
 /* VARARGS0 */
7
+static int	textsw_edit_do_menu_action(), textsw_view_do_menu_action(),
8
+		textsw_find_do_menu_action();
9
 static void
10
 textsw_new_menu(folio)
11
     Textsw_folio    folio;
12
@@ -140,8 +142,6 @@
13
     Frame           frame = xv_get(textsw, WIN_FRAME);
14
     Menu_item       break_mode_item, undo_cmds_item, find_sel_cmds_item,
15
                     select_field_cmds_item;
16
-    static int      textsw_edit_do_menu_action(), textsw_view_do_menu_action(),
17
-                    textsw_find_do_menu_action();
18
     int             index;
19
     Pkg_private char *textsw_get_extras_filename();
20
     Pkg_private int textsw_build_extras_menu_items();
(-)xview/files/patch-lib+libxview+textsw+txt_once.c (-3 / +3 lines)
Lines 1-5 Link Here
1
--- lib/libxview/textsw/txt_once.c.orig	Sun Oct  5 12:27:25 2003
1
--- lib/libxview/textsw/txt_once.c.orig	Tue Jun 29 00:17:48 1993
2
+++ lib/libxview/textsw/txt_once.c	Sun Oct  5 13:37:04 2003
2
+++ lib/libxview/textsw/txt_once.c	Sun Mar 26 01:07:58 2006
3
@@ -44,7 +44,9 @@
3
@@ -44,7 +44,9 @@
4
 #ifdef OW_I18N
4
 #ifdef OW_I18N
5
 #include <xview_private/draw_impl.h>
5
 #include <xview_private/draw_impl.h>
Lines 23-29 Link Here
23
 	    
23
 	    
24
 	xv_destroy(view->drop_site);
24
 	xv_destroy(view->drop_site);
25
 	textsw_view_cleanup(view);
25
 	textsw_view_cleanup(view);
26
+	VIEW_PRIVATE(view_public) = NULL; /* WG Mar '95 */
26
+	((Xv_textsw_view*)view_public)->private_data = NULL; /* WG Mar '95 */
27
 	break;
27
 	break;
28
 
28
 
29
       default:			/* Conservative in face of new cases. */
29
       default:			/* Conservative in face of new cases. */
(-)xview/files/patch-lib+libxview+textsw+txt_putkey.c (-7 / +7 lines)
Lines 1-11 Link Here
1
--- ./lib/libxview/textsw/txt_putkey.c.orig	Tue Jun 29 07:17:41 1993
1
--- lib/libxview/textsw/txt_putkey.c.orig	Tue Jun 29 00:17:41 1993
2
+++ ./lib/libxview/textsw/txt_putkey.c	Sat Apr  1 18:25:29 2000
2
+++ lib/libxview/textsw/txt_putkey.c	Sun Mar 26 17:03:38 2006
3
@@ -21,6 +21,8 @@ static char     sccsid[] = "@(#)txt_putk
3
@@ -19,7 +19,7 @@
4
 #include <xview_private/ev_impl.h>
5
 #include <errno.h>
4
 
6
 
5
 extern int      errno;
7
-extern int      errno;
8
+static int	textsw_do_put(Textsw_view_handle view, int local_operands);
6
 
9
 
7
+static int	textsw_do_put();
8
+
9
 Pkg_private Ev_finger_handle ev_add_finger();
10
 Pkg_private Ev_finger_handle ev_add_finger();
10
 Pkg_private int      ev_get_selection();
11
 Pkg_private int      ev_get_selection();
11
 Pkg_private Es_handle textsw_esh_for_span();
(-)xview/files/patch-lib+libxview+textsw+txt_search.c (+11 lines)
Line 0 Link Here
1
--- lib/libxview/textsw/txt_search.c.orig	Sun Mar 26 01:12:40 2006
2
+++ lib/libxview/textsw/txt_search.c	Sun Mar 26 01:13:17 2006
3
@@ -79,7 +79,7 @@
4
     if (direction == EV_FIND_DEFAULT)
5
 	first = last_plus_one;
6
 
7
-    STRNCPY(buf, (CHAR *) panel_get(search_panel_items[(int) FIND_STRING_ITEM],
8
+    (STRNCPY) (buf, (CHAR *) panel_get(search_panel_items[(int) FIND_STRING_ITEM],
9
 #ifdef OW_I18N
10
 				PANEL_VALUE_WCS, NULL),
11
 #else
(-)xview/files/patch-lib+libxview+textsw+txt_selsvc.c (-5 / +5 lines)
Lines 1-11 Link Here
1
--- ./lib/libxview/textsw/txt_selsvc.c.orig	Sun Jun 26 03:05:23 1994
1
--- lib/libxview/textsw/txt_selsvc.c.orig	Sat Jun 25 20:05:23 1994
2
+++ ./lib/libxview/textsw/txt_selsvc.c	Sat Apr  1 18:25:29 2000
2
+++ lib/libxview/textsw/txt_selsvc.c	Sun Mar 26 17:01:09 2006
3
@@ -24,6 +24,8 @@ static char     sccsid[] = "@(#)txt_sels
3
@@ -24,7 +24,7 @@
4
 #include <stdlib.h>
4
 #include <stdlib.h>
5
 #endif /* SVR4 */
5
 #endif /* SVR4 */
6
 
6
 
7
-extern int      errno;
7
+static int textsw_should_ask_seln_svc();
8
+static int textsw_should_ask_seln_svc();
8
+
9
 extern int      errno;
10
 
9
 
11
 Pkg_private Es_status es_copy();
10
 Pkg_private Es_status es_copy();
11
 static Seln_result textsw_seln_yield();
(-)xview/files/patch-lib+libxview+ttysw+tty_newtxt.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/ttysw/tty_newtxt.c.orig	Sun Mar 26 00:27:19 2006
2
+++ lib/libxview/ttysw/tty_newtxt.c	Sun Mar 26 00:27:49 2006
3
@@ -34,6 +34,7 @@
4
  */
5
 
6
 
7
+#include <X11/Xlibint.h>
8
 #include <xview/window.h>
9
 #include <xview_private/pw_impl.h>
10
 #include <pixrect/pixrect.h>
(-)xview/files/patch-lib+libxview+win+win_cntral.c (+10 lines)
Line 0 Link Here
1
--- lib/libxview/win/win_cntral.c.orig	2006-01-04 10:38:51.000000000 +0000
2
+++ lib/libxview/win/win_cntral.c
3
@@ -25,7 +25,6 @@ static char     sccsid[] = "@(#)win_cntr
4
 
5
 static Notify_error win_send();
6
 
7
-extern int      errno;
8
 extern Event    xv_last_event;
9
 
10
 void            notify_perror();

Return to bug 94990