Quantum Fog  0.9.3
my_notation.h
1 //my_notation:
2 //I capitalize all class names.
3 // _p = pointer
4 // _h = handle
5 //I sometimes use:
6 //pstr ending for Pascal string (like Str255) (unsigned char *) or LStr255
7 //cstr ending for C string (char *) or STRINGY
8 //buf_p indeterminate sex (either C or Pascal)
9 
10 //global variables(often prototyped with extern): no distiguishing mark or g_
11 //constants (defined with "const" or "define"): no distiguishing mark or k_
12 
13 #pragma once
14 
15 #define VOID void
16 //#define INT int
17  //I won't use int
18 #define SHORT short //16bits
19 #define LONG long //32bits
20 typedef unsigned short USHORT;
21 typedef unsigned long ULONG;
22 #define CHAR char //8bits
23 #define FLOAT float //32bits
24 
25 //according to Universal Headers/Types.h
26 //double 64bits
27 //double_t=extended, fastest
28 //68K: 80 bits
29 //68K with 68881 on: 96 bits
30 //PowerPC: 64 bits
31 
32 #define DOUBLE64 double
33 
34 //can't use double_t due to a bug in MSL def of polar()
35 #define DOUBLE double
36 
37 
38 #define COMPLEX std::complex<DOUBLE>
39 
40 
41 //according to Universal Headers/Types.h
42 //old : Boolean = unsigned char (8 bits)
43 //new : Boolean = bool = its own type, still 8 bits
44 #define BOOLEAN Boolean
45 
46 #define STREAMBUF streambuf
47 #define IOS ios
48 #define OSTREAM ostream
49 #define ISTREAM istream
50 #define IOSTREAM iostream
51 #define IFSTREAM ifstream
52 #define OFSTREAM ofstream
53 
54 
55 // 4 horsemen of the Apocalypse (War, Famine, Plague, Death),
56 // Also 4: constructors (with various combinations of
57 // data-member inputs), copy constructor, destructor and assigner (=).
58