mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
Let splint process <inttypes.h>. Now it passes its own test suite.
Submitted by: Stacey Son <sson@verio.net>
This commit is contained in:
parent
00d8ff9db2
commit
e8afcf438a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69449
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= splint
|
||||
PORTVERSION= 3.0.1.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel security
|
||||
MASTER_SITES= http://www.splint.org/downloads/
|
||||
EXTRACT_SUFX= .src.tgz
|
||||
|
11
devel/splint/files/patch-src::Headers::constants.h
Normal file
11
devel/splint/files/patch-src::Headers::constants.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/Headers/constants.h.orig Wed Oct 30 16:08:45 2002
|
||||
+++ src/Headers/constants.h Wed Oct 30 16:09:42 2002
|
||||
@@ -97,7 +97,7 @@
|
||||
# define PPMRCODE "@@MR@@"
|
||||
|
||||
/*@constant observer char *DEFAULT_SYSTEMDIR; @*/
|
||||
-# define DEFAULT_SYSTEMDIR "/usr/"
|
||||
+# define DEFAULT_SYSTEMDIR "/usr/include/:/usr/lib/:/usr/local/include/:/usr/local/lib/"
|
||||
|
||||
/*@constant char DEFAULT_COMMENTCHAR; @*/
|
||||
# define DEFAULT_COMMENTCHAR '@'
|
50
devel/splint/files/patch-src::lcllib.c
Normal file
50
devel/splint/files/patch-src::lcllib.c
Normal file
@ -0,0 +1,50 @@
|
||||
--- src/lcllib.c.orig Wed Oct 30 17:51:13 2002
|
||||
+++ src/lcllib.c Wed Oct 30 22:37:48 2002
|
||||
@@ -49,13 +49,7 @@
|
||||
extern /*:open:*/ /*@dependent@*/ FILE *yyin;
|
||||
/*@=incondefs@*/ /*@=redecl@*/
|
||||
|
||||
-/*@constant int NUMLIBS; @*/
|
||||
-# define NUMLIBS 25
|
||||
-
|
||||
-/*@constant int NUMPOSIXLIBS; @*/
|
||||
-# define NUMPOSIXLIBS 18
|
||||
-
|
||||
-static ob_mstring posixlibs[NUMPOSIXLIBS] =
|
||||
+static ob_mstring posixlibs[] =
|
||||
{
|
||||
"dirent",
|
||||
"fcntl",
|
||||
@@ -77,7 +71,10 @@
|
||||
"utime"
|
||||
} ;
|
||||
|
||||
-static ob_mstring stdlibs[NUMLIBS] =
|
||||
+/*@constant int NUMPOSIXLIBS; @*/
|
||||
+# define NUMPOSIXLIBS (sizeof(posixlibs) / sizeof(posixlibs[0]))
|
||||
+
|
||||
+static ob_mstring stdlibs[] =
|
||||
{
|
||||
"assert",
|
||||
"complex"
|
||||
@@ -85,7 +82,10 @@
|
||||
"errno",
|
||||
"fenv",
|
||||
"float",
|
||||
+#ifndef __FreeBSD__
|
||||
+/* inttypes.h needs to be parsed on FreeBSD so some defines are known */
|
||||
"inttypes",
|
||||
+#endif
|
||||
"iso646",
|
||||
"limits",
|
||||
"locale",
|
||||
@@ -105,6 +105,9 @@
|
||||
"wchar",
|
||||
"wctype"
|
||||
} ;
|
||||
+
|
||||
+/*@constant int NUMLIBS; @*/
|
||||
+# define NUMLIBS (sizeof(stdlibs) / sizeof(stdlibs[0]))
|
||||
|
||||
static bool loadLCDFile (FILE * p_f, cstring p_name);
|
||||
|
Loading…
Reference in New Issue
Block a user