00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _TYPEDEFS_H
00011 #define _TYPEDEFS_H
00012
00013 typedef unsigned int word;
00014 typedef unsigned short vect;
00015 typedef unsigned char byte;
00016
00017 enum bool { False, True, No=0, Yes, Off=0, On };
00018 enum mode { Taxi, Bus, Subway };
00019
00020 inline bool between(int node, int min, int max)
00021 { return ( (node >= min) && (node <= max) ) ? True : False; }
00022
00023 inline int max (int a, int b)
00024 {
00025 return (a>b)? a : b;
00026 }
00027
00028 #endif