From: Johannes Sixt <j6t@kdbg.org>
To: Michael Haggerty <mhagger@alum.mit.edu>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Forward declaration of enum iterator_selection?
Date: Sat, 6 Aug 2016 00:26:03 +0200 [thread overview]
Message-ID: <933f540f-7752-cfce-5785-b67728fea987@kdbg.org> (raw)
When refs.c is being compiled, the only mention of enum
iterator_selection is in this piece of code pulled in from
refs-internal.h (have a look at the preprocessed code):
typedef enum iterator_selection ref_iterator_select_fn(
struct ref_iterator *iter0, struct ref_iterator *iter1,
void *cb_data);
This looks like a forward declarations of an enumeration type name,
something that I thought is illegal in C. Am I wrong? (That may well be
the case, my C-foo is quite rusty.)
My compiler does not complain (it's gcc 4.8), but I thought I mention it
before someone with a pickier compiler stumbles over it...
-- Hannes
next reply other threads:[~2016-08-06 20:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-05 22:26 Johannes Sixt [this message]
2016-08-07 20:34 ` Forward declaration of enum iterator_selection? Ramsay Jones
2016-08-08 16:30 ` Johannes Sixt
2016-08-08 18:28 ` Ramsay Jones
2016-08-08 18:52 ` Ramsay Jones
2016-08-10 22:46 ` Michael Haggerty
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=933f540f-7752-cfce-5785-b67728fea987@kdbg.org \
--to=j6t@kdbg.org \
--cc=git@vger.kernel.org \
--cc=mhagger@alum.mit.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).