delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/03/05/06:38:14

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200003051136.MAA03256@father.ludd.luth.se>
Subject: iso646.h and some questions
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Sun, 5 Mar 2000 12:36:08 +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 (standard) file iso646.h.

Some files #defines constants several times. E. g. NULL is in wchar.h
and in stddef.h. Should those #defines be wrapped in #ifndef/#endif?

Shall I send header files containing new functions, so other people
can start implementing them?


Messiaen, Turangalila Symphony,

							MartinS

----- include/iso646.h starts. ------
/*
 * File iso646.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.
 *
 */

#ifndef __dj_include_iso646_h_
#define __dj_include_iso646_h_


#define and    &&
#define and_eq &=
#define bitand &
#define bitor  |
#define compl  ~
#define not    !
#define not_eq !=
#define or     ||
#define or_eq  |=
#define xor    ^
#define xor_eq ^=


#endif /* ! __dj_include_iso646_h_ */
----- include/iso646.h ends. ------

- Raw text -


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