erwin/vector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52 #ifdef ERWIN_DEBUG_INCLUDE
53 #warning "Including vector.h."
54 #endif
55
56 #ifndef Global_ERWIN_VECTOR_H
57 #define Global_ERWIN_VECTOR_H
58
59 #ifdef ERWIN_DEBUG_INCLUDE
60 #warning "First inclusion of vector.h."
61 #endif
62 #ifdef Global_ERWIN_COMPILING
63 # include "--INCPREF2B--erwin/defs.h"
64 #else
65 # include <--INCPREF2B--erwin/defs.h>
66 #endif
67
68 #ifdef Global_ERWIN_ADAM_NAME
69
70 #COPYNAME erwininternalvectorerrno
71 #COPYNAME erwininternalvectorstrerror
72 #COPYNAME ERWININTERNALVECTOROK
73 #COPYNAME ERWININTERNALVECTORISOK
74 #COPYNAME ERWININTERNALVECTORISERROR
75 #COPYNAME ERWININTERNALVECTORISWARNING
76 #COPYNAME ERWININTERNALVECTORERRNOMEM
77 #COPYNAME ERWININTERNALVECTORERROUTOFRANGE
78 #COPYNAME ERWININTERNALVECTORERRTOOLARGE
79 #COPYNAME ERWININTERNALVECTORERRASSERTIONFAILED
80 #COPYNAME ERWININTERNALVECTORERRNOTCOMPILED
81 #COPYNAME ERWININTERNALVECTORERRIO
82 #COPYNAME ERWININTERNALVECTORWARNOUTOFRANGE
83 #COPYNAME ERWININTERNALVECTORWARNEMPTY
84
85 #else
86
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90
91
92 #if !defined(Global_ERWIN_THREAD_SAFE) || Global_ERWIN_USE_THREAD_KEYWORD
93 extern Global_ERWIN_THREAD_LOCAL int Global_erwininternalvectorerrno;
94 #elif Global_ERWIN_USE_PTHREAD
95 extern int *Global_erwininternalvectorerrnoptr(void);
96 #define Global_erwininternalvectorerrno (*Global_erwininternalvectorerrnoptr())
97 #endif
98
99 extern char const *Global_erwininternalvectorstrerror (int) ATTR_PURE;
100
101 #define Global_ERWININTERNALVECTOROK 1
102
103 #define Global_ERWININTERNALVECTORISOK(X) ((X) == Global_ERWININTERNALVECTOROK)
104 #define Global_ERWININTERNALVECTORISERROR(X) ((X) < Global_ERWININTERNALVECTOROK)
105 #define Global_ERWININTERNALVECTORISWARNING(X) ((X) > Global_ERWININTERNALVECTOROK)
106
107 #define Global_ERWININTERNALVECTORERRNOMEM (-2)
108 #define Global_ERWININTERNALVECTORERROUTOFRANGE (-4)
109 #define Global_ERWININTERNALVECTORERRASSERTIONFAILED (-5)
110 #define Global_ERWININTERNALVECTORERRNOTCOMPILED (-6)
111 #define Global_ERWININTERNALVECTORERRIO (-7)
112 #define Global_ERWININTERNALVECTORERRTOOLARGE (-8)
113
114 #define Global_ERWININTERNALVECTORWARNOUTOFRANGE 3
115
116 #define Global_ERWININTERNALVECTORWARNEMPTY 5
117
118 #ifdef __cplusplus
119 }
120 #endif
121
122 #endif
123
124 #endif