- Add fix for parsing FreeBSD's sys/cdefs.h ('__func__')

- Bump portrevision

PR:		ports/61131
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Obtained from:	Splint CVS
This commit is contained in:
Pav Lucistnik 2004-01-09 20:26:17 +00:00
parent 4056c20493
commit 7e191ae13c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97798
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= splint
PORTVERSION= 3.1.1
PORTREVISION= 1
CATEGORIES= devel security
MASTER_SITES= http://www.splint.org/downloads/
EXTRACT_SUFX= .src.tgz

View file

@ -0,0 +1,11 @@
--- src/cpplib.c.orig Fri Jan 9 16:44:23 2004
+++ src/cpplib.c Fri Jan 9 16:44:51 2004
@@ -2828,7 +2828,7 @@
else if (hp->type == T_CONST)
ok = !CPPOPTIONS (pfile)->done_initializing;
else {
- BADBRANCH;
+ ok = FALSE; /* Redefining anything else is bad. */
}
/* Print the warning if it's not ok. */