delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/03/04/10:08:18

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200003041452.PAA08644@father.ludd.luth.se>
Subject: stdbool.h
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Sat, 4 Mar 2000 15:52:39 +0100 (MET)
X-Mailer: ELM [version 2.4ME+ PL54 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Here's the new ISO/IEC 9899:1999 (E) standard include file stdbool.h
for DJGPP. If it can be useful for other GNU projects please forward
it to them (perhaps Alain know whereto?).


If I have understood the standard correctly, "_Bool" is the boolean
type of the C language so this is something the compiler must supply.


Yes, The Ladder,

							MartinS

----- include/stdbool.h starts. -----
/*
 * File stdbool.h.
 * According to the standard ISO/IEC 9899:1999 (E).
 *
 * Copyright (C) 2000 Martin Strömberg <ams AT ludd DOT luth DOT se>.
 *
 * This software may be used freely so long as this copyright notice is
 * left intact. There is no warranty on this software.
 *
 */

#define bool _Bool

#define true 1
#define false 0

#define __bool_true_false_are_defined 1

----- include/stdbool.h ends. -----

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019