Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!columbia!caip!brl-adm!brl-smoke!smoke!rgenter@BBN-LABS-B.ARPA From: rgenter@BBN-LABS-B.ARPA Newsgroups: net.lang.c Subject: Re: Poorly terminated header files. Message-ID: <2262@brl-smoke.ARPA> Date: Tue, 15-Jul-86 15:15:14 EDT Article-I.D.: brl-smok.2262 Posted: Tue Jul 15 15:15:14 1986 Date-Received: Wed, 16-Jul-86 03:41:43 EDT Sender: news@brl-smoke.ARPA Lines: 32 I can think of one reason why the Reiser CPP treats free standing # as a comment when not at the beginning of the line: this is was many assemblers use as comments. However, /lib/cpp as shipped with vanilla 4.2 BSD just passes it on through, causing /lib/ccom to barf with the classic: illegal character 043 (octal) cannot recover from earlier errors, I'm stupid! (er...goodbye!) What is worse is when you have a header file that ends with an unterminated comment, as in: loser.h: #define LAST_LOSER 99 /* the last loser (oops)... /* main.c: #include "loser.h" #include "victim.h" /* and now the code... */ Gee, where did victim.h go? P.S. Why does zarathustra.think.com think that it's New Year's Day, 1987? Or has the ARPAnet finally gone translight? -------- Rick Genter BBN Laboratories Inc. (617) 497-3848 10 Moulton St. 6/512 rgenter@labs-b.bbn.COM (Internet new) Cambridge, MA 02238 rgenter@bbn-labs-b.ARPA (Internet old) linus!rgenter%BBN-LABS-B.ARPA (UUCP)