/* /usr2/gipsy-oasis/local/rtg/includes/SCCS/s.userTypes.h 1.5 */ /**************************************************************************** * RTG Source Code, * * Copyright (C) 1996, California Institute of Technology * * U.S. Government Sponsorship under NASA Contract NAS7-1260 * * (as may be time to time amended) * * * * RTG is a trademark of the California Institute of Technology. * * * * * * written by Yoaz Bar-Sever, Willy Bertiger, Bruce Haines, * * Angelyn Moore, Ron Muellerschoen, Tim Munson, * * Larry Romans, and Sien Wu * ****************************************************************************/ /****************************************************************************** * * * userTypes.h * * * * user type defines and stuff * * * * 940218 tnm 02.00.00 created (this is a new edition to get some code * * running. * * 940626 tnm 02.01.00 added #define of bool. * * rearranged typedef's and added bitxx types. * * removed // comment delimiter in anticipation of * * porting to other (UNIX and VMS) systems * * 940928 tnm 02.01.01 added ulong type * * 941012 tnm 02.01.02 moved to HP (no changes) * * 941104 tnm 02.01.03 added enumType (for using generic enum's) * * 950724 tnm 02.01.04 added str7 type. * * 951024 tnm 02.01.05 added str8 and counter types. * * 951025 tnm 02.01.06 added str31 types. * * * ******************************************************************************/ /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---*/ #ifndef _userTypes_h_ #define _userTypes_h_ /* global #defines */ #ifndef STRING_BUFFER_SIZE #define STRING_BUFFER_SIZE 1024 #endif #ifndef FALSE #define FALSE False #endif #ifndef false #define false False #endif #ifndef TRUE #define TRUE True #endif #ifndef true #define true True #endif #ifndef bool #define bool boolean #endif /* global typedefs */ typedef int enumType; typedef int counter; typedef unsigned char bit8; typedef unsigned char byte; typedef unsigned char flag8; typedef unsigned char ui8; typedef char i8; typedef char string; typedef unsigned short bit16; typedef unsigned short flag16; typedef unsigned short ui16; typedef unsigned short uWord; typedef short i16; typedef short word; typedef unsigned long bit32; typedef unsigned long flag32; typedef unsigned long uDblWord; typedef unsigned long ui32; typedef long dblWord; typedef long i32; typedef string str8[9]; typedef string str7[8]; typedef string str31[32]; typedef string str80[81]; typedef string str255[256]; typedef string str511[512]; typedef string str1023[1024]; typedef string str2047[2048]; typedef byte buff256[256]; typedef byte buff512[512]; typedef byte buff1024[1024]; typedef byte buff2048[2048]; /* global structure typedefs */ #ifdef VxWorks #define False 0 #define True 1 typedef enum boolean { False_bool, True_bool } boolean; #else typedef enum boolean { False, True } boolean; #endif #endif /* _userTypes_h_ */