From 8cfd1fe2067d4b5378430c2fd6327bae8bedbdc3 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 15 Dec 1992 11:59:51 +0000 Subject: Initial revision --- utils/bool.h | 27 +++++++++++++++++++++++++++ utils/word.h | 29 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 utils/bool.h create mode 100644 utils/word.h (limited to 'utils') diff --git a/utils/bool.h b/utils/bool.h new file mode 100644 index 0000000..ec3b36d --- /dev/null +++ b/utils/bool.h @@ -0,0 +1,27 @@ +/* + * CENA C++ Utilities + * + * Copyright 1990, 1991, 1992 + * Laboratoire de Recherche en Informatique (LRI) + * Centre d'Etudes de la Navigation Aerienne (CENA) + * + * booleans + * + * $Id$ + * $CurLog$ + */ + +#ifndef _bool_h +#define _bool_h 1 + +#if defined(TRUE) +#undef TRUE +#undef FALSE +#endif + +enum bool { + TRUE = 1, + FALSE = 0 +}; + +#endif /* _bool_h */ diff --git a/utils/word.h b/utils/word.h new file mode 100644 index 0000000..4e02ff3 --- /dev/null +++ b/utils/word.h @@ -0,0 +1,29 @@ +/* + * CENA C++ Utilities + * + * Copyright 1990, 1991, 1992 + * Laboratoire de Recherche en Informatique (LRI) + * Centre d'Etudes de la Navigation Aerienne (CENA) + * + * words and bytes + * + * $Id$ + * $CurLog$ + */ + +#ifndef word_h_ +#define word_h_ + +typedef unsigned char byte; +typedef unsigned short sword; /* 16 bits */ +typedef unsigned long lword; /* 32 bits */ + +#ifndef swsize +#define swsize 2 +#endif + +#ifndef lwsize +#define lwsize 4 +#endif + +#endif /* word_h_ */ -- cgit v1.1