[Midnightbsd-cvs] src [7397] trunk/usr.bin/c99: explicitly define path to cc
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jan 3 13:27:57 EST 2016
Revision: 7397
http://svnweb.midnightbsd.org/src/?rev=7397
Author: laffer1
Date: 2016-01-03 13:26:57 -0500 (Sun, 03 Jan 2016)
Log Message:
-----------
explicitly define path to cc
Modified Paths:
--------------
trunk/usr.bin/c99/c99.1
trunk/usr.bin/c99/c99.c
Modified: trunk/usr.bin/c99/c99.1
===================================================================
--- trunk/usr.bin/c99/c99.1 2016-01-03 17:33:38 UTC (rev 7396)
+++ trunk/usr.bin/c99/c99.1 2016-01-03 18:26:57 UTC (rev 7397)
@@ -26,7 +26,7 @@
.\" From FreeBSD: src/usr.bin/c89/c89.1,v 1.11 2007/03/10 07:10:01 ru Exp
.\" $MidnightBSD$
.\"
-.Dd June 17, 2010
+.Dd July 13, 2015
.Dt C99 1
.Os
.Sh NAME
@@ -188,12 +188,3 @@
.Nm
utility interface conforms to
.St -p1003.1-2001 .
-Since it is a wrapper around
-.Tn GCC ,
-it is limited to the
-.Tn C99
-features that
-.Tn GCC
-actually implements.
-See
-.Pa http://gcc.gnu.org/gcc-4.2/c99status.html .
Modified: trunk/usr.bin/c99/c99.c
===================================================================
--- trunk/usr.bin/c99/c99.c 2016-01-03 17:33:38 UTC (rev 7396)
+++ trunk/usr.bin/c99/c99.c 2016-01-03 18:26:57 UTC (rev 7397)
@@ -43,12 +43,12 @@
#include <string.h>
#include <unistd.h>
-char **args;
-u_int cargs, nargs;
+static char **args;
+static u_int cargs, nargs;
-void addarg(const char *);
-void addlib(const char *);
-void usage(void);
+static void addarg(const char *);
+static void addlib(const char *);
+static void usage(void);
int
main(int argc, char *argv[])
@@ -70,7 +70,7 @@
usage();
}
- addarg("cc");
+ addarg("/usr/bin/cc");
addarg("-std=iso9899:1999");
addarg("-pedantic");
for (i = 1; i < optind; i++)
@@ -91,7 +91,7 @@
err(1, "/usr/bin/cc");
}
-void
+static void
addarg(const char *item)
{
if (nargs + 1 >= cargs) {
@@ -104,7 +104,7 @@
args[nargs] = NULL;
}
-void
+static void
addlib(const char *lib)
{
@@ -123,7 +123,7 @@
}
}
-void
+static void
usage(void)
{
(void)fprintf(stderr, "%s\n%s\n",
More information about the Midnightbsd-cvs
mailing list