From owner-freebsd-hackers Wed Aug 16 12:31:59 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from c014.sfo.cp.net (c014-h023.c014.sfo.cp.net [209.228.12.87]) by hub.freebsd.org (Postfix) with SMTP id AAC3F37C5B8 for ; Wed, 16 Aug 2000 12:19:57 -0700 (PDT) (envelope-from dchance@valuedata.net) Received: (cpmta 3467 invoked from network); 16 Aug 2000 12:19:56 -0700 Received: from m12hRs4n205.midsouth.rr.com (HELO development1) (24.95.125.205) by smtp.valuedata.net with SMTP; 16 Aug 2000 12:19:56 -0700 X-Sent: 16 Aug 2000 19:19:56 GMT Message-ID: <000901c007b6$c19e6740$0200000a@development1> From: "Daryl Chance" To: Cc: References: <16713.966423376@axl.ops.uunet.co.za> Subject: Re: weird error messages from __COPYRIGHT macro Date: Wed, 16 Aug 2000 14:18:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i don't know assembler, but it the macros are like C, you need a \ at the end of the line :). (IIRC) Lemme know if that fixes it :). Thanks, ------------------------------------------- | Daryl Chance | BIT: n. unit by which | | Valuedata, LLC | programmers go insane | ------------------------------------------- ----- Original Message ----- From: "Sheldon Hearn" To: Cc: Sent: Wednesday, August 16, 2000 5:56 AM Subject: weird error messages from __COPYRIGHT macro > > Here is a source file which looks fine to me, but for which I get > unexpected assembler warnings: > > #include > > __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n" > "The Regents of the University of California." > " All rights reserved.\n"); > > int > main(void) > { > > exit(0); > } > > The compiler warnings follow: > > /tmp/ccZ16701.s: Assembler messages: > /tmp/ccZ16701.s:5: Warning: Unterminated string: Newline inserted. > /tmp/ccZ16701.s:6: Warning: Unterminated string: Newline inserted. > > I'm led to believe that these error messages are not present on a NetBSD > box. So is this broken usage of __COPYRIGHT(), or is this pre-processor > or assembler breakage? > > And please don't whine about me about string concatenation -- it's legal > in ANSI C. :-) > > Thanks, > Sheldon. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message