00001 #ifndef types_h 00002 #define types_h 00003 00004 //TN is for Terrre-Neuve 00005 //define 00006 #define TN_INTEGER int 00007 #define TN_LONG_INTEGER long 00008 #define TN_REAL double 00009 #define TN_INFINITY 9999 00010 00011 //custom types 00012 typedef short TN_INTEGER ShortInteger; 00013 typedef unsigned short TN_INTEGER ShortNatural; 00014 typedef TN_INTEGER Integer; 00015 typedef unsigned TN_INTEGER Natural; 00016 typedef TN_LONG_INTEGER LongInteger; 00017 typedef unsigned TN_LONG_INTEGER LongNatural; 00018 typedef TN_REAL Real; 00019 typedef long long VeryLongInteger; 00020 typedef unsigned long long VeryLongNatural; 00021 00022 enum Currency { USD = 1, 00023 EUR = 2, 00024 CAD = 3 }; 00025 00026 00027 struct cachedval { 00028 bool isCached; 00029 Real value; 00030 }; 00031 00032 00033 #endif