1 /* Generated by Nim Compiler v1.6.2 */
2 #define NIM_INTBITS 32
3 
4 #include "nimbase.h"
5 #include <string.h>
6 #undef LANGUAGE_C
7 #undef MIPSEB
8 #undef MIPSEL
9 #undef PPC
10 #undef R3000
11 #undef R4000
12 #undef i386
13 #undef linux
14 #undef mips
15 #undef near
16 #undef far
17 #undef powerpc
18 #undef unix
19 #define nimfr_(x, y)
20 #define nimln_(x, y)
21 typedef struct NimStringDesc NimStringDesc;
22 typedef struct TGenericSeq TGenericSeq;
23 typedef struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw;
24 typedef struct tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ;
25 typedef struct tyObject_TIdObj__KUwfjfUQEwGHguQbTcXu7w tyObject_TIdObj__KUwfjfUQEwGHguQbTcXu7w;
26 typedef struct RootObj RootObj;
27 typedef struct TNimType TNimType;
28 typedef struct TNimNode TNimNode;
29 typedef struct tyObject_ItemId__ozxAxZLHTQ9c3akTzYvt67g tyObject_ItemId__ozxAxZLHTQ9c3akTzYvt67g;
30 typedef struct tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw;
31 typedef struct tyObject_TType__facALICuu8zUj0hjvbTLFg tyObject_TType__facALICuu8zUj0hjvbTLFg;
32 typedef struct tyObject_TIdent__1LTsGP7bSxg45u9aHcxh6OA tyObject_TIdent__1LTsGP7bSxg45u9aHcxh6OA;
33 typedef struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q;
34 typedef struct tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA;
35 typedef struct tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA;
36 typedef struct tyObject_TLib__NBMxlJ6g3utqUlplqTTHkA tyObject_TLib__NBMxlJ6g3utqUlplqTTHkA;
37 typedef struct tyObject_Target__9abOl5DLX8suLujOaHSvGzw tyObject_Target__9abOl5DLX8suLujOaHSvGzw;
38 typedef struct tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg;
39 typedef struct tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A;
40 typedef struct tySequence__tNFrR3kRuS1FSwuiLGoSSA tySequence__tNFrR3kRuS1FSwuiLGoSSA;
41 typedef struct tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA;
42 typedef struct tySequence__7lEisrXlQEzwtUKW5pzRCw tySequence__7lEisrXlQEzwtUKW5pzRCw;
43 typedef struct tySequence__Zi9cGbCWofbtABoHJ5RbLNQ tySequence__Zi9cGbCWofbtABoHJ5RbLNQ;
44 typedef struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg;
45 typedef struct tySequence__4eRCaZmrYLLw2k30GPTiMw tySequence__4eRCaZmrYLLw2k30GPTiMw;
46 typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
47 typedef struct tyTuple__47w2DboNEPf69aPgubZdd7Q tyTuple__47w2DboNEPf69aPgubZdd7Q;
48 typedef struct tySequence__pK3qSsBZwdXd6qyUMkd5Jw tySequence__pK3qSsBZwdXd6qyUMkd5Jw;
49 typedef struct tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ;
50 typedef struct tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig;
51 typedef struct tySequence__9aZVGG5Gtti9cC9bqRpXCtA3A tySequence__9aZVGG5Gtti9cC9bqRpXCtA3A;
52 typedef struct tyTuple__z822nu9bFF1AlQnLrHjdwpA tyTuple__z822nu9bFF1AlQnLrHjdwpA;
53 typedef struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw tyTuple__xYhUhS7X82rKTqbT9bRfCnw;
54 typedef struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw;
55 typedef struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw tyTuple__QeWl6B6ffS4pU6WWrtcrDw;
56 typedef struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg;
57 struct TGenericSeq {
58 NI len;
59 NI reserved;
60 };
61 struct NimStringDesc {
62   TGenericSeq Sup;
63 NIM_CHAR data[SEQ_DECL_SIZE];
64 };
65 typedef NimStringDesc* tyArray__Re75IspeoxXy2oCZHwcRrA[2];
66 typedef NU8 tyEnum_TSymKind__cNCW9acsSznmEccl1fgQwkw;
67 typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
68 typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
69 typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
70 typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
71 struct TNimType {
72 NI size;
73 NI align;
74 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
75 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
76 TNimType* base;
77 TNimNode* node;
78 void* finalizer;
79 tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
80 tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
81 };
82 struct RootObj {
83 TNimType* m_type;
84 };
85 struct tyObject_ItemId__ozxAxZLHTQ9c3akTzYvt67g {
86 NI32 module;
87 NI32 item;
88 };
89 struct tyObject_TIdObj__KUwfjfUQEwGHguQbTcXu7w {
90   RootObj Sup;
91 tyObject_ItemId__ozxAxZLHTQ9c3akTzYvt67g itemId;
92 };
93 typedef NU16 tyEnum_TMagic__shZhZOdbVC5nnFvcXQAImg;
94 struct tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q {
95 NU16 line;
96 NI16 col;
97 NI32 fileIndex;
98 };
99 typedef NU64 tySet_tyEnum_TSymFlag__K9ay6LWMat9bUiT9bIbMxpDHw;
100 typedef NU32 tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg;
101 typedef NU8 tyEnum_TLocKind__O7PRFZKuiBBWbku09cayVBg;
102 typedef NU8 tyEnum_TStorageLoc__JK9cKMX3XnqHaUky9b6gkGEw;
103 typedef NU16 tySet_tyEnum_TLocFlag__o2bqJgR4ceIupnUSpxiudA;
104 struct tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA {
105 tyEnum_TLocKind__O7PRFZKuiBBWbku09cayVBg k;
106 tyEnum_TStorageLoc__JK9cKMX3XnqHaUky9b6gkGEw storage;
107 tySet_tyEnum_TLocFlag__o2bqJgR4ceIupnUSpxiudA flags;
108 tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* lode;
109 tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* r;
110 };
111 struct tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ {
112   tyObject_TIdObj__KUwfjfUQEwGHguQbTcXu7w Sup;
113 tyEnum_TSymKind__cNCW9acsSznmEccl1fgQwkw kind;
114 union{
115 struct {tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* gcUnsafetyReason;
116 tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* transformedBody;
117 } _kind_1;
118 struct {tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* guard;
119 NI bitsize;
120 NI alignment;
121 } _kind_2;
122 };
123 tyEnum_TMagic__shZhZOdbVC5nnFvcXQAImg magic;
124 tyObject_TType__facALICuu8zUj0hjvbTLFg* typ;
125 tyObject_TIdent__1LTsGP7bSxg45u9aHcxh6OA* name;
126 tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info;
127 tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* owner;
128 tySet_tyEnum_TSymFlag__K9ay6LWMat9bUiT9bIbMxpDHw flags;
129 tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* ast;
130 tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg options;
131 NI position;
132 NI offset;
133 tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA loc;
134 tyObject_TLib__NBMxlJ6g3utqUlplqTTHkA* annex;
135 tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* constraint;
136 };
137 struct tyObject_TIdent__1LTsGP7bSxg45u9aHcxh6OA {
138 NI id;
139 NimStringDesc* s;
140 tyObject_TIdent__1LTsGP7bSxg45u9aHcxh6OA* next;
141 NI h;
142 };
143 typedef NU8 tyEnum_TBackend__4OBsgZ9cscH2JLUE5Wcz01g;
144 typedef NU8 tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag;
145 typedef NU8 tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ;
146 struct tyObject_Target__9abOl5DLX8suLujOaHSvGzw {
147 tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag targetCPU;
148 tyEnum_TSystemCPU__XYDt7D1G3qcClFyZy1Ky9ag hostCPU;
149 tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ targetOS;
150 tyEnum_TSystemOS__s7Mlr1t66SUqP6BKJMXLaQ hostOS;
151 NI intSize;
152 NI floatSize;
153 NI ptrSize;
154 NimStringDesc* tnl;
155 };
156 typedef NU64 tySet_tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw;
157 typedef NU8 tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA;
158 struct tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA {
159 tySequence__7lEisrXlQEzwtUKW5pzRCw* data;
160 NI counter;
161 };
162 struct tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A {
163 tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q trackPos;
164 NIM_BOOL trackPosAttached;
165 tySet_tyEnum_TErrorOutput__fBf8Teueoz9aAkO5cXaxrpA errorOutputs;
166 tySequence__tNFrR3kRuS1FSwuiLGoSSA* msgContext;
167 tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastError;
168 tyObject_Table__Ab4q9c36aMR4mtkEOIBzdzA filenameToIndexTbl;
169 tySequence__Zi9cGbCWofbtABoHJ5RbLNQ* fileInfos;
170 NI32 systemFileIdx;
171 };
172 typedef NU8 tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ;
173 typedef NU8 tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA;
174 typedef NU8 tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw;
175 typedef NU8 tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ;
176 typedef NU8 tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ;
177 struct tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg {
178 tySequence__4eRCaZmrYLLw2k30GPTiMw* data;
179 NI counter;
180 };
181 typedef NU32 tySet_tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ;
182 typedef NU8 tySet_tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA;
183 typedef NU8 tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ;
184 typedef NU8 tyEnum_TSystemCC__1eWBJUonHMOnlBwsOvpFmA;
185 typedef NU8 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug[11];
186 struct tyTuple__47w2DboNEPf69aPgubZdd7Q {
187 NI Field0;
188 NI Field1;
189 NI Field2;
190 };
191 typedef NU8 tySet_tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug;
192 typedef struct {
193 N_NIMCALL_PTR(void, ClP_0) (tyObject_SuggestcolonObjectType___bkMuTTb2G70XfpzAiyNrnQ* result, void* ClE_0);
194 void* ClE_0;
195 } tyProc__YD0MR9bJ2x4beJkZdnjXN9cA;
196 typedef struct {
197 N_NIMCALL_PTR(void, ClP_0) (NimStringDesc* output, void* ClE_0);
198 void* ClE_0;
199 } tyProc__k2HFjxisIgDALbEUFojxaQ;
200 typedef NU8 tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA;
201 typedef struct {
202 N_NIMCALL_PTR(void, ClP_0) (tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* config, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info, NimStringDesc* msg, tyEnum_Severity__x5BWBPGAbIH9clm5pmNp5DA severity, void* ClE_0);
203 void* ClE_0;
204 } tyProc__oL9coyIA2VDTGdUcur9aL9bew;
205 struct tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw {
206 tyEnum_TBackend__4OBsgZ9cscH2JLUE5Wcz01g backend;
207 tyObject_Target__9abOl5DLX8suLujOaHSvGzw target;
208 NI linesCompiled;
209 tySet_tyEnum_TOption__WspMeQySXNP2XoTWR5MTgg options;
210 tySet_tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw globalOptions;
211 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* macrosToExpand;
212 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* arcToExpand;
213 tyObject_MsgConfig__kV7r8HWT0SqOYW2k2ukC6A m;
214 tyEnum_FilenameOption__eL86bAtPxXWHj24F5gOMFQ filenameOption;
215 NimStringDesc* unitSep;
216 NI evalTemplateCounter;
217 NI evalMacroCounter;
218 NI8 exitcode;
219 tyEnum_Command__0zjcIQ623TIRGPdtjLwTFA cmd;
220 NimStringDesc* cmdInput;
221 NIM_BOOL projectIsCmd;
222 NIM_BOOL implicitCmd;
223 tyEnum_TGCMode__tkz389aDYNd8ykeZszCuBSw selectedGC;
224 tyEnum_ExceptionSystem__1mkAogyaDAT7g9cQjzsgKLQ exc;
225 NIM_BOOL hintProcessingDots;
226 NI verbosity;
227 NI numberOfProcessors;
228 NF lastCmdTime;
229 tyEnum_SymbolFilesOption__gBES9bqm1ru9ape8SeMRAFgQ symbolFiles;
230 NI spellSuggestMax;
231 tyObject_HashSet__CD8Dpv0WGmASelVaNSo6zg cppDefines;
232 NimStringDesc* headerFile;
233 tySet_tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ features;
234 tySet_tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA legacyFeatures;
235 NimStringDesc* arguments;
236 tyEnum_IdeCmd__1Ced39bl5eePmZ1PKMPXigQ ideCmd;
237 NIM_BOOL oldNewlines;
238 tyEnum_TSystemCC__1eWBJUonHMOnlBwsOvpFmA cCompiler;
239 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug modifiedyNotes;
240 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug cmdlineNotes;
241 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug foreignPackageNotes;
242 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug notes;
243 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug warningAsErrors;
244 tySet_tyEnum_TMsgKind__7VIi6mabc7hDxpCmSMYIug mainPackageNotes;
245 NI mainPackageId;
246 NI errorCounter;
247 NI hintCounter;
248 NI warnCounter;
249 NI errorMax;
250 NI maxLoopIterationsVM;
251 NIM_BOOL isVmTrace;
252 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* configVars;
253 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* symbols;
254 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* packageCache;
255 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* nimblePaths;
256 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* searchPaths;
257 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* lazyPaths;
258 NimStringDesc* outFile;
259 NimStringDesc* outDir;
260 NimStringDesc* jsonBuildFile;
261 NimStringDesc* prefixDir;
262 NimStringDesc* libpath;
263 NimStringDesc* nimcacheDir;
264 tyTuple__47w2DboNEPf69aPgubZdd7Q nimStdlibVersion;
265 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* dllOverrides;
266 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* moduleOverrides;
267 tyObject_StringTableObj__V5PVrt9bIxZEeV7lfvqqtNg* cfileSpecificOptions;
268 NimStringDesc* projectName;
269 NimStringDesc* projectPath;
270 NimStringDesc* projectFull;
271 NIM_BOOL projectIsStdin;
272 tySet_tyEnum_StdOrrKind__6cbmyTzDPaZU9afMe4mz3Ug lastMsgWasDot;
273 NI32 projectMainIdx;
274 NI32 projectMainIdx2;
275 NimStringDesc* command;
276 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* commandArgs;
277 NimStringDesc* commandLine;
278 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* extraCmds;
279 NIM_BOOL keepComments;
280 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* implicitImports;
281 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* implicitIncludes;
282 NimStringDesc* docSeeSrcUrl;
283 NimStringDesc* docRoot;
284 NimStringDesc* docCmd;
285 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* configFiles;
286 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cIncludes;
287 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cLibs;
288 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* cLinkedLibs;
289 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* externalToLink;
290 NimStringDesc* linkOptionsCmd;
291 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* compileOptionsCmd;
292 NimStringDesc* linkOptions;
293 NimStringDesc* compileOptions;
294 NimStringDesc* cCompilerPath;
295 tySequence__pK3qSsBZwdXd6qyUMkd5Jw* toCompile;
296 tyProc__YD0MR9bJ2x4beJkZdnjXN9cA suggestionResultHook;
297 NI suggestVersion;
298 NI suggestMaxResults;
299 tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q lastLineInfo;
300 tyProc__k2HFjxisIgDALbEUFojxaQ writelnHook;
301 tyProc__oL9coyIA2VDTGdUcur9aL9bew structuredErrorHook;
302 NimStringDesc* cppCustomNamespace;
303 NimStringDesc* nimMainPrefix;
304 tyObject_ProfileDatacolonObjectType___rPBBfFL4X0b9cQ6rfMNPXig* vmProfileData;
305 };
306 typedef NU8 tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw;
307 typedef NU8 tySet_tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag[9];
308 typedef NU8 tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag;
309 typedef NU8 tyEnum_TCallingConvention__yjAJ8w0h1PBaSwSGJ3P7IA;
310 typedef NU64 tySet_tyEnum_TTypeFlag__x2m5g1NpbmDig4wLT3Ylhw;
311 struct tyObject_TType__facALICuu8zUj0hjvbTLFg {
312   tyObject_TIdObj__KUwfjfUQEwGHguQbTcXu7w Sup;
313 tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag kind;
314 tyEnum_TCallingConvention__yjAJ8w0h1PBaSwSGJ3P7IA callConv;
315 tySet_tyEnum_TTypeFlag__x2m5g1NpbmDig4wLT3Ylhw flags;
316 tySequence__9aZVGG5Gtti9cC9bqRpXCtA3A* sons;
317 tyObject_TNode__bROa11lyF5vxEN9aYNbHmhw* n;
318 tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* owner;
319 tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* sym;
320 NI64 size;
321 NI16 align;
322 NI16 paddingAtEnd;
323 NI16 lockLevel;
324 tyObject_TLoc__EtHNvCB0bgfu9bFjzx9cb6aA loc;
325 tyObject_TType__facALICuu8zUj0hjvbTLFg* typeInst;
326 tyObject_ItemId__ozxAxZLHTQ9c3akTzYvt67g uniqueId;
327 };
328 struct tyTuple__z822nu9bFF1AlQnLrHjdwpA {
329 tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q Field0;
330 NimStringDesc* Field1;
331 };
332 struct tyTuple__xYhUhS7X82rKTqbT9bRfCnw {
333 NI Field0;
334 NimStringDesc* Field1;
335 NI32 Field2;
336 };
337 struct tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw {
338 NimStringDesc* fullPath;
339 NimStringDesc* projPath;
340 NimStringDesc* shortName;
341 tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* quotedName;
342 tyObject_RopeObj__OFzf0kSiPTcNreUIeJgWVA* quotedFullName;
343 tySequence__sM4lkSb7zS6F7OVMvW9cffQ* lines;
344 NimStringDesc* dirtyFile;
345 NimStringDesc* hash;
346 NIM_BOOL dirty;
347 };
348 struct tyTuple__QeWl6B6ffS4pU6WWrtcrDw {
349 NI Field0;
350 NimStringDesc* Field1;
351 };
352 typedef NU8 tySet_tyEnum_CfileFlag__Vl9c9ayddDuXiWtnWTsEYGsA;
353 struct tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg {
354 NimStringDesc* nimname;
355 NimStringDesc* cname;
356 NimStringDesc* obj;
357 tySet_tyEnum_CfileFlag__Vl9c9ayddDuXiWtnWTsEYGsA flags;
358 NimStringDesc* customArgs;
359 };
360 struct tySequence__tNFrR3kRuS1FSwuiLGoSSA {
361   TGenericSeq Sup;
362   tyTuple__z822nu9bFF1AlQnLrHjdwpA data[SEQ_DECL_SIZE];
363 };
364 struct tySequence__7lEisrXlQEzwtUKW5pzRCw {
365   TGenericSeq Sup;
366   tyTuple__xYhUhS7X82rKTqbT9bRfCnw data[SEQ_DECL_SIZE];
367 };
368 struct tySequence__Zi9cGbCWofbtABoHJ5RbLNQ {
369   TGenericSeq Sup;
370   tyObject_TFileInfo__GE3hAakXKOEpch4ap3zXAw data[SEQ_DECL_SIZE];
371 };
372 struct tySequence__4eRCaZmrYLLw2k30GPTiMw {
373   TGenericSeq Sup;
374   tyTuple__QeWl6B6ffS4pU6WWrtcrDw data[SEQ_DECL_SIZE];
375 };
376 struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
377   TGenericSeq Sup;
378   NimStringDesc* data[SEQ_DECL_SIZE];
379 };
380 struct tySequence__pK3qSsBZwdXd6qyUMkd5Jw {
381   TGenericSeq Sup;
382   tyObject_Cfile__i9cKq1ZGd1wgagjUEHLVFtg data[SEQ_DECL_SIZE];
383 };
384 struct tySequence__9aZVGG5Gtti9cC9bqRpXCtA3A {
385   TGenericSeq Sup;
386   tyObject_TType__facALICuu8zUj0hjvbTLFg* data[SEQ_DECL_SIZE];
387 };
388 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
389 static N_INLINE(void, nimZeroMem)(void* p, NI size);
390 static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size);
391 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toHumanStr__ast_5158)(tyEnum_TSymKind__cNCW9acsSznmEccl1fgQwkw kind);
392 static N_INLINE(NimStringDesc*, toFileLineCol__msgs_619)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info);
393 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toMsgFilename__msgs_602)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NI32 fileIdx);
394 static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
395 static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size);
396 static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
397 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
398 static N_INLINE(void, addInt__stdZprivateZdigitsutils_189)(NimStringDesc** result, NI x);
399 N_LIB_PRIVATE N_NIMCALL(void, addInt__stdZprivateZdigitsutils_167)(NimStringDesc** result, NI64 x);
400 N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
401 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
402 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
403 N_LIB_PRIVATE N_NIMCALL(tyObject_TType__facALICuu8zUj0hjvbTLFg*, skipTypes__ast_3735)(tyObject_TType__facALICuu8zUj0hjvbTLFg* t, tySet_tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag kinds);
404 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toHumanStr__ast_5188)(tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag kind);
405 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
406 N_LIB_PRIVATE N_NIMCALL(void, addDeclaredLoc__astmsgs_17)(NimStringDesc** result, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* sym);
407 N_LIB_PRIVATE N_NIMCALL(void, addDeclaredLoc__astmsgs_33)(NimStringDesc** result, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TType__facALICuu8zUj0hjvbTLFg* typ);
408 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_2, " [$1 declared in $2]", 20);
409 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_3, "(", 1);
410 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_4, ", ", 2);
411 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_5, ")", 1);
412 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_6, "field \'$#\' is not accessible for type \'$#\'", 42);
413 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_7, " [discriminant declared in $#]", 30);
414 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_8, " using \'$# = ", 13);
415 static NIM_CONST tySet_tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag TM__CwZLJRLFLWYZLf7meTG1cw_9 = {
416 0x10, 0xa9, 0xe9, 0x01, 0x00, 0x60, 0xa0, 0x10,
417 0x00}
418 ;
419 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_10, " [$1", 4);
420 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_11, " declared in ", 13);
421 STRING_LITERAL(TM__CwZLJRLFLWYZLf7meTG1cw_12, "]", 1);
N_INLINE(void,nimSetMem__systemZmemory_7)422 static N_INLINE(void, nimSetMem__systemZmemory_7)(void* a, int v, NI size) {
423 	void* T1_;
424 	T1_ = (void*)0;
425 	T1_ = memset(a, v, ((size_t) (size)));
426 }
N_INLINE(void,nimZeroMem)427 static N_INLINE(void, nimZeroMem)(void* p, NI size) {
428 	nimSetMem__systemZmemory_7(p, ((int) 0), size);
429 }
N_INLINE(void,nimCopyMem)430 static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
431 	void* T1_;
432 	T1_ = (void*)0;
433 	T1_ = memcpy(dest, source, ((size_t) (size)));
434 }
N_INLINE(void,copyMem__system_1727)435 static N_INLINE(void, copyMem__system_1727)(void* dest, void* source, NI size) {
436 	nimCopyMem(dest, source, size);
437 }
N_INLINE(void,appendString)438 static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
439 	{
440 		if (!!((src == ((NimStringDesc*) NIM_NIL)))) goto LA3_;
441 		copyMem__system_1727(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
442 		(*dest).Sup.len += (*src).Sup.len;
443 	}
444 	LA3_: ;
445 }
N_INLINE(void,addInt__stdZprivateZdigitsutils_189)446 static N_INLINE(void, addInt__stdZprivateZdigitsutils_189)(NimStringDesc** result, NI x) {
447 	addInt__stdZprivateZdigitsutils_167(result, ((NI64) (x)));
448 }
N_INLINE(NimStringDesc *,toFileLineCol__msgs_619)449 static N_INLINE(NimStringDesc*, toFileLineCol__msgs_619)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TLineInfo__WGx4rAexNXnczy1Avn646Q info) {
450 	NimStringDesc* result;
451 	NimStringDesc* T1_;
452 	result = NIM_NIL;
453 	T1_ = NIM_NIL;
454 	T1_ = toMsgFilename__msgs_602(conf, info.fileIndex);
455 	result = resizeString(result, (T1_ ? T1_->Sup.len : 0) + 0);
456 appendString(result, T1_);
457 	{
458 		if (!(((NI) 0) < ((NI) (info.line)))) goto LA4_;
459 		result = resizeString(result, 1);
460 appendString(result, ((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_3));
461 		addInt__stdZprivateZdigitsutils_189((&result), ((NI) (info.line)));
462 		{
463 			if (!(((NI) 0) < (NI)(((NI) (info.col)) + ((NI) 1)))) goto LA8_;
464 			result = resizeString(result, 2);
465 appendString(result, ((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_4));
466 			addInt__stdZprivateZdigitsutils_189((&result), (NI)(((NI) (info.col)) + ((NI) 1)));
467 		}
468 		LA8_: ;
469 		result = resizeString(result, 1);
470 appendString(result, ((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_5));
471 	}
472 	LA4_: ;
473 	return result;
474 }
N_NIMCALL(void,addDeclaredLoc__astmsgs_17)475 N_LIB_PRIVATE N_NIMCALL(void, addDeclaredLoc__astmsgs_17)(NimStringDesc** result, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* sym) {
476 	tyArray__Re75IspeoxXy2oCZHwcRrA T1_;
477 	NimStringDesc* T2_;
478 	nimZeroMem((void*)T1_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
479 	T1_[0] = toHumanStr__ast_5158((*sym).kind);
480 	T1_[1] = toFileLineCol__msgs_619(conf, (*sym).info);
481 	T2_ = NIM_NIL;
482 	T2_ = nsuFormatOpenArray(((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_2), T1_, 2);
483 	unsureAsgnRef((void**) (&(*result)), resizeString((*result), (T2_ ? T2_->Sup.len : 0) + 0));
484 appendString((*result), T2_);
485 }
N_NIMCALL(NimStringDesc *,genFieldDefect__astmsgs_61)486 N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, genFieldDefect__astmsgs_61)(tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, NimStringDesc* field, tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* disc) {
487 	NimStringDesc* result;
488 	NimStringDesc* obj;
489 	tyArray__Re75IspeoxXy2oCZHwcRrA T1_;
490 	NimStringDesc* T8_;
491 	result = NIM_NIL;
492 	obj = (*(*(*disc).owner).name).s;
493 	nimZeroMem((void*)T1_, sizeof(tyArray__Re75IspeoxXy2oCZHwcRrA));
494 	T1_[0] = copyString(field);
495 	T1_[1] = copyString(obj);
496 	result = nsuFormatOpenArray(((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_6), T1_, 2);
497 	{
498 		NimStringDesc* T6_;
499 		NimStringDesc* T7_;
500 		if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 36))&63U)))!=0)) goto LA4_;
501 		T6_ = NIM_NIL;
502 		T6_ = toFileLineCol__msgs_619(conf, (*disc).info);
503 		T7_ = NIM_NIL;
504 		T7_ = nsuFormatSingleElem(((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_7), T6_);
505 		result = resizeString(result, (T7_ ? T7_->Sup.len : 0) + 0);
506 appendString(result, T7_);
507 	}
508 	LA4_: ;
509 	T8_ = NIM_NIL;
510 	T8_ = nsuFormatSingleElem(((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_8), (*(*disc).name).s);
511 	result = resizeString(result, (T8_ ? T8_->Sup.len : 0) + 0);
512 appendString(result, T8_);
513 	return result;
514 }
N_NIMCALL(void,addDeclaredLoc__astmsgs_33)515 N_LIB_PRIVATE N_NIMCALL(void, addDeclaredLoc__astmsgs_33)(NimStringDesc** result, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TType__facALICuu8zUj0hjvbTLFg* typ) {
516 	tyObject_TType__facALICuu8zUj0hjvbTLFg* typ_2;
517 	NimStringDesc* T1_;
518 	NimStringDesc* T2_;
519 	typ_2 = skipTypes__ast_3735(typ, TM__CwZLJRLFLWYZLf7meTG1cw_9);
520 	T1_ = NIM_NIL;
521 	T1_ = toHumanStr__ast_5188((*typ_2).kind);
522 	T2_ = NIM_NIL;
523 	T2_ = nsuFormatSingleElem(((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_10), T1_);
524 	unsureAsgnRef((void**) (&(*result)), resizeString((*result), (T2_ ? T2_->Sup.len : 0) + 0));
525 appendString((*result), T2_);
526 	{
527 		NimStringDesc* T7_;
528 		NimStringDesc* T8_;
529 		if (!!(((*typ_2).sym == ((tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ*) NIM_NIL)))) goto LA5_;
530 		T7_ = NIM_NIL;
531 		T8_ = NIM_NIL;
532 		T8_ = toFileLineCol__msgs_619(conf, (*(*typ_2).sym).info);
533 		T7_ = rawNewString((T8_ ? T8_->Sup.len : 0) + 13);
534 appendString(T7_, ((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_11));
535 appendString(T7_, T8_);
536 		unsureAsgnRef((void**) (&(*result)), resizeString((*result), (T7_ ? T7_->Sup.len : 0) + 0));
537 appendString((*result), T7_);
538 	}
539 	LA5_: ;
540 	unsureAsgnRef((void**) (&(*result)), resizeString((*result), 1));
541 appendString((*result), ((NimStringDesc*) &TM__CwZLJRLFLWYZLf7meTG1cw_12));
542 }
N_NIMCALL(void,addDeclaredLocMaybe__astmsgs_21)543 N_LIB_PRIVATE N_NIMCALL(void, addDeclaredLocMaybe__astmsgs_21)(NimStringDesc** result, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* sym) {
544 	{
545 		NIM_BOOL T3_;
546 		T3_ = (NIM_BOOL)0;
547 		T3_ = (((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 36))&63U)))!=0);
548 		if (!(T3_)) goto LA4_;
549 		T3_ = !((sym == ((tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ*) NIM_NIL)));
550 		LA4_: ;
551 		if (!T3_) goto LA5_;
552 		addDeclaredLoc__astmsgs_17(result, conf, sym);
553 	}
554 	LA5_: ;
555 }
N_NIMCALL(tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ *,typSym__astmsgs_5)556 N_LIB_PRIVATE N_NIMCALL(tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ*, typSym__astmsgs_5)(tyObject_TType__facALICuu8zUj0hjvbTLFg* t) {
557 	tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ* result;
558 	result = NIM_NIL;
559 	result = (*t).sym;
560 	{
561 		NIM_BOOL T3_;
562 		T3_ = (NIM_BOOL)0;
563 		T3_ = (result == ((tyObject_TSym__nnJKJFyjDGi5mnv8jwfTGQ*) NIM_NIL));
564 		if (!(T3_)) goto LA4_;
565 		T3_ = ((*t).kind == ((tyEnum_TTypeKind__9a3YiReNVD0IJHWFKgXRe9ag) 11));
566 		LA4_: ;
567 		if (!T3_) goto LA5_;
568 		result = (*(*t).sons->data[((NI) 0)]).sym;
569 	}
570 	LA5_: ;
571 	return result;
572 }
N_NIMCALL(void,addDeclaredLocMaybe__astmsgs_51)573 N_LIB_PRIVATE N_NIMCALL(void, addDeclaredLocMaybe__astmsgs_51)(NimStringDesc** result, tyObject_ConfigRefcolonObjectType___LaK09ayL9alwKUad7rts0rTw* conf, tyObject_TType__facALICuu8zUj0hjvbTLFg* typ) {
574 	{
575 		if (!(((*conf).globalOptions &((NU64)1<<((NU)(((tyEnum_TGlobalOption__RAfAEZqjnKMDumgyKKc1qw) 36))&63U)))!=0)) goto LA3_;
576 		addDeclaredLoc__astmsgs_33(result, conf, typ);
577 	}
578 	LA3_: ;
579 }
580