Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!husc6!yale!bunker!hjg From: hjg@bunker.UUCP (Harry J. Gross) Newsgroups: comp.lang.c Subject: Re: Function prototypes (was: miscellaneous unrelated stuff) Message-ID: <2023@bunker.UUCP> Date: Mon, 4-May-87 13:44:39 EDT Article-I.D.: bunker.2023 Posted: Mon May 4 13:44:39 1987 Date-Received: Tue, 5-May-87 02:44:11 EDT References: <18346@ucbvax.BERKELEY.EDU> <7973@utzoo.UUCP> <796@rtech.UUCP> <1821@husc6.UUCP> Reply-To: hjg@bunker.UUCP (Harry J. Gross) Organization: Bunker Ramo, Trumbull Ct Lines: 30 In article <1821@husc6.UUCP> olson@endor.UUCP (Eric Olson) writes: >I have a big complaint about function prototypes. I would very much like >all the functions in my code to have prototypes accessible from any other >module, essentially so I get lint-like argument checking during compile. >(I am using LightSpeed C on the Macintosh-- don't yell at me, but it has no >lint. It does have an option to require prototypes). So I can prototype >everything in a header file included in all my modules, but then adding a >module forces a complete re-make. > >Am I missing something? Is there a sane way to use prototypes (I already >use them on libraries, since they rarely change). > >Any ideas will be appreciated. It's kind of kludgey (sp?), but if you _know_ that the only change to the header was the addition of a prototype that is currently unused in any other module, you could *touch* each of the other modules (.c and .obj). Then make should leave them alone. I have sometimes been forced to do this when I have added a (not currently used, but will be soon) #define to a header file that would otherwise cause 30 modules to recompile. It's a terrible hack, I know, but it beats waiting xx minutes for a completely unnecessary recompile. (Of course, if you have no easy way of updating the modification time on the file, all bets are off - Oh well :-). If there is a better way, I don't know what it is, BUT I SURE WOULD LIKE TO!!! Harry Gross ..!bunker!hjg