Main Page Class Hierarchy Compound List File List Compound Members

# misc.h

    00001
    00002
    00003 //
    00004 // misc.h
    00005 //
    00006 //
    00007 //
    00008 // Purpose:
    00009 //
    00010 // Set all defaults value used in the GDS-II datastructure. Also defines some variable
    00011 // as PointType, bool and G_BYTE, all used in the datastructure.
    00012 //
    00013
    00014 #ifndef MISC_H
    00015 #define MISC_H
    00016
    00017 #ifdef __GNUG__
    00018 #pragma interface
    00019 #endif
    00020
    00021 #include "limits.h"
    00022 #define PROGRAM_NAME "GDS-II Postprocessing Tool 6.2"
    00023 #ifdef __UNIX__
    00024 int stricmp(const char*,const char*);
    00025 typedef long long B_INT;                   // 8 bytes integer
    00026 //#define B_INT (long long)                // 8 bytes integer
    00027 #ifdef LINUX
    00028 #define MAXB_INT 21474836470000LL               // 8 bytes integer
    00029 #define MINB_INT -21474836480000LL      // 8 bytes integer
    00030 #else
    00031 // for unix LONG_LONG_MIN LONG_LONG_MAX
    00032 #define MAXB_INT LONG_LONG_MAX  // 8 bytes integer
    00033 #define MINB_INT LONG_LONG_MIN  // 8 bytes integer
    00034 #endif
    00035 B_INT min(B_INT const value1, B_INT const value2);
    00036 B_INT max(B_INT const value1, B_INT const value2);
    00037 B_INT abs(B_INT);
    00038 #else
    00039 typedef __int64 B_INT;             // 8 bytes integer
    00040 #define MAXB_INT 21474836470000         // 8 bytes integer
    00041 #define MINB_INT -21474836480000        // 8 bytes integer
    00042 B_INT abs(B_INT b);
    00043 #define M_PI        3.14159265358979323846
    00044 #define M_PI_2      1.57079632679489661923
    00045 #define M_PI_4      0.785398163397448309616
    00046
    00047
    00048 #endif
    00049
    00050 #ifndef NULL
    00051 #define NULL 0
    00052 #endif
    00053
    00054 //
    00055 // defaults
    00056 //
    00057
    00058 #define DEFAULT_WIDTH                                   0
    00059
    00060 //
    00061 //
    00062 // main program defaults
    00063 //
    00064
    00065 double Check_int(double getal);
    00066
    00067 #include "statusb.h"
    00068 extern StatusBar *_statusbar;
    00069
    00070 // messagehandler
    00071 #include "gdsmes.h"
    00072 extern GDSMessage *_messagehandler;
    00073
    00074 #include "gdserr.h"
    00075
    00076 #define         LINELENGTH              200
    00077
    00078 #endif

misc.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page