All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about Coding-Style
Date: Mon, 10 Feb 2014 11:54:43 +0100	[thread overview]
Message-ID: <20140210115443.420b7511@lilith> (raw)
In-Reply-To: <52F8A706.7030103@free.fr>

Hi Chris,

> > Hmm... Last time I checked,
> >
> > 	"abc"
> > 	"def"
> >
> > Is a valid C string, and does not require a backslash. Do I miss
> > something?
> 
> Yes, you are of course correct: the result is the C string "abcdef" and 
> the backslash in the original is superfluous.
> However a grep for "abcdef" in the source code won't match it :(
> This is why splitting strings like this is discouraged in the Linux kernel.

Got it, thanks.

> Cheers,
> Chris

Amicalement,
-- 
Albert.

  reply	other threads:[~2014-02-10 10:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04 12:50 [U-Boot] Question about Coding-Style Hannes Petermaier
2014-02-04 14:14 ` Stefano Babic
2014-02-04 14:18   ` Michael Trimarchi
2014-02-04 14:50   ` Hannes Petermaier
2014-02-04 15:02     ` Stefano Babic
2014-02-04 15:07       ` Tom Rini
2014-02-10  9:58         ` Albert ARIBAUD
2014-02-10 10:16           ` Chris Moore
2014-02-10 10:54             ` Albert ARIBAUD [this message]
2014-02-10 18:27             ` Wolfgang Denk
2014-02-04 20:32     ` Wolfgang Denk
2014-02-04 15:02 ` Tom Rini
2014-02-04 20:20 ` Wolfgang Denk
2014-02-04 22:03 ` Scott Wood
2014-02-12 13:21   ` Fabio Estevam

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=20140210115443.420b7511@lilith \
    --to=albert.u.boot@aribaud.net \
    --cc=u-boot@lists.denx.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 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.