public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Coding Style Line Length
@ 2017-08-11 19:01 Jim.Dailey
  2017-08-11 21:09 ` Kinney, Michael D
  0 siblings, 1 reply; 2+ messages in thread
From: Jim.Dailey @ 2017-08-11 19:01 UTC (permalink / raw)
  To: lersek; +Cc: edk2-devel

Laszlo,

Are there any special considerations for Print() statements with respect
to the 80 character line length?

If "No", what is the preferred format if one wants to print strings that
are 80 or more characters such as:

  Print(L"123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789\n");

Regards,
Jim


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Coding Style Line Length
  2017-08-11 19:01 Coding Style Line Length Jim.Dailey
@ 2017-08-11 21:09 ` Kinney, Michael D
  0 siblings, 0 replies; 2+ messages in thread
From: Kinney, Michael D @ 2017-08-11 21:09 UTC (permalink / raw)
  To: Jim.Dailey@dell.com, lersek@redhat.com, Kinney, Michael D
  Cc: edk2-devel@lists.01.org

Jim,

C has some flexibility here.  Multiple "" strings without commas
are concatenated as if they were one string.

  Print(
    L"123456789 123456789 123456789 123456789 "
    L"123456789 123456789 123456789 123456789\n"
    );

Mike

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On
> Behalf Of Jim.Dailey@dell.com
> Sent: Friday, August 11, 2017 12:02 PM
> To: lersek@redhat.com
> Cc: edk2-devel@lists.01.org
> Subject: [edk2] Coding Style Line Length
> 
> Laszlo,
> 
> Are there any special considerations for Print() statements with
> respect
> to the 80 character line length?
> 
> If "No", what is the preferred format if one wants to print
> strings that
> are 80 or more characters such as:
> 
>   Print(L"123456789 123456789 123456789 123456789 123456789
> 123456789 123456789 123456789\n");
> 
> Regards,
> Jim
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-11 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-11 19:01 Coding Style Line Length Jim.Dailey
2017-08-11 21:09 ` Kinney, Michael D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox