Date: Wed, 16 Aug 2000 21:25:14 +0200 From: Mark Murray <mark@grondar.za> To: Sheldon Hearn <sheldonh@uunet.co.za> Cc: freebsd-hackers@FreeBSD.ORG, obrien@FreeBSD.ORG Subject: Re: weird error messages from __COPYRIGHT macro Message-ID: <200008161925.VAA01138@grimreaper.grondar.za> In-Reply-To: <16713.966423376@axl.ops.uunet.co.za> ; from Sheldon Hearn <sheldonh@uunet.co.za> "Wed, 16 Aug 2000 12:56:16 %2B0200." References: <16713.966423376@axl.ops.uunet.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
> And please don't whine about me about string concatenation -- it's legal
> in ANSI C. :-)
__COPYRIGHT is defined as
#define __COPYRIGHT(s) __IDSTRING(copyright,s)
and __IDSTRING is
#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"")
By the time the string makes it to the assembler, the \n's have been
turned into (real) NL's so the assembler line looks like
.ident "@(#) Copyright (c) 1983, 1988, 1993
The Regents of the University of California. All rights reserved.
"
...and it does not like the multi-line string. You may need to
double-escape the \n's (like \\n) to get them into the .ident
line symbolically.
(I just checked - it worked!)
M
--
Mark Murray
Join the anti-SPAM movement: http://www.cauce.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008161925.VAA01138>
