summaryrefslogtreecommitdiff
path: root/wm/uwm/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-06 15:57:22 +0000
committerjoerg <joerg>2005-12-06 15:57:22 +0000
commitd20145dae667e16cf6cd4807789b4c97105a8cc0 (patch)
tree9c19c0db3191dc4c97c87a0f107dc7f41d40538c /wm/uwm/patches
parent01b30eb26c232d9f79f502ab8623d7f5aa50a617 (diff)
downloadpkgsrc-d20145dae667e16cf6cd4807789b4c97105a8cc0.tar.gz
Fix errno. Hide malloc & calloc for ANSI systems.
Diffstat (limited to 'wm/uwm/patches')
-rw-r--r--wm/uwm/patches/patch-ab32
-rw-r--r--wm/uwm/patches/patch-ac10
-rw-r--r--wm/uwm/patches/patch-ad43
-rw-r--r--wm/uwm/patches/patch-aj25
-rw-r--r--wm/uwm/patches/patch-ak23
5 files changed, 107 insertions, 26 deletions
diff --git a/wm/uwm/patches/patch-ab b/wm/uwm/patches/patch-ab
index 95e62e83135..658785afcf5 100644
--- a/wm/uwm/patches/patch-ab
+++ b/wm/uwm/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2005/12/06 15:57:22 joerg Exp $
--- uwm.c.orig Sun Oct 23 22:21:55 1988
+++ uwm.c Wed Jan 19 08:20:54 2000
-@@ -41,9 +41,18 @@
+@@ -41,9 +41,22 @@ char *ProgramName;
#include "uwm.h"
#include <ctype.h>
@@ -16,13 +16,17 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
+#define HAVE_MKSTEMP
+#endif
+#endif
++
++#ifdef X_NOT_STDC_ENV
++char *malloc();
++#endif
#ifdef PROFIL
-#include <signal.h>
/*
* Dummy handler for profiling.
*/
-@@ -53,6 +62,27 @@
+@@ -53,6 +66,27 @@ ptrap()
}
#endif
@@ -50,7 +54,15 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
#define gray_width 16
#define gray_height 16
static char gray_bits[] = {
-@@ -115,6 +145,10 @@
+@@ -103,7 +137,6 @@ char **environ;
+ GC gc; /* graphics context for gray background */
+ XImage grayimage; /* for gray background */
+ XGCValues xgc; /* to create font GCs */
+- char *malloc();
+ Bool fallbackMFont = False, /* using default GC font for menus, */
+ fallbackPFont = False, /* popups, */
+ fallbackIFont = False; /* icons */
+@@ -115,6 +148,10 @@ char **environ;
#ifdef PROFIL
signal(SIGTERM, ptrap);
#endif
@@ -61,7 +73,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
/*
* Set up internal defaults.
-@@ -369,7 +403,7 @@
+@@ -369,7 +406,7 @@ char **environ;
if (IFontInfo == NULL) {
fprintf(stderr, "uwm: Unable to open icon font '%s', using server default.\n",
IFontName);
@@ -70,7 +82,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
fallbackIFont = True;
}
PFontInfo = XLoadQueryFont(dpy, PFontName);
-@@ -379,7 +413,7 @@
+@@ -379,7 +416,7 @@ char **environ;
if (fallbackIFont)
PFontInfo = IFontInfo;
else
@@ -79,7 +91,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
fallbackPFont = True;
}
MFontInfo = XLoadQueryFont(dpy, MFontName);
-@@ -389,7 +423,7 @@
+@@ -389,7 +426,7 @@ char **environ;
if (fallbackIFont || fallbackPFont)
MFontInfo = fallbackPFont ? PFontInfo : IFontInfo;
else
@@ -88,7 +100,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
fallbackMFont = True;
}
-@@ -685,7 +719,11 @@
+@@ -685,7 +722,11 @@ char **environ;
*/
InitBindings()
{
@@ -100,7 +112,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
char *tempfile; /* Temporary filename. */
register FILE *fp; /* Temporary file pointer. */
register char **ptr; /* Default bindings string array pointer. */
-@@ -699,15 +737,26 @@
+@@ -699,15 +740,26 @@ InitBindings()
exit (1);
}
strcpy (tempfile, TEMPFILE);
@@ -127,7 +139,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
fclose(fp);
/*
-@@ -717,6 +766,7 @@
+@@ -717,6 +769,7 @@ InitBindings()
perror("uwm: cannot open temp file");
exit(1);
}
diff --git a/wm/uwm/patches/patch-ac b/wm/uwm/patches/patch-ac
index aa03d125949..de73b7e2049 100644
--- a/wm/uwm/patches/patch-ac
+++ b/wm/uwm/patches/patch-ac
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
+$NetBSD: patch-ac,v 1.2 2005/12/06 15:57:22 joerg Exp $
--- uwm.h.orig Mon Oct 24 19:08:24 1988
+++ uwm.h Thu Dec 23 00:27:02 1999
@@ -15,3 +15,11 @@ $NetBSD: patch-ac,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+@@ -261,7 +267,6 @@ typedef int Pixel;
+ /*
+ * External variable definitions.
+ */
+-extern int errno;
+ extern Window Pop; /* Pop-up dimension display window. */
+ extern Window Frozen; /* Contains window id of "gridded" window. */
+ extern XFontStruct *IFontInfo; /* Icon text font information. */
diff --git a/wm/uwm/patches/patch-ad b/wm/uwm/patches/patch-ad
index 72d010e366e..28278448a11 100644
--- a/wm/uwm/patches/patch-ad
+++ b/wm/uwm/patches/patch-ad
@@ -1,8 +1,19 @@
-$NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
+$NetBSD: patch-ad,v 1.2 2005/12/06 15:57:22 joerg Exp $
--- gram.y.orig Thu Sep 22 22:14:31 1988
+++ gram.y Thu Dec 23 22:04:02 1999
-@@ -117,18 +117,18 @@
+@@ -60,7 +60,10 @@ static char *hcolors[4]; /* Color value
+ static char *mcolors[2]; /* Color values used in menus. */
+ MenuLink *menu_link; /* Temporary menu link pointer. */
+
++#ifdef X_NOT_STDC_ENV
+ char *calloc();
++char *malloc();
++#endif
+
+ %}
+
+@@ -117,18 +120,18 @@ expr: keyword '=' compexpr
case IsString:
if ($3 == C_STRING) {
strcpy(KeywordTable[$1].sptr,
@@ -25,7 +36,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
break;
case IsBoolTrue:
case IsBoolFalse:
-@@ -197,12 +197,12 @@
+@@ -197,12 +200,12 @@ compexpr: keyexpr ':' contexpr ':' butte
ml_ptr = $3;
}
| STRING
@@ -40,7 +51,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
switch (KeywordTable[ki].type) {
case IsBoolTrue:
*(KeywordTable[ki].bptr) = TRUE;
-@@ -220,7 +220,7 @@
+@@ -220,7 +223,7 @@ boolvar: STRING
;
keyword: STRING {
@@ -49,7 +60,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
}
;
-@@ -246,9 +246,9 @@
+@@ -246,9 +249,9 @@ buttexpr: buttmodexpr
{ $$ = CheckButtonState($1); }
;
@@ -61,7 +72,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
buttmodexpr: buttmodifier
{ $$ = $1; }
-@@ -257,7 +257,7 @@
+@@ -257,7 +260,7 @@ buttmodexpr: buttmodifier
;
buttmodifier: STRING
@@ -70,7 +81,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
;
menuname: STRING
-@@ -304,7 +304,7 @@
+@@ -304,7 +307,7 @@ menuline: strings ':' color2 menuaction
menuaction: STRING
{
@@ -79,7 +90,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
if ((ki != -1) &&
(KeywordTable[ki].type != IsFunction) &&
(KeywordTable[ki].type != IsQuitFunction) &&
-@@ -350,7 +350,7 @@
+@@ -350,7 +353,7 @@ menuaction: STRING
}
;
@@ -88,7 +99,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
| strings STRING
{ $$ = strconcat($1, $2); }
;
-@@ -387,7 +387,7 @@
+@@ -387,7 +390,7 @@ color2: '(' color ':' color ')' ':'
}
;
@@ -97,7 +108,15 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
| /* empty */ { $$ = NULL; }
;
%%
-@@ -572,6 +572,8 @@
+@@ -503,7 +506,6 @@ char *
+ strconcat(s1, s2)
+ char *s1, *s2;
+ {
+- char *malloc();
+ char *p;
+
+ p = malloc(strlen(s1) + strlen(s2) + 2);
+@@ -572,6 +574,8 @@ char *name; /* Menu, if needed. */
setbinding(ICON, index, mask, name);
if (context & WINDOW)
setbinding(WINDOW, index, mask, name);
@@ -106,7 +125,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
}
/*
-@@ -599,12 +601,13 @@
+@@ -599,12 +603,13 @@ int m; /* Key/button/modifier mask. */
char *mname; /* Pointer to menu name, if needed. */
{
Binding *ptr;
@@ -121,7 +140,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
switch (m & (LeftMask | MiddleMask | RightMask)) {
case LeftMask:
-@@ -771,9 +774,8 @@
+@@ -771,9 +776,8 @@ MenuLink *link;
else {
for(ptr = list; ptr->next; ptr = ptr->next) /* NULL */;
ptr->next = link;
diff --git a/wm/uwm/patches/patch-aj b/wm/uwm/patches/patch-aj
index 53ad6b0e811..9fc3aa7e8d0 100644
--- a/wm/uwm/patches/patch-aj
+++ b/wm/uwm/patches/patch-aj
@@ -1,8 +1,19 @@
-$NetBSD: patch-aj,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
+$NetBSD: patch-aj,v 1.2 2005/12/06 15:57:22 joerg Exp $
--- Menu.c.orig Sat Oct 1 18:41:13 1988
+++ Menu.c Mon Jan 17 22:09:10 2000
-@@ -84,6 +84,14 @@
+@@ -72,6 +72,10 @@ Bool alternateGC = True; /* true if only
+ #define vfork() fork()
+ #endif
+
++#ifdef X_NOT_STDC_ENV
++char *malloc();
++#endif
++
+ /* the following procedure is a copy of the implementation of system,
+ * modified to reset the handling of SIGINT, SIGQUIT, and SIGHUP before
+ * exec-ing
+@@ -84,6 +88,14 @@ char *s;
char **oldenviron;
extern char **environ, **newenviron;
@@ -17,7 +28,7 @@ $NetBSD: patch-aj,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
oldenviron = environ;
environ = newenviron;
if ((pid = vfork()) == 0) {
-@@ -107,6 +115,9 @@
+@@ -107,6 +119,9 @@ char *s;
status = -1;
signal(SIGINT, istat);
signal(SIGQUIT, qstat);
@@ -27,3 +38,11 @@ $NetBSD: patch-aj,v 1.1.1.1 2000/12/12 02:03:49 wiz Exp $
return(status);
}
+@@ -129,7 +144,6 @@ MenuInfo *menu;
+ char *hlname; /* Pointer to hi-liter name. */
+ char *strbuf; /* String buffer for IsTextNL. */
+ Bool checkMotion = TRUE; /* To Restore Cursor Position */
+- char *malloc();
+ int funcbutton; /* function button for window select */
+
+ /*
diff --git a/wm/uwm/patches/patch-ak b/wm/uwm/patches/patch-ak
new file mode 100644
index 00000000000..e64838efc88
--- /dev/null
+++ b/wm/uwm/patches/patch-ak
@@ -0,0 +1,23 @@
+$NetBSD: patch-ak,v 1.1 2005/12/06 15:57:22 joerg Exp $
+
+--- lex.l.orig 1988-10-23 13:20:00.000000000 +0000
++++ lex.l
+@@ -44,6 +44,10 @@ static char *sccsid = "@(#)lex.l 3.8 1/2
+ char *dequote();
+ char *stash();
+
++#ifdef X_NOT_STDC_ENV
++char *malloc();
++#endif
++
+ %}
+ W [ \t]+
+ %%
+@@ -81,7 +85,6 @@ char *stash(s)
+ char *s;
+ {
+ char *ptr;
+- char *malloc();
+
+ ptr = malloc(strlen(s) + 1);
+ if (ptr == NULL) {