| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| X-Recipient: | djgpp-workers AT delorie DOT com |
| X-Virus-Scanned: | Debian amavisd-new at nospam.ludd.ltu.se |
| X-Spam-Flag: | NO |
| X-Spam-Score: | -1.245 |
| X-Spam-Level: | |
| X-Spam-Status: | No, score=-1.245 tagged_above=-9999 required=10.31 |
| tests=[BAYES_00=-1.9, SPF_SOFTFAIL=0.665, T_RP_MATCHES_RCVD=-0.01] | |
| autolearn=no autolearn_force=no | |
| Date: | Fri, 21 Sep 2018 16:09:21 +0200 |
| From: | "Martin Str|mberg (ams AT ludd DOT ltu DOT se) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com> |
| To: | "Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp-workers AT delorie DOT com]" <djgpp-workers AT delorie DOT com> |
| Subject: | Re: stdbool.h |
| Message-ID: | <20180921140921.GA39682@muddus.ludd.ltu.se> |
| References: | <CAA2C=vBs-=vUkC_4Ek96cnEPPg0=Dy_LMVM3ALOBThpe08CsYA AT mail DOT gmail DOT com> |
| <CAA2C=vDpeUKOuxQuvQF+32XdDapK1FLk8bt5Cpheq_RCvfFFrg AT mail DOT gmail DOT com> | |
| MIME-Version: | 1.0 |
| In-Reply-To: | <CAA2C=vDpeUKOuxQuvQF+32XdDapK1FLk8bt5Cpheq_RCvfFFrg@mail.gmail.com> |
| User-Agent: | Mutt/1.9.4 (2018-02-28) |
| Reply-To: | djgpp-workers AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp-workers AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, Sep 15, 2018 at 02:40:27PM +0300, Ozkan Sezer (sezeroz AT gmail DOT com) [via djgpp-workers AT delorie DOT com] wrote:
> On 9/14/18, Ozkan Sezer <sezeroz AT gmail DOT com> wrote:
> > @@ -19,6 +18,10 @@
> > #include <sys/fsext.h>
> > #include <libc/fsexthlp.h>
> >
> > +typedef enum {
> > + false = 0, true = 1
> > +} bool;
> > +
> > int
> > _open(const char* filename, int oflag)
> > {
>
> Applies this now as obvious.
I don't know if it's important but I think the above makes
sizeof(bool)==4.
This is different from sizeof(unsigned char), which is what I think
you added to stdbool.h.
--
MartinS
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |