00001 #ifndef mytypes_h
00002 #define mytypes_h
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #define NO_DOLLAR
00020 #include "vmstime.h"
00021
00022 #ifdef FREEVMS_BIG_ENDIAN
00023 #define VMSLONG(l) ((l & 0xff) << 24 | (l & 0xff00) << 8 | (l & 0xff0000) >> 8 | l >> 24)
00024 #define VMSWORD(w) ((w & 0xff) << 8 | w >> 8)
00025 #define VMSSWAP(l) ((l & 0xff0000) << 8 | (l & 0xff000000) >> 8 |(l & 0xff) << 8 | (l & 0xff00) >> 8)
00026 #else
00027 #define VMSLONG(l) l
00028 #define VMSWORD(w) w
00029 #define VMSSWAP(l) ((l & 0xffff) << 16 | l >> 16)
00030 #endif
00031
00032 typedef unsigned char vmsbyte;
00033 typedef unsigned short vmsword;
00034 typedef unsigned int vmsswap;
00035 typedef unsigned int vmslong;
00036
00037 #endif
00038