From: Jan Engelhardt <jengelh@medozas.de>
To: "John (Eljay) Love-Jensen" <eljay@adobe.com>
Cc: Hiroki Kaminaga <kaminaga@sm.sony.co.jp>,
"gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: RE: #line directive and -D option
Date: Wed, 17 Dec 2008 03:55:00 -0000 [thread overview]
Message-ID: <alpine.LNX.1.10.0812170422460.10852@fbirervta.pbzchgretzou.qr> (raw)
In-Reply-To: <204DEA5423F3BF47A6EE88C4E2979EC66BDE084E2B@nambx04.corp.adobe.com>
On Wednesday 2008-12-17 03:37, John (Eljay) Love-Jensen wrote:
>Hi Hiroki,
>
>The __FILE__ is based on what you pass.
>
>gcc -c foo.c
>__FILE__ is "foo.c"
>
>gcc -c ././././foo.c
>__FILE__ is "././././foo.c"
>
>If you don't want the prefix, don't append the prefix.
Well sometimes that just is not possible; for example when
you do an out-of-srcdir build in an autotools project, aka:
mkdir obj
cd obj
../configure
then the compiler will be invoked with lots of ../${filename}.c.
That's why I use basename.
next prev parent reply other threads:[~2008-12-17 3:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-16 6:11 Hiroki Kaminaga
2008-12-16 12:45 ` John (Eljay) Love-Jensen
2008-12-17 2:39 ` Hiroki Kaminaga
2008-12-17 2:40 ` Jan Engelhardt
2008-12-17 3:24 ` John (Eljay) Love-Jensen
2008-12-17 3:55 ` Jan Engelhardt [this message]
2008-12-17 17:47 ` Hiroki Kaminaga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.1.10.0812170422460.10852@fbirervta.pbzchgretzou.qr \
--to=jengelh@medozas.de \
--cc=eljay@adobe.com \
--cc=gcc-help@gcc.gnu.org \
--cc=kaminaga@sm.sony.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).