Mail Archives: djgpp-workers/2000/03/05/06:38:14
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 -