Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!rlgvax!guy
From: guy@rlgvax.UUCP (Guy Harris)
Newsgroups: net.lang.c
Subject: Re: 6 char externs -- a lint suggestion
Message-ID: <192@rlgvax.UUCP>
Date: Sat, 13-Oct-84 01:18:07 EDT
Article-I.D.: rlgvax.192
Posted: Sat Oct 13 01:18:07 1984
Date-Received: Sun, 14-Oct-84 04:48:29 EDT
References: <2542@ihldt.UUCP>
Organization: CCI Office Systems Group, Reston, VA
Lines: 25

> A lint option could be included which would allow one to have it
> check all internal names to be unique up to 'n' significant characters.

Try "lint -p"; on the following program:

	mainxxbar()
	{
	}

	mainxxfoo()
	{
	}

it generates the following diagnostic:

	==============
	name multiply declared
	    mainxx   	futz.c(2) :: futz.c(6)

This also has the effect of checking against a "lint library" for a
portable subset of the standard C library, instead of the full UNIX C
library.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy