9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Andrew Simmons <andrew@mbmnz.co.nz>
To: 9fans@cse.psu.edu
Subject: [9fans] Coding layout query
Date: Fri,  8 Mar 2002 11:49:29 +1300	[thread overview]
Message-ID: <3.0.6.32.20020308114929.009a27f0@pop3.clear.net.nz> (raw)

Not wishing to start a religious debate here, but I notice that in the
Plan9 source code, the return type of a function is placed on a separate
line from the function name when the function is defined:

int
nurdge(int a)

or even

static
int
nurdge(int a)

whereas in the header file, the return type is on the same line:

int	nurdge(int)

It's not a style I've seen before, even, if memory serves, in TPOP, and I
was wondering if it was purely a matter of taste, or whether there was some
perceived benefit to be gained from laying the code out in this way - I
find it rather disconcerting at present.




             reply	other threads:[~2002-03-07 22:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-07 22:49 Andrew Simmons [this message]
2002-03-08  9:59 ` Thomas Bushnell, BSG
2002-03-08  9:59 ` ozan s. yigit
2002-03-08 16:18 ` Boyd Roberts
2002-03-07 22:54 bwc
2002-03-08 13:18 presotto

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=3.0.6.32.20020308114929.009a27f0@pop3.clear.net.nz \
    --to=andrew@mbmnz.co.nz \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).