summaryrefslogtreecommitdiff
path: root/devel/cdecl/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-03-09 15:38:32 +0000
committerrillig <rillig@pkgsrc.org>2007-03-09 15:38:32 +0000
commitba9d5cb9fd1685cbf55c35c0bfdb4ed80647e44a (patch)
tree8ad01bfa447df2806495113bd0e687e16e990495 /devel/cdecl/patches
parentc7b82234aa0d602b24e67b801f893865cb755d4e (diff)
downloadpkgsrc-ba9d5cb9fd1685cbf55c35c0bfdb4ed80647e44a.tar.gz
Don't use "restrict" as an identifier in C code; it is reserved since
C99. Fixed PKGMANDIR.
Diffstat (limited to 'devel/cdecl/patches')
-rw-r--r--devel/cdecl/patches/patch-aa57
1 files changed, 54 insertions, 3 deletions
diff --git a/devel/cdecl/patches/patch-aa b/devel/cdecl/patches/patch-aa
index a5dcd1f3781..dbcd37a7bc8 100644
--- a/devel/cdecl/patches/patch-aa
+++ b/devel/cdecl/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.8 2006/01/08 20:16:27 joerg Exp $
+$NetBSD: patch-aa,v 1.9 2007/03/09 15:38:32 rillig Exp $
---- cdecl.c.orig 1996-01-16 03:54:46.000000000 +0000
-+++ cdecl.c
+--- cdecl.c.orig 1996-01-16 04:54:46.000000000 +0100
++++ cdecl.c 2007-03-09 16:36:18.000000000 +0100
@@ -59,7 +59,9 @@
*/
@@ -74,6 +74,57 @@ $NetBSD: patch-aa,v 1.8 2006/01/08 20:16:27 joerg Exp $
int dotmpfile(), dofileargs();
#endif /* __STDC__ */
FILE *tmpfile();
+@@ -241,7 +247,7 @@ struct
+ /* for unsupported combinations of types. */
+ void mbcheck()
+ {
+- register int i, j, restrict;
++ register int i, j, xrestrict;
+ char *t1, *t2;
+
+ /* Loop through the types */
+@@ -258,26 +264,26 @@ void mbcheck()
+ if (!(modbits & crosstypes[j].bit))
+ continue;
+ /* check the type of restriction */
+- restrict = crosscheck[i][j];
+- if (restrict == ALWAYS)
++ xrestrict = crosscheck[i][j];
++ if (xrestrict == ALWAYS)
+ continue;
+ t1 = crosstypes[i].name;
+ t2 = crosstypes[j].name;
+- if (restrict == NEVER)
++ if (xrestrict == NEVER)
+ {
+ notsupported("", t1, t2);
+ }
+- else if (restrict == RITCHIE)
++ else if (xrestrict == RITCHIE)
+ {
+ if (RitchieFlag)
+ notsupported(" (Ritchie Compiler)", t1, t2);
+ }
+- else if (restrict == PREANSI)
++ else if (xrestrict == PREANSI)
+ {
+ if (PreANSIFlag || RitchieFlag)
+ notsupported(" (Pre-ANSI Compiler)", t1, t2);
+ }
+- else if (restrict == ANSI)
++ else if (xrestrict == ANSI)
+ {
+ if (!RitchieFlag && !PreANSIFlag)
+ notsupported(" (ANSI Compiler)", t1, t2);
+@@ -286,7 +292,7 @@ void mbcheck()
+ {
+ (void) fprintf (stderr,
+ "%s: Internal error in crosscheck[%d,%d]=%d!\n",
+- progname, i, j, restrict);
++ progname, i, j, xrestrict);
+ exit(1); /* NOTREACHED */
+ }
+ }
@@ -399,12 +405,12 @@ char ** attempt_completion(char *text, i
{
char **matches = NULL;