From: Eli Zaretskii <eliz@gnu.org>
To: Andreas Schwab <schwab@suse.de>, Denis PILAT <denis.pilat@st.com>
Cc: Chet Ramey <chet.ramey@case.edu>,
gdb-patches@sources.redhat.com, bash-maintainers@gnu.org
Subject: Re: [patch-readline] history file reading
Date: Thu, 23 Mar 2006 04:55:00 -0000 [thread overview]
Message-ID: <uk6any3ll.fsf@gnu.org> (raw)
In-Reply-To: <20060321153308.GC27369@brasko.net> (message from Bob Rossi on Tue, 21 Mar 2006 10:33:08 -0500)
> Date: Tue, 21 Mar 2006 10:33:08 -0500
> From: Bob Rossi <bob_rossi@cox.net>
> Cc: Denis PILAT <denis.pilat@st.com>, Chet Ramey <chet.ramey@case.edu>,
> Eli Zaretskii <eliz@gnu.org>, gdb-patches@sources.redhat.com,
> bash-maintainers@gnu.org
>
> > line_end[-1] whould be much better readable, IMHO.
>
> Can you even index into an array with a negitive number?
Yes, provided that the result is valid, i.e. it doesn't reference an
address outside the array.
In fact, in C, `*(foo -1)' and `foo[-1]' is literally the same thing
by the language rules, and the compiler produces identical code for
both expressions.
next prev parent reply other threads:[~2006-03-21 19:55 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 0:15 [patch-readline] history file generation on minGW host Denis PILAT
2006-03-17 0:26 ` Daniel Jacobowitz
2006-03-17 0:31 ` Denis PILAT
2006-03-17 16:07 ` Eli Zaretskii
2006-03-17 19:12 ` Denis PILAT
2006-03-17 19:37 ` Chet Ramey
2006-03-21 15:30 ` [patch-readline] history file reading Denis PILAT
2006-03-21 15:32 ` Chet Ramey
2006-03-21 15:38 ` Daniel Jacobowitz
2006-03-21 16:29 ` Andreas Schwab
2006-03-21 16:42 ` Bob Rossi
2006-03-21 16:46 ` Daniel Jacobowitz
2006-03-23 4:55 ` Eli Zaretskii [this message]
2006-03-21 19:52 ` Brian J. Fox
2006-03-21 19:55 ` Daniel Jacobowitz
2006-03-21 20:02 ` Andreas Schwab
2006-03-23 5:15 ` Eli Zaretskii
2006-03-23 4:37 ` 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=uk6any3ll.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=bash-maintainers@gnu.org \
--cc=chet.ramey@case.edu \
--cc=denis.pilat@st.com \
--cc=gdb-patches@sources.redhat.com \
--cc=schwab@suse.de \
/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