On Fri, 07 Jan 2000 11:22:17 GMT, David Malone wrote:

> I tried lint again since David O'Brien committed the new /usr/bin/cpp,
> but it turns out that lint is hardwried to use /usr/libexec/cpp.
> I changed it to use /usr/bin/cpp, and it works, but gives some
> error messages.

I submitted a patch on the cvs-all list yesterday.  No feedback yet.

Ciao,
Sheldon.





On Mon, 03 Jan 2000 19:48:09 PST, "David E. O'Brien" wrote:

>   Modified files:
>     usr.bin              Makefile 
>     gnu/usr.bin/cc       Makefile 
>     gnu/usr.bin/cc/cpp   Makefile 
>   Removed files:
>     usr.bin/cpp          Makefile cpp.notraditional.sh cpp.sh 
>   Log:
>   Turn on a new /usr/bin/cpp that is a true binary rather than a shell script
>   wrapper.  /usr/bin/cpp knows about all the GCC predefined symbols and has
>   the functionality of the previous EGCS 1.1.2 /usr/libexec/cpp.

I think lint(1) might work with this given the following small patch.

Ciao,
Sheldon.

Index: xlint.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/xlint/xlint/xlint.c,v
retrieving revision 1.7
diff -u -d -r1.7 xlint.c
--- xlint.c     1999/01/25 11:25:24     1.7
+++ xlint.c     2000/01/06 14:03:29
@@ -321,7 +321,6 @@
        libsrchpath = xcalloc(1, sizeof (char *));
 
        appcstrg(&cppflags, "-lang-c");
-       appcstrg(&cppflags, "-undef");
        appcstrg(&cppflags, "-$");
        appcstrg(&cppflags, "-C");
        appcstrg(&cppflags, "-Wcomment");


Reply via email to