From: Ben Key <bkey76@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs-devel@gnu.org
Subject: Re: Patch make configure.bat support --cflags and --ldflags options that include quotes
Date: Fri, 29 Apr 2011 10:11:47 -0500 [thread overview]
Message-ID: <BANLkTin8KNTkVdX4-Zxpw34R0jc5J+bDhA@mail.gmail.com> (raw)
In-Reply-To: <83r58l7bwb.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
Eli Zaretskii wrote:
> Maybe I'm missing something, but where is the fallback, exactly?
The code that you refrenced is simply not called in the fallback case, due
to the following code
:usercflags
if "%use_extensions%" == "1" goto ucflagex
goto ucflagne
The code you referred to is in the ucflagex case, but, if command extensions
are not enabled, the ucflagne case is used. In the ucflagne case there are
the following lines.
set usercflags=%usercflags%%sep1%%1
set fusercflags=%usercflags%
The first of these lines sets usercflags without attempting to use the
command extensions magic that strips quotes and thus providing support for
options in the form of -DFOO=BAR as long as they are enclosed in quotes and
the second line sets fusercflags so that it simply contains the value of
usercflags
The line latter in the file that you referred to,
if (%docflags%) == (Y) echo #define USER_CFLAGS " %fusercflags%">>config.tmp
, uses only the fusercflags variable which is fine. This is because of the
fact that, even if command extensions are not enabled, the fusercflags
variable will be set to the appropriate value. The fusercflags variable will
have the same value as the usercflags variable if command extensions are not
available and will be equal to the usercflags variable with all the quotes
escaped by the backslash character if command extensions are available.
[-- Attachment #2: Type: text/html, Size: 1796 bytes --]
next prev parent reply other threads:[~2011-04-29 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-29 0:00 Patch make configure.bat support --cflags and --ldflags options that include quotes Ben Key
2011-04-29 7:30 ` Eli Zaretskii
2011-04-29 15:11 ` Ben Key [this message]
2011-04-29 17:11 ` Eli Zaretskii
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=BANLkTin8KNTkVdX4-Zxpw34R0jc5J+bDhA@mail.gmail.com \
--to=bkey76@gmail.com \
--cc=Emacs-devel@gnu.org \
--cc=eliz@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.