aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/olvwm/files/patch-aa
blob: 030920672cee295a0c30dc76e8193ae3bcde7598 (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
376
377
378
*** defaults.c.orig	Thu Jan 13 14:36:03 1994
--- defaults.c	Thu Oct 20 21:17:55 1994
***************
*** 90,96 ****
--- 90,100 ----
  #ifdef SVR4
  	    if (sysinfo(SI_HOSTNAME, hostname, sizeof(hostname)) != -1) {
  #else
+ #ifndef __FreeBSD__
  	    if (0 == gethostname(hostname, sizeof(hostname), &namelen)) {
+ #else
+ 	    if (0 == gethostname(hostname, sizeof(hostname))) {
+ #endif
  #endif
  		(void) strcat(filename, hostname);
  		fileDB = XrmGetFileDatabase(filename);
*** error.c.orig	Thu Jan 13 14:36:04 1994
--- error.c	Sat Oct 22 16:44:32 1994
***************
*** 13,19 ****
--- 13,23 ----
  
  #include <stdio.h>
  #include <stdlib.h>
+ #ifdef __FreeBSD__
+ #include <X11/Xlibint.h>
+ #else
  #include <X11/Xlib.h>
+ #endif
  #include <X11/Xproto.h>
  
  #include "i18n.h"
*** gettext.h.orig	Thu Jan 13 14:40:00 1994
--- gettext.h	Thu Oct 20 22:01:55 1994
***************
*** 14,19 ****
--- 14,23 ----
  #ifndef _OLWM_GETTEXT_H
  #define _OLWM_GETTEXT_H
  
+ #ifndef LC_MESSAGES
+ #define LC_MESSAGES 0
+ #endif
+ 
  #define DEFAULT_DOMAIN	"default"
  #define DEFAULT_BINDING "/usr/lib/locale\n"
  #define COOKIE 0xFF
*** gif.c.orig	Thu Jan 13 14:36:06 1994
--- gif.c	Thu Oct 20 23:58:42 1994
***************
*** 56,61 ****
--- 56,65 ----
  	int     disposal;
  } Gif89 = { -1, -1, -1, 0 };
  
+ static	ReadColorMap();
+ static	DoExtension();
+ static	GetDataBlock();
+ 
  extern XImage* ReadImage();
  
  XImage *ReadGIF(dpy, fd, pNcolors, pColors)
***************
*** 456,462 ****
  	return code;
  }
  
! static XImage*
  ReadImage(dpy, fd, len, height, cmap, interlace, ignore)
  Display *dpy;
  FILE    *fd;
--- 460,466 ----
  	return code;
  }
  
! extern XImage*
  ReadImage(dpy, fd, len, height, cmap, interlace, ignore)
  Display *dpy;
  FILE    *fd;
*** i18n.h.orig	Thu Jan 13 14:40:01 1994
--- i18n.h	Thu Oct 20 22:00:16 1994
***************
*** 14,19 ****
--- 14,23 ----
  #ifndef _OLWM_I18N_H
  #define _OLWM_I18N_H
  
+ #ifndef LC_MESSAGES
+ #define LC_MESSAGES 0
+ #endif
+ 
  #include <string.h>
  #include <ctype.h>

*** mem.c.orig	Thu Jan 13 14:36:08 1994
--- mem.c	Sat Oct 22 16:46:18 1994
***************
*** 18,24 ****
--- 18,28 ----
  
  
  #include <sys/types.h>
+ #ifndef __FreeBSD__
  #include <malloc.h>
+ #else
+ #include <stdlib.h>
+ #endif
  #include <memory.h>
  #include <stdio.h>
  
***************
*** 139,145 ****
  {
      void       *p;
  
!     if ((p = malloc(sz)) == NULL)
        ErrorGeneral(gettext("Memory allocation failure."));
  
  #ifdef MEMDEBUG
--- 143,149 ----
  {
      void       *p;
  
!     if ((p = (int *)malloc(sz)) == NULL)
        ErrorGeneral(gettext("Memory allocation failure."));
  
  #ifdef MEMDEBUG
***************
*** 164,170 ****
  {
      void       *p;
  
!     if ((p = malloc(sz)) == NULL)
  	ErrorGeneral(GetString("Memory allocation failure."));
  
      memset((char *) p, 0, (int) sz);
--- 168,174 ----
  {
      void       *p;
  
!     if ((p = (int *)malloc(sz)) == NULL)
  	ErrorGeneral(GetString("Memory allocation failure."));
  
      memset((char *) p, 0, (int) sz);
***************
*** 191,197 ****
  {
      void       *p;
  
!     if ((p = calloc(num, sz)) == NULL)
  	ErrorGeneral(GetString("Memory array allocation failure."));
  
      memset((char *) p, 0, (int) sz * (int) num);
--- 195,201 ----
  {
      void       *p;
  
!     if ((p = (int *)calloc(num, sz)) == NULL)
  	ErrorGeneral(GetString("Memory array allocation failure."));
  
      memset((char *) p, 0, (int) sz * (int) num);
***************
*** 210,216 ****
  {
      void       *t;
  
!     if ((t = realloc(p, sz)) == NULL)
  	ErrorGeneral(GetString("Memory array allocation failure."));
  
  #ifdef MEMDEBUG
--- 214,220 ----
  {
      void       *t;
  
!     if ((t = (int *)realloc(p, sz)) == NULL)
  	ErrorGeneral(GetString("Memory array allocation failure."));
  
  #ifdef MEMDEBUG
*** olvwmrc.y.orig	Thu Jan 13 14:46:53 1994
--- olvwmrc.y	Thu Oct 20 23:48:29 1994
***************
*** 526,532 ****
--- 526,534 ----
  	    }
  %%
  /* Programs */
+ #ifndef YYDEBUG
  #define YYDEBUG 1
+ #endif
  #include "parse.c"
  
  extern List	*ActiveClientList;
***************
*** 577,583 ****
     return(True);
  }
  
! static char *
  strexpand(s)
  char *s;
  {
--- 579,585 ----
     return(True);
  }
  
! extern char *
  strexpand(s)
  char *s;
  {
*** olwm.c.orig	Thu Jan 13 14:36:12 1994
--- olwm.c	Thu Oct 20 23:49:57 1994
***************
*** 56,61 ****
--- 56,64 ----
  
  typedef	void	(*VoidFunc)();
  
+ #ifdef __FreeBSD__
+ #define MAXPID 30000
+ #endif
  
  /*
   * Globals
***************
*** 679,685 ****
--- 682,692 ----
  #else
  	int oldmask;
  	int pid;
+ #ifndef __FreeBSD__
  	union wait status;
+ #else
+ 	int status;
+ #endif
  #endif
  
  	if (!deadChildren)
*** screen.c.orig	Fri Oct 21 23:45:51 1994
--- screen.c	Fri Oct 21 00:01:13 1994
***************
*** 66,71 ****
--- 66,78 ----
   *-------------------------------------------------------------------------*/
  List	*ScreenInfoList;			/* List of managed screens */
  extern	Bool BoolString();
+ static	updateScreenWorkspaceColor();
+ static	updateScreenWindowColor();
+ static	updateScreenForegroundColor();
+ static	updateScreenBackgroundColor();
+ static	updateScreenBorderColor();
+ static	updateScreenInputFocusColor();
+ static	updateScreenGlyphFont();
  
  /*-------------------------------------------------------------------------
   *	Local Data
*** st.c.orig	Thu Jan 13 14:36:18 1994
--- st.c	Thu Oct 20 23:53:07 1994
***************
*** 208,214 ****
      }
  }
  
! static rehash(table)
  register st_table *table;
  {
      register st_table_entry *ptr, *next, **old_bins = table->bins;
--- 208,214 ----
      }
  }
  
! extern rehash(table)
  register st_table *table;
  {
      register st_table_entry *ptr, *next, **old_bins = table->bins;
*** virtual.c.orig	Thu Jan 13 14:36:22 1994
--- virtual.c	Thu Oct 20 23:55:54 1994
***************
*** 48,53 ****
--- 48,56 ----
  #ident "@(#)virtual.c	1.6 olvwm version 07 Jan 1994"
  #endif
  
+ static rexMatch();
+ static rexInit();
+ 
  /* Class Function Vector; a virtual pane is the VDM window in which all
   * the little virtual windows appear (and to which said windows are
   * parented)
***************
*** 2108,2114 ****
--- 2111,2119 ----
      }
  }
  
+ #ifndef __FreeBSD__
  static char expbuf[256];
+ #endif
  
  static
  rexMatch(string)
*** winframe.c.orig	Thu Jan 13 14:36:25 1994
--- winframe.c	Fri Oct 21 00:02:34 1994
***************
*** 52,57 ****
--- 52,59 ----
  
  extern Time TimeFresh();
  
+ static	headerHeight();
+ 
  /***************************************************************************
  * private data
  ***************************************************************************/
*** winicon.c.orig	Thu Jan 13 14:36:26 1994
--- winicon.c	Fri Oct 21 00:03:55 1994
***************
*** 37,42 ****
--- 37,46 ----
  extern 	Bool	PropGetWMName();
  extern 	Bool	PropGetWMIconName();
  
+ static	heightTopIcon();
+ static	heightBottomIcon();
+ static	widthBothIcon();
+ 
  /***************************************************************************
  * private data
  ***************************************************************************/
*** Imakefile.orig	Mon Feb 27 18:22:32 1995
--- Imakefile	Mon Feb 27 18:39:18 1995
***************
*** 48,55 ****
  /**/#MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DIDENT
  
  /**/# For a generic Solaris 2.x system, I'd suggest
! MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DSVR4 -DSYSV -DIDENT -x O4
! 
  /**/#
  /**/# Set MORELDFLAGS to any link options you want.  Be sure to add -lxpm if you
  /**/# want to include XPM support.  For a generic Solaris 1.x
--- 48,55 ----
  /**/#MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DIDENT
  
  /**/# For a generic Solaris 2.x system, I'd suggest
! #MORECCFLAGS=-DOW_I18N_L3 -DSHAPE -DSVR4 -DSYSV -DIDENT -x O4
! MORECCFLAGS= -DOW_I18N_L3 -DSHAPE -DREGEXP
  /**/#
  /**/# Set MORELDFLAGS to any link options you want.  Be sure to add -lxpm if you
  /**/# want to include XPM support.  For a generic Solaris 1.x
***************
*** 57,64 ****
  /**/#MORELDFLAGS=-L${OPENWINHOME}/lib
  /**/#
  /**/# For Solaris 2.x, I'd suggest
! MORELDFLAGS=-L${OPENWINHOME}/lib -R ${OPENWINHOME}/lib -lintl
! 
  
  /**/# No more changes needed
  
--- 57,64 ----
  /**/#MORELDFLAGS=-L${OPENWINHOME}/lib
  /**/#
  /**/# For Solaris 2.x, I'd suggest
! #MORELDFLAGS=-L${OPENWINHOME}/lib -R ${OPENWINHOME}/lib -lintl
! MORELDFLAGS=-L${OPENWINHOME}/lib 
  
  /**/# No more changes needed
  
***************
*** 143,148 ****
--- 143,149 ----
  	do \
  	echo "installing $$i"; \
  	$(INSTALL) -c $(INSTMANFLAGS) $$i $(DESTDIR)$(MANDIR)/`basename $$i .man`.$(MANSUFFIX) ; \
+ 	$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/`basename $$i .man`.$(MANSUFFIX) ; \
  	done
  
  #include <XView.prog>