summaryrefslogtreecommitdiff
path: root/x11-toolkits/xview-clients/files/patch-aa
blob: c20eda560eaa7441e83762d73c48bc76f9615f27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
diff -rc ../old/xview3.2p1-X11R6/clients/cmdtool/cmdtool.c cmdtool/cmdtool.c
*** ../old/xview3.2p1-X11R6/clients/cmdtool/cmdtool.c	Tue Jun 29 01:12:08 1993
--- cmdtool/cmdtool.c	Sun Nov 20 13:38:56 1994
***************
*** 123,129 ****
  	int     cmdline_count = 0;
  	char	cmdline2[50];
  	Server_image  cmd_pixmap, cmd_mask_pixmap;
- 
  	
  #ifdef GPROF
  	if (argc > 1 && strcmp(argv[argc-1], "-gprof") == 0) {
--- 123,128 ----
***************
*** 141,146 ****
--- 140,147 ----
  #endif	
  	
  	/* This is required to initialize correctly */	
+ 
+ 
  	xv_init(XV_INIT_ARGC_PTR_ARGV, &argc, argv, 
  		XV_USE_LOCALE, TRUE, 0);
  
***************
*** 286,291 ****
--- 287,293 ----
  		strcat( cmdline2, argv[0] );
  		argv[0]	= cmdline2;
  	}
+ 
  
  	/* If FRAME_LABEL wasn't set by cmdline argument, set it */
  	if ((tmp_label1 = (char *)xv_get(base_frame, FRAME_LABEL)) == NULL) {
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/cmdstream.c olwm/cmdstream.c
*** ../old/xview3.2p1-X11R6/clients/olwm/cmdstream.c	Tue Jun 29 01:11:43 1993
--- olwm/cmdstream.c	Sun Nov 20 13:38:56 1994
***************
*** 51,60 ****
   *      Local Forward Declarations
   * ---------------------------------------------------------------------*/
  
! Command		*MatchCommand();
! CmdAttr		*MatchAttr();
! int		EncodeAttrValue();
! int		DecodeAttrValue();
  
  /* ----------------------------------------------------------------------
   *      SetCmdStream
--- 51,60 ----
   *      Local Forward Declarations
   * ---------------------------------------------------------------------*/
  
! static Command		*MatchCommand();
! static CmdAttr		*MatchAttr();
! static int		EncodeAttrValue();
! static int		DecodeAttrValue();
  
  /* ----------------------------------------------------------------------
   *      SetCmdStream
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/gettext.h olwm/gettext.h
*** ../old/xview3.2p1-X11R6/clients/olwm/gettext.h	Tue Jun 29 01:11:46 1993
--- olwm/gettext.h	Sun Nov 20 13:38:57 1994
***************
*** 27,33 ****
  #include <stdio.h>
  #include <sys/types.h>
  #include <sys/param.h>
!  
  struct domain_binding {
      char    *domain_name;
      char    *binding;
--- 27,37 ----
  #include <stdio.h>
  #include <sys/types.h>
  #include <sys/param.h>
! 
! #ifndef LC_MESSAGES
! #define LC_MESSAGES 0
! #endif
! 
  struct domain_binding {
      char    *domain_name;
      char    *binding;
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/i18n.h olwm/i18n.h
*** ../old/xview3.2p1-X11R6/clients/olwm/i18n.h	Tue Jun 29 01:11:48 1993
--- olwm/i18n.h	Sun Nov 20 13:38:57 1994
***************
*** 35,40 ****
--- 35,44 ----
  
  #endif /* OW_I18N_L4 */
  
+ #ifndef LC_MESSAGES
+ #define LC_MESSAGES 0
+ #endif
+ 
  /*
   *	String/Text - To better handle non-i18n, Level3 and Level4
   *	we introduce two 'types'; string and text.
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/mem.c olwm/mem.c
*** ../old/xview3.2p1-X11R6/clients/olwm/mem.c	Tue Jun 29 01:11:45 1993
--- olwm/mem.c	Sun Nov 20 13:38:57 1994
***************
*** 14,21 ****
   *
   */
  
! 
  #include <malloc.h>
  #include <memory.h>
  #include <stdio.h>
  #include <sys/types.h>
--- 14,25 ----
   *
   */
  
! #include <sys/param.h>
! #if (defined(BSD) && (BSD >= 199103))
! #include <stdlib.h>
! #else
  #include <malloc.h>
+ #endif
  #include <memory.h>
  #include <stdio.h>
  #include <sys/types.h>
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/menu.c olwm/menu.c
*** ../old/xview3.2p1-X11R6/clients/olwm/menu.c	Tue Jun 29 01:11:50 1993
--- olwm/menu.c	Sun Nov 20 13:38:57 1994
***************
*** 52,57 ****
--- 52,59 ----
  static WinGeneric *prevColorFocusWindow = NULL;
  static MenuTrackMode menuTrackMode;
  
+ static Bool isEnabled();
+ 
  /*
   * Table of currently active menus.
   * REMIND: perhaps this should be dynamically allocated.
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/olwm.c olwm/olwm.c
*** ../old/xview3.2p1-X11R6/clients/olwm/olwm.c	Tue Jun 29 01:11:52 1993
--- olwm/olwm.c	Sun Nov 20 13:38:57 1994
***************
*** 23,28 ****
--- 23,32 ----
  #include <sys/stat.h>
  #include <sys/wait.h>
  
+ #ifndef MAXPID
+ #define MAXPID 30000
+ #endif
+ 
  #include <X11/Xos.h>
  #include <X11/Xlib.h>
  #include <X11/Xutil.h>
***************
*** 622,634 ****
  void
  ReapChildren()
  {
! #ifdef SYSV
          pid_t pid;
          int status;
  #else
  	int oldmask;
  	int pid;
  	union wait status;
  #endif
  
  	if (!deadChildren)
--- 626,644 ----
  void
  ReapChildren()
  {
! #if defined(SYSV)
          pid_t pid;
          int status;
  #else
+ #if (defined(BSD) && (BSD >= 199103))
+ 	pid_t pid;
+ 	int status;
+ 	int oldmask;
+ #else   
  	int oldmask;
  	int pid;
  	union wait status;
+ #endif
  #endif
  
  	if (!deadChildren)
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/screen.c olwm/screen.c
*** ../old/xview3.2p1-X11R6/clients/olwm/screen.c	Tue Jun 29 01:11:56 1993
--- olwm/screen.c	Sun Nov 20 13:38:58 1994
***************
*** 111,116 ****
--- 111,122 ----
  static XrmQuark stippledRubberBandsCQ;
  static XrmQuark stippledRubberBandsIQ;
  
+ static updateScreenWorkspaceColor();
+ static updateScreenWindowColor();
+ static updateScreenForegroundColor();
+ static updateScreenBackgroundColor();
+ static updateScreenBorderColor();
+ static updateScreenGlyphFont();
  
  /*-------------------------------------------------------------------------
   *	Local Functions
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/slave.c olwm/slave.c
*** ../old/xview3.2p1-X11R6/clients/olwm/slave.c	Tue Jun 29 01:11:57 1993
--- olwm/slave.c	Sun Nov 20 13:38:58 1994
***************
*** 22,27 ****
--- 22,29 ----
  #include <signal.h>
  #include <stdio.h>
  
+ #include <sys/param.h>
+ 
  #include "cmdstream.h"
  #include "error.h"
  
diff -rc ../old/xview3.2p1-X11R6/clients/olwm/winicon.c olwm/winicon.c
*** ../old/xview3.2p1-X11R6/clients/olwm/winicon.c	Tue Jun 29 01:12:04 1993
--- olwm/winicon.c	Sun Nov 20 13:38:58 1994
***************
*** 32,37 ****
--- 32,41 ----
  extern 	Bool	PropGetWMName();
  extern 	Bool	PropGetWMIconName();
  
+ static int heightTopIcon();
+ static int heightBottomIcon();
+ static int widthBothIcon();
+ 
  /***************************************************************************
  * private data
  ***************************************************************************/
diff -rc ../old/xview3.2p1-X11R6/clients/olwmslave/Imakefile olwmslave/Imakefile
*** ../old/xview3.2p1-X11R6/clients/olwmslave/Imakefile	Tue Jun 29 01:12:14 1993
--- olwmslave/Imakefile	Sun Nov 20 13:38:58 1994
***************
*** 38,55 ****
          mem.c \
          olwmslave.c \
          propsrecv.c \
!         propswin.c
  
  
  OBJS = 	\
          cmdstream.o \
          help_file.o \
!         helprecv.o \ 
          helpwin.o \
          mem.o \
          olwmslave.o \
          propsrecv.o \
!         propswin.o
  
  
  ALLFILES = \
--- 38,55 ----
          mem.c \
          olwmslave.c \
          propsrecv.c \
!         propswin.c ${GETTEXT.C}
  
  
  OBJS = 	\
          cmdstream.o \
          help_file.o \
!         helprecv.o \
          helpwin.o \
          mem.o \
          olwmslave.o \
          propsrecv.o \
!         propswin.o ${GETTEXT.O}
  
  
  ALLFILES = \
diff -rc ../old/xview3.2p1-X11R6/clients/olwmslave/cmdstream.c olwmslave/cmdstream.c
*** ../old/xview3.2p1-X11R6/clients/olwmslave/cmdstream.c	Tue Jun 29 01:12:10 1993
--- olwmslave/cmdstream.c	Sun Nov 20 13:38:58 1994
***************
*** 50,59 ****
   *      Local Forward Declarations
   * ---------------------------------------------------------------------*/
  
! Command		*MatchCommand();
! CmdAttr		*MatchAttr();
! int		EncodeAttrValue();
! int		DecodeAttrValue();
  
  /* ----------------------------------------------------------------------
   *      SetCmdStream
--- 50,59 ----
   *      Local Forward Declarations
   * ---------------------------------------------------------------------*/
  
! static Command		*MatchCommand();
! static CmdAttr		*MatchAttr();
! static int		EncodeAttrValue();
! static int		DecodeAttrValue();
  
  /* ----------------------------------------------------------------------
   *      SetCmdStream
diff -rc ../old/xview3.2p1-X11R6/clients/olwmslave/helpwin.c olwmslave/helpwin.c
*** ../old/xview3.2p1-X11R6/clients/olwmslave/helpwin.c	Tue Jun 29 01:12:11 1993
--- olwmslave/helpwin.c	Sun Nov 20 13:38:58 1994
***************
*** 136,141 ****
--- 136,142 ----
  Bool		ImageHelpWindow();
  void		MoreHelp();
  void		ErrorNotice();
+ static int	ConstrainMousePos();
  
  /* ----------------------------------------------------------------------
   *	ShowHelpWindow
diff -rc ../old/xview3.2p1-X11R6/clients/olwmslave/mem.c olwmslave/mem.c
*** ../old/xview3.2p1-X11R6/clients/olwmslave/mem.c	Tue Jun 29 01:12:12 1993
--- olwmslave/mem.c	Sun Nov 20 13:38:58 1994
***************
*** 16,22 ****
--- 16,27 ----
   *
   */
  
+ #include <sys/param.h>
+ #if (defined(BSD) && (BSD >= 199103))
+ #include <stdlib.h>
+ #else
  #include <malloc.h>
+ #endif
  #include <memory.h>
  #include <stdio.h>
  #include <sys/types.h>
*** olwm/defaults.c.orig	Tue Jun 29 07:11:43 1993
--- olwm/defaults.c	Mon Feb 27 00:59:03 1995
***************
*** 25,33 ****
  #include <X11/Xutil.h>
  #include <X11/Xatom.h>
  #include <X11/Xresource.h>
! #ifdef OW_I18N_L4
  #include <sys/param.h>
! #endif
  
  #include "i18n.h"
  #include "ollocale.h"
--- 25,33 ----
  #include <X11/Xutil.h>
  #include <X11/Xatom.h>
  #include <X11/Xresource.h>
! /* #ifdef OW_I18N_L4 */
  #include <sys/param.h>
! /* #endif */
  
  #include "i18n.h"
  #include "ollocale.h"
***************
*** 80,86 ****
--- 80,90 ----
  	if (homedir != NULL) {
  	    (void) strcpy(filename, homedir);
  	    (void) strcat(filename, "/.Xdefaults-");
+ #if (defined(BSD) && (BSD >= 199103))
+ 	    if (0 == gethostname(hostname, sizeof(hostname))) {
+ #else
  	    if (0 == gethostname(hostname, sizeof(hostname), &namelen)) {
+ #endif
  		(void) strcat(filename, hostname);
  		fileDB = XrmGetFileDatabase(filename);
  	    }