diff options
-rw-r--r-- | utils/bool.h | 27 | ||||
-rw-r--r-- | utils/word.h | 29 |
2 files changed, 56 insertions, 0 deletions
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_ */ |