Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!brutus.cs.uiuc.edu!apple!usc!ucsd!ucbvax!ucdavis!uop!quack!mrapple From: mrapple@quack.UUCP (Nick Sayer) Newsgroups: comp.unix.wizards Subject: Re: Insane compiler problem, cc, unix v7 Summary: It only happens to the first function! Keywords: long, smail defs.h, source Message-ID: <1014@quack.UUCP> Date: 30 Oct 89 18:51:08 GMT References: <1013@quack.UUCP> Organization: The Duck Pond, Stockton, CA. Lines: 21 In article <1013@quack.UUCP>, mrapple@quack.UUCP (Nick Sayer) writes: > I have been hacking on this one for six hours straight. I hacked on it a little more. Within any ".c" file that includes "defs.h," the first function defined is given an extra paramater "s." This paramater is not visible in the preprocessor output. Any other paramater "s" will, naturally, cause a "redeclaration of formal paramater" error. There are no characters in the preprocessor output except for program text, tabs, newlines and "#" lines with line number and file name for keeping track of the compilation. And, as I mentioned, there is no trace of this extra "s" anywhere. Nevertheless, the first function defined in the file (as long as it is not #ifdef'd out of the code of course), has an extra invisible paramater (this according to lint as well as cc!). This is crazy. --------------------------------------------------------------------- Nick Sayer | ...{ lll-winken!cheers ucdavis!uop } !quack!mrapple .... or.... cheers!quack!mrapple@apple.com or quack!mrapple@uop.edu Packet radio: N6QQQ @ WB6V | FredMail: NSAYER@MADERA%NORCAL Disclaimer: The BBC would like to appologise for that announcement