From: "Bence Fábián" <begnoc@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] C question on struct Biobuf in bio.h
Date: Tue, 7 Oct 2014 17:35:00 +0200 [thread overview]
Message-ID: <CAOCRf5X116ZPR8HxvrF4g+qExtw=wTO6Mwe1y6wPQ9TmVt60Gg@mail.gmail.com> (raw)
In-Reply-To: <1341360045.898340.1412695492957.JavaMail.ngmail@webmail12.arcor-online.net>
[-- Attachment #1: Type: text/plain, Size: 822 bytes --]
hi,
no, it is an anonym field. and it is used in a way that is not part
of ansi c. there is an extension in newer versions of gcc which
supports it, but if you wan't to port plan 9 c to unix you can use the
libs from plan9port. that's far more easier.
bence
2014-10-07 17:24 GMT+02:00 Carsten Kunze <carsten.kunze@arcor.de>:
> Hello,
>
> in bio.h there is a
>
> struct Biobuf
> {
> Biobufhdr;
> uchar b[Bungetsize+Bsize];
> };
>
> where Biobufhdr is declared as
>
> typedef struct Biobufhdr Biobufhdr;
>
> To make it compile with gcc under UNIX I changed the struct to
>
> struct Biobuf
> {
> Biobufhdr Biobufhdr;
> uchar b[Bungetsize+Bsize];
> };
>
> but is that what is meant by the original description above?
>
> Carsten
>
>
[-- Attachment #2: Type: text/html, Size: 1310 bytes --]
next prev parent reply other threads:[~2014-10-07 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-07 15:24 Carsten Kunze
2014-10-07 15:35 ` Bence Fábián [this message]
2014-10-07 15:41 ` David du Colombier
2014-10-07 15:58 ` Carsten Kunze
2014-10-07 17:27 ` Álvaro Jurado
2014-10-08 13:35 ` Charles Forsyth
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='CAOCRf5X116ZPR8HxvrF4g+qExtw=wTO6Mwe1y6wPQ9TmVt60Gg@mail.gmail.com' \
--to=begnoc@gmail.com \
--cc=9fans@9fans.net \
/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).