git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] struct *_struct
@ 2010-08-04 15:08 Jared Hance
  2010-08-04 19:24 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Jared Hance @ 2010-08-04 15:08 UTC (permalink / raw)
  To: git

After browsing some of the diff related code today, I noted the
structure "struct diff_queue_struct". I found it somewhat odd that a
struct had struct in the name of the struct, and I hadn't really seen
any others like this.

Indeed, there are two others: struct dir_struct and struct cmd_struct.

To see, you can run:

    $ git grep _struct *.c *.h


Typing "struct *_struct" is rather verbose - We already have to
prepend the "struct", so it is extremely clear that we are using a
struct. Is there a reason that:

    - We are extremely verbose
    - We use this style in only 3 cases

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

end of thread, other threads:[~2010-08-06 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04 15:08 [RFC] struct *_struct Jared Hance
2010-08-04 19:24 ` Junio C Hamano
2010-08-04 21:38   ` [PATCH] Refactor structures in the form of *_struct Jared Hance
2010-08-05 16:20   ` [RFC] struct *_struct Michael Witten
2010-08-05 22:43     ` Jared Hance
2010-08-06  3:57       ` Michael Witten
2010-08-06 12:29         ` Jared Hance
2010-08-06  2:28     ` Miles Bader

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).