Thread (3 messages) 3 messages, 3 authors, 2021-09-30

Re: About the code style requirement

From: Daniel Axtens <hidden>
Date: 2021-09-29 06:10:10

Qu Wenruo via Grub-devel [off-list ref] writes:
Hi,

I'm recently considering to cross-port btrfs-progs/U-boot btrfs code to 
GRUB, so that we can have more unified code base, with more features 
(and of-course bug fixes)

But the first blockage I'm hitting is the code style.

It looks like GRUB is using its own code style which is not found in 
kernel/btrfs-progs/U-boot.

But I didn't find where the code style doc is, so is it a hard 
requirement to follow the existing style even we're cross-porting most 
code unmodified from other projects?
It's largely based on the GNU coding style. The `indent` program can do
most of the work for you.

Certain parts of grub that are imported more-or-less unmodified do
follow their own style, e.g. grub-core/lib/json/jsmn.h

I'm not a maintainer so I can't tell you how hard the style requirement
is.

Kind regards,
Daniel
Thanks,
Qu


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help