-
Notifications
You must be signed in to change notification settings - Fork 5
/
libcomelang-gc.c.c
5711 lines (5422 loc) · 212 KB
/
libcomelang-gc.c.c
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// source head
typedef unsigned long int size_t;
typedef long ssize_t;
typedef long off_t;
typedef struct _IO_FILE FILE;
typedef __builtin_va_list va_list;
typedef __builtin_va_list __isoc_va_list;
union _G_fpos64_t
{
char __opaque[16];
long long __lldata;
double __align;
};
typedef union _G_fpos64_t fpos_t;
extern struct _IO_FILE* stdin;
extern struct _IO_FILE* stdout;
extern struct _IO_FILE* stderr;
typedef long (*cookie_read_function_t)(void*,char*,unsigned long int);
typedef long (*cookie_write_function_t)(void*,const char*,unsigned long int);
typedef int (*cookie_seek_function_t)(void*,long*,int);
typedef int (*cookie_close_function_t)(void*);
struct _IO_cookie_io_functions_t
{
long (*read)(void*,char*,unsigned long int);
long (*write)(void*,const char*,unsigned long int);
int (*seek)(void*,long*,int);
int (*close)(void*);
};
typedef struct _IO_cookie_io_functions_t cookie_io_functions_t;
typedef unsigned int wchar_t;
struct anonymous_typeX1
{
int quot;
int rem;
};
typedef struct anonymous_typeX1 div_t;
struct anonymous_typeX2
{
long quot;
long rem;
};
typedef struct anonymous_typeX2 ldiv_t;
struct anonymous_typeX3
{
long long quot;
long long rem;
};
typedef struct anonymous_typeX3 lldiv_t;
struct __locale_struct;
typedef struct __locale_struct* locale_t;
struct lconv
{
char* decimal_point;
char* thousands_sep;
char* grouping;
char* int_curr_symbol;
char* currency_symbol;
char* mon_decimal_point;
char* mon_thousands_sep;
char* mon_grouping;
char* positive_sign;
char* negative_sign;
char int_frac_digits;
char frac_digits;
char p_cs_precedes;
char p_sep_by_space;
char n_cs_precedes;
char n_sep_by_space;
char p_sign_posn;
char n_sign_posn;
char int_p_cs_precedes;
char int_p_sep_by_space;
char int_n_cs_precedes;
char int_n_sep_by_space;
char int_p_sign_posn;
char int_n_sign_posn;
};
extern char* program_invocation_short_name;
extern char* program_invocation_name;
typedef void* any;
typedef char* string;
extern void* wildcard;
extern _Bool gComeGCLib;
extern void* gComeFunResultObject;
struct buffer
{
char* buf;
int len;
int size;
};
struct smart_pointer$1char
{
struct buffer* memory;
char* p;
};
struct smart_pointer$1short
{
struct buffer* memory;
short* p;
};
struct smart_pointer$1int
{
struct buffer* memory;
int* p;
};
struct smart_pointer$1long
{
struct buffer* memory;
long* p;
};
struct smart_pointer$1charp
{
struct buffer* memory;
char** p;
};
struct smart_pointer$1float
{
struct buffer* memory;
float* p;
};
struct smart_pointer$1double
{
struct buffer* memory;
double* p;
};
struct list_item$1char
{
char item;
struct list_item$1char* prev;
struct list_item$1char* next;
};
struct list$1char
{
struct list_item$1char* head;
struct list_item$1char* tail;
int len;
struct list_item$1char* it;
};
struct list_item$1charp
{
char* item;
struct list_item$1charp* prev;
struct list_item$1charp* next;
};
struct list$1charp
{
struct list_item$1charp* head;
struct list_item$1charp* tail;
int len;
struct list_item$1charp* it;
};
struct list_item$1short
{
short item;
struct list_item$1short* prev;
struct list_item$1short* next;
};
struct list$1short
{
struct list_item$1short* head;
struct list_item$1short* tail;
int len;
struct list_item$1short* it;
};
struct list_item$1int
{
int item;
struct list_item$1int* prev;
struct list_item$1int* next;
};
struct list$1int
{
struct list_item$1int* head;
struct list_item$1int* tail;
int len;
struct list_item$1int* it;
};
struct list_item$1long
{
long item;
struct list_item$1long* prev;
struct list_item$1long* next;
};
struct list$1long
{
struct list_item$1long* head;
struct list_item$1long* tail;
int len;
struct list_item$1long* it;
};
struct list_item$1float
{
float item;
struct list_item$1float* prev;
struct list_item$1float* next;
};
struct list$1float
{
struct list_item$1float* head;
struct list_item$1float* tail;
int len;
struct list_item$1float* it;
};
struct list_item$1double
{
double item;
struct list_item$1double* prev;
struct list_item$1double* next;
};
struct list$1double
{
struct list_item$1double* head;
struct list_item$1double* tail;
int len;
struct list_item$1double* it;
};
struct vector$1char
{
char* items;
int len;
int size;
int it;
};
struct vector$1charp
{
char** items;
int len;
int size;
int it;
};
struct vector$1short
{
short* items;
int len;
int size;
int it;
};
struct vector$1int
{
int* items;
int len;
int size;
int it;
};
struct vector$1long
{
long* items;
int len;
int size;
int it;
};
struct vector$1float
{
float* items;
int len;
int size;
int it;
};
struct vector$1double
{
double* items;
int len;
int size;
int it;
};
struct integer
{
long value;
};
struct floating
{
double value;
};
struct list_item$1charph
{
char* item;
struct list_item$1charph* prev;
struct list_item$1charph* next;
};
struct list$1charph
{
struct list_item$1charph* head;
struct list_item$1charph* tail;
int len;
struct list_item$1charph* it;
};
extern _Bool gComeDebug;
extern _Bool gComeGC;
extern _Bool gComeC;
extern _Bool gComeStr;
extern _Bool gComePthread;
extern _Bool gComeNet;
extern _Bool gComeMalloc;
extern _Bool gCommonHeader;
extern int gComeDebugStackFrameID;
struct sType;
struct sClass;
struct tuple2$2charphsTypeph
{
char* v1;
struct sType* v2;
};
struct list_item$1tuple2$2charphsTypephph
{
struct tuple2$2charphsTypeph* item;
struct list_item$1tuple2$2charphsTypephph* prev;
struct list_item$1tuple2$2charphsTypephph* next;
};
struct list$1tuple2$2charphsTypephph
{
struct list_item$1tuple2$2charphsTypephph* head;
struct list_item$1tuple2$2charphsTypephph* tail;
int len;
struct list_item$1tuple2$2charphsTypephph* it;
};
struct sClass
{
_Bool mStruct;
_Bool mFloat;
_Bool mUnion;
_Bool mGenerics;
_Bool mMethodGenerics;
_Bool mEnum;
_Bool mProtocol;
_Bool mNumber;
char* mName;
int mGenericsNum;
int mMethodGenericsNum;
struct list$1tuple2$2charphsTypephph* mFields;
_Bool mOutputed;
_Bool mOutputed2;
char* mDeclareSName;
_Bool mNobodyStruct;
char* mParentClassName;
};
struct sInfo;
struct sNode
{
void* _protocol_obj;
void (*finalize)(void*);
void* (*clone)(void*);
_Bool (*compile)(void*,struct sInfo*);
int (*sline)(void*);
char* (*sname)(void*);
_Bool (*terminated)(void*);
char* (*kind)(void*);
};
struct sNodeBase
{
int sline;
char* sname;
};
struct tuple1$1sTypeph
{
struct sType* v1;
};
struct list_item$1sTypeph
{
struct sType* item;
struct list_item$1sTypeph* prev;
struct list_item$1sTypeph* next;
};
struct list$1sTypeph
{
struct list_item$1sTypeph* head;
struct list_item$1sTypeph* tail;
int len;
struct list_item$1sTypeph* it;
};
struct list_item$1sNodeph
{
struct sNode* item;
struct list_item$1sNodeph* prev;
struct list_item$1sNodeph* next;
};
struct list$1sNodeph
{
struct list_item$1sNodeph* head;
struct list_item$1sNodeph* tail;
int len;
struct list_item$1sNodeph* it;
};
struct sType
{
struct sClass* mClass;
struct tuple1$1sTypeph* mNoSolvedGenericsType;
struct tuple1$1sTypeph* mOriginalLoadVarType;
struct tuple1$1sTypeph* mNoExceptionType;
char* mGenericsName;
struct list$1sTypeph* mGenericsTypes;
struct list$1sNodeph* mArrayNum;
_Bool mOmitArrayNum;
struct list$1sTypeph* mParamTypes;
struct list$1charph* mParamNames;
struct tuple1$1sTypeph* mResultType;
_Bool mVarArgs;
struct sNode* mAlignas;
_Bool mUnsigned;
_Bool mShort;
_Bool mLong;
_Bool mLongLong;
_Bool mConstant;
_Bool mRegister;
_Bool mVolatile;
_Bool mStatic;
_Bool mUniq;
_Bool mRecord;
_Bool mExtern;
_Bool mRestrict;
_Bool mImmutable;
_Bool mHeap;
_Bool mDummyHeap;
_Bool mDelegate;
_Bool mShare;
_Bool mClone;
_Bool mNoHeap;
_Bool mNoCallingDestructor;
_Bool mRefference;
_Bool mException;
int mPointerNum;
int mOriginalTypeNamePointerNum;
int mOriginalTypeNameHeap;
int mNoArrayPointerNum;
int mTypedefOriginalPointerNum;
struct sNode* mSizeNum;
int mFunctionPointerNum;
unsigned int mDynamicArrayNum;
unsigned int mTypeOfExpression;
char* mOriginalTypeName;
int mOriginalPointerNum;
_Bool mFunctionParam;
_Bool mAllocaValue;
_Bool mGenericsStruct;
_Bool mSolvedGenericsName;
_Bool mComeMemCore;
_Bool mInline;
_Bool mNullValue;
_Bool mGuardValue;
char* mAsmName;
_Bool mArrayPointerType;
_Bool mLambdaArray;
_Bool mNoNumberArray;
_Bool mTypedef;
_Bool mMultipleTypes;
_Bool mOriginIsArray;
};
struct sVar;
struct sRightValueObject;
struct CVALUE
{
char* c_value;
struct sType* type;
struct sVar* var;
struct sRightValueObject* right_value_objects;
char* c_value_without_right_value_objects;
};
struct sVar
{
char* mName;
char* mCValueName;
struct sType* mType;
int mBlockLevel;
_Bool mGlobal;
_Bool mAllocaValue;
_Bool mFunctionParam;
_Bool mNoFree;
char* mFunName;
};
struct sVarTable;
struct sBlock;
struct sFun
{
char* mName;
struct sType* mResultType;
struct list$1sTypeph* mParamTypes;
struct list$1charph* mParamNames;
struct list$1charph* mParamDefaultParametors;
struct sType* mLambdaType;
struct sBlock* mBlock;
_Bool mExternal;
_Bool mVarArgs;
struct buffer* mSource;
struct buffer* mSourceHead;
struct buffer* mSourceHead2;
struct buffer* mSourceDefer;
_Bool mStatic;
char* mComeHeader;
_Bool mCloner;
char* mDeclareSName;
_Bool mNoResultType;
_Bool mDeclaredResultObject;
_Bool no_output_come_code2;
};
struct sGenericsFun
{
struct sType* mImplType;
struct list$1charph* mGenericsTypeNames;
struct list$1charph* mMethodGenericsTypeNames;
char* mName;
struct sType* mResultType;
struct list$1sTypeph* mParamTypes;
struct list$1charph* mParamNames;
struct list$1charph* mParamDefaultParametors;
char* mBlock;
int mSLine;
_Bool mVarArgs;
char* mGenericsSName;
int mGenericsSLine;
};
struct sModule
{
struct buffer* mSourceHead;
struct buffer* mSourceHead2;
struct buffer* mSourceHead3;
struct buffer* mSource;
char* mLastCode;
char* mLastCode2;
char* mLastCode3;
struct buffer* mHeader;
};
struct sVarTable;
struct map$2charphsVarph
{
char** keys;
_Bool* item_existance;
struct sVar** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct sVarTable
{
struct map$2charphsVarph* mVars;
_Bool mGlobal;
struct sVarTable* mParent;
int mID;
};
struct sBlock
{
struct list$1sNodeph* mNodes;
struct sVarTable* mVarTable;
_Bool mOmitSemicolon;
};
struct sRightValueObject
{
struct sType* mType;
char* mVarName;
char* mFunName;
_Bool mFreed;
int mID;
int mBlockLevel;
_Bool mStored;
_Bool mDecrementRefCount;
};
struct sClassModule
{
char* mName;
char* mText;
struct list$1charph* mParams;
char* mSName;
int mSLine;
};
struct map$2charphsFunph
{
char** keys;
_Bool* item_existance;
struct sFun** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct map$2charphsGenericsFunph
{
char** keys;
_Bool* item_existance;
struct sGenericsFun** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct map$2charphsClassph
{
char** keys;
_Bool* item_existance;
struct sClass** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct map$2charphsClassModuleph
{
char** keys;
_Bool* item_existance;
struct sClassModule** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct map$2charphsTypeph
{
char** keys;
_Bool* item_existance;
struct sType** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct list_item$1sRightValueObjectph
{
struct sRightValueObject* item;
struct list_item$1sRightValueObjectph* prev;
struct list_item$1sRightValueObjectph* next;
};
struct list$1sRightValueObjectph
{
struct list_item$1sRightValueObjectph* head;
struct list_item$1sRightValueObjectph* tail;
int len;
struct list_item$1sRightValueObjectph* it;
};
struct list_item$1CVALUEph
{
struct CVALUE* item;
struct list_item$1CVALUEph* prev;
struct list_item$1CVALUEph* next;
};
struct list$1CVALUEph
{
struct list_item$1CVALUEph* head;
struct list_item$1CVALUEph* tail;
int len;
struct list_item$1CVALUEph* it;
};
struct map$2charphcharph
{
char** keys;
_Bool* item_existance;
char** items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct list_item$1sVarph
{
struct sVar* item;
struct list_item$1sVarph* prev;
struct list_item$1sVarph* next;
};
struct list$1sVarph
{
struct list_item$1sVarph* head;
struct list_item$1sVarph* tail;
int len;
struct list_item$1sVarph* it;
};
struct map$2charphint
{
char** keys;
_Bool* item_existance;
int* items;
int size;
int len;
struct list$1charp* key_list;
int it;
};
struct sInfo
{
char* p;
char* head;
struct buffer* original_source;
struct buffer* source;
char* sname;
char* base_sname;
int sline;
int err_num;
char* err_line;
char* clang_option;
char* cpp_option;
char* linker_option;
_Bool no_output_err;
_Bool no_output_come_code;
_Bool no_output_come_code2;
struct sFun* come_fun;
char* come_fun_name;
struct sFun* caller_fun;
int caller_line;
char* caller_sname;
int block_level;
struct map$2charphsFunph* funcs;
struct map$2charphsGenericsFunph* generics_funcs;
struct map$2charphsClassph* classes;
struct map$2charphsClassModuleph* modules;
struct map$2charphsTypeph* types;
struct map$2charphsClassph* generics_classes;
struct sModule* module;
struct sType* type;
struct list$1sRightValueObjectph* right_value_objects;
struct sType* generics_type;
struct list$1sTypeph* method_generics_types;
struct list$1CVALUEph* stack;
struct sType* come_function_result_type;
struct sType* come_method_block_function_result_type;
struct sVarTable* lv_table;
struct sVarTable* gv_table;
_Bool comma_instead_of_semicolon;
_Bool no_comma;
_Bool no_assign;
_Bool no_label;
_Bool last_statment_is_return;
struct list$1charph* generics_type_names;
struct list$1charph* method_generics_type_names;
struct sType* impl_type;
int current_stack_num;
int num_method_block;
struct sClass* current_stack_frame_struct;
struct list$1sTypeph* param_types;
struct list$1charph* param_names;
_Bool define_struct;
_Bool in_typedef;
_Bool in_loop;
char* output_file_name;
struct sVarTable* current_loop_vtable;
_Bool verbose;
_Bool output_header_file;
int num_current_stack;
int num_source_files;
int max_source_files;
_Bool without_semicolon;
_Bool writing_source_file_position;
struct sType* function_result_type;
_Bool in_class;
struct map$2charphcharph* module_params;
_Bool constructor_;
struct sClass* defining_class;
_Bool array_initializer;
_Bool struct_initializer;
_Bool va_arg;
_Bool in_fun_param;
_Bool inhibits_output_code;
_Bool inhibits_output_code2;
_Bool in_generics_fun;
_Bool in_clone_object;
_Bool in_conditional_operator;
char* if_result_var_name;
struct list$1sVarph* match_it_var;
struct list$1int* sline_stack;
int sline_top;
_Bool new_;
struct sFun* calling_fun;
struct map$2charphint* outputed_class;
};
struct tuple2$2sTypephcharph
{
struct sType* v1;
char* v2;
};
struct tuple2$2charphsNodeph
{
char* v1;
struct sNode* v2;
};
struct list_item$1tuple2$2charphsNodephph
{
struct tuple2$2charphsNodeph* item;
struct list_item$1tuple2$2charphsNodephph* prev;
struct list_item$1tuple2$2charphsNodephph* next;
};
struct list$1tuple2$2charphsNodephph
{
struct list_item$1tuple2$2charphsNodephph* head;
struct list_item$1tuple2$2charphsNodephph* tail;
int len;
struct list_item$1tuple2$2charphsNodephph* it;
};
struct tuple3$3sTypephcharphbool
{
struct sType* v1;
char* v2;
_Bool v3;
};
struct tuple4$4list$1sTypephphlist$1charphphlist$1charphphbool
{
struct list$1sTypeph* v1;
struct list$1charph* v2;
struct list$1charph* v3;
_Bool v4;
};
struct tuple2$2sFunpcharph
{
struct sFun* v1;
char* v2;
};
struct tuple3$3sTypephcharphsNodeph
{
struct sType* v1;
char* v2;
struct sNode* v3;
};
struct list_item$1tuple3$3sTypephcharphsNodephph
{
struct tuple3$3sTypephcharphsNodeph* item;
struct list_item$1tuple3$3sTypephcharphsNodephph* prev;
struct list_item$1tuple3$3sTypephcharphsNodephph* next;
};
struct list$1tuple3$3sTypephcharphsNodephph
{
struct list_item$1tuple3$3sTypephcharphsNodephph* head;
struct list_item$1tuple3$3sTypephcharphsNodephph* tail;
int len;
struct list_item$1tuple3$3sTypephcharphsNodephph* it;
};
extern struct list$1sRightValueObjectph* gExceptionRightValueObjects;
struct anonymous_typeX4
{
long long __ll;
long double __ld;
};
typedef struct anonymous_typeX4 max_align_t;
typedef long ptrdiff_t;
typedef void* GC_PTR;
typedef unsigned long int GC_word;
typedef long GC_signed_word;
extern unsigned long int GC_gc_no;
typedef void* (*GC_oom_func)(unsigned long int);
extern void* (*GC_oom_fn)(unsigned long int);
typedef void (*GC_on_heap_resize_proc)(unsigned long int);
extern void (*GC_on_heap_resize)(unsigned long int);
enum anonymous_typeY5 { GC_EVENT_START
,GC_EVENT_MARK_START
,GC_EVENT_MARK_END
,GC_EVENT_RECLAIM_START
,GC_EVENT_RECLAIM_END
,GC_EVENT_END
,GC_EVENT_PRE_STOP_WORLD
,GC_EVENT_POST_STOP_WORLD
,GC_EVENT_PRE_START_WORLD
,GC_EVENT_POST_START_WORLD
,GC_EVENT_THREAD_SUSPENDED
,GC_EVENT_THREAD_UNSUSPENDED
};
typedef enum anonymous_typeY5 GC_EventType;
typedef void (*GC_on_collection_event_proc)(enum anonymous_typeY5);
extern int GC_find_leak;
extern int GC_all_interior_pointers;
extern int GC_finalize_on_demand;
extern int GC_java_finalization;
typedef void (*GC_finalizer_notifier_proc)();
extern void (*GC_finalizer_notifier)();
extern int GC_dont_gc;
extern int GC_dont_expand;
extern int GC_use_entire_heap;
extern int GC_full_freq;
extern unsigned long int GC_non_gc_bytes;
extern int GC_no_dls;
extern unsigned long int GC_free_space_divisor;
extern unsigned long int GC_max_retries;
extern char* GC_stackbottom;
extern int GC_dont_precollect;
extern unsigned long int GC_time_limit;
struct GC_timeval_s
{
unsigned long int tv_ms;
unsigned long int tv_nsec;
};
typedef int (*GC_stop_func)();
struct GC_prof_stats_s
{
unsigned long int heapsize_full;
unsigned long int free_bytes_full;
unsigned long int unmapped_bytes;
unsigned long int bytes_allocd_since_gc;
unsigned long int allocd_bytes_before_gc;
unsigned long int non_gc_bytes;
unsigned long int gc_no;
unsigned long int markers_m1;
unsigned long int bytes_reclaimed_since_gc;
unsigned long int reclaimed_bytes_before_gc;
unsigned long int expl_freed_bytes_since_gc;
unsigned long int obtained_from_os_bytes;
};
typedef void (*GC_finalization_proc)(void*,void*);
enum anonymous_typeY6 { GC_TOGGLE_REF_DROP
,GC_TOGGLE_REF_STRONG
,GC_TOGGLE_REF_WEAK
};
typedef enum anonymous_typeY6 GC_ToggleRefStatus;
typedef enum anonymous_typeY6 (*GC_toggleref_func)(void*);
typedef void (*GC_await_finalize_proc)(void*);
typedef void (*GC_warn_proc)(char*,unsigned long int);
typedef void (*GC_abort_func)(const char*);
typedef unsigned long int GC_hidden_pointer;
typedef void* (*GC_fn_type)(void*);
struct GC_stack_base
{
void* mem_base;
};
typedef void* (*GC_stack_base_func)(struct GC_stack_base*,void*);
extern void (*GC_same_obj_print_proc)(void*,void*);
extern void (*GC_is_valid_displacement_print_proc)(void*);
extern void (*GC_is_visible_print_proc)(void*);
typedef int (*GC_has_static_roots_func)(const char*,void*,unsigned long int);
struct sMemHeaderTiny
{
unsigned long int size;
int allocated;
struct sMemHeaderTiny* next;
struct sMemHeaderTiny* prev;
struct sMemHeaderTiny* free_next;
};
struct sMemHeader
{
unsigned long int size;
int allocated;
struct sMemHeader* next;
struct sMemHeader* prev;
struct sMemHeader* free_next;
char* class_name;
char* sname[16];
int sline[16];
int id[16];
};
struct sHeapPage
{
char** mPages;
int mSizePages;
char* mTop;
int mCurrentPages;
struct sMemHeaderTiny* mFreeMem[2048*2];
};
// header function
struct _IO_FILE* fopen(const char* anonymous_var_nameX1, const char* anonymous_var_nameX2);
struct _IO_FILE* freopen(const char* anonymous_var_nameX3, const char* anonymous_var_nameX4, struct _IO_FILE* anonymous_var_nameX5);
int fclose(struct _IO_FILE* anonymous_var_nameX6);
int remove(const char* anonymous_var_nameX7);
int rename(const char* anonymous_var_nameX8, const char* anonymous_var_nameX9);
int feof(struct _IO_FILE* anonymous_var_nameX10);
int ferror(struct _IO_FILE* anonymous_var_nameX11);
int fflush(struct _IO_FILE* anonymous_var_nameX12);
void clearerr(struct _IO_FILE* anonymous_var_nameX13);
int fseek(struct _IO_FILE* anonymous_var_nameX14, long anonymous_var_nameX15, int anonymous_var_nameX16);
long ftell(struct _IO_FILE* anonymous_var_nameX17);
void rewind(struct _IO_FILE* anonymous_var_nameX18);
int fgetpos(struct _IO_FILE* anonymous_var_nameX19, union _G_fpos64_t* anonymous_var_nameX20);
int fsetpos(struct _IO_FILE* anonymous_var_nameX21, const union _G_fpos64_t* anonymous_var_nameX22);
unsigned long int fread(void* anonymous_var_nameX23, unsigned long int anonymous_var_nameX24, unsigned long int anonymous_var_nameX25, struct _IO_FILE* anonymous_var_nameX26);
unsigned long int fwrite(const void* anonymous_var_nameX27, unsigned long int anonymous_var_nameX28, unsigned long int anonymous_var_nameX29, struct _IO_FILE* anonymous_var_nameX30);
int fgetc(struct _IO_FILE* anonymous_var_nameX31);
int getc(struct _IO_FILE* anonymous_var_nameX32);
int getchar();
int ungetc(int anonymous_var_nameX33, struct _IO_FILE* anonymous_var_nameX34);
int fputc(int anonymous_var_nameX35, struct _IO_FILE* anonymous_var_nameX36);
int putc(int anonymous_var_nameX37, struct _IO_FILE* anonymous_var_nameX38);
int putchar(int anonymous_var_nameX39);
char* fgets(char* anonymous_var_nameX40, int anonymous_var_nameX41, struct _IO_FILE* anonymous_var_nameX42);
int fputs(const char* anonymous_var_nameX43, struct _IO_FILE* anonymous_var_nameX44);
int puts(const char* anonymous_var_nameX45);
int printf(const char* anonymous_var_nameX46, ...);
int fprintf(struct _IO_FILE* anonymous_var_nameX47, const char* anonymous_var_nameX48, ...);
int sprintf(char* anonymous_var_nameX49, const char* anonymous_var_nameX50, ...);
int snprintf(char* anonymous_var_nameX51, unsigned long int anonymous_var_nameX52, const char* anonymous_var_nameX53, ...);
int vprintf(const char* anonymous_var_nameX54, va_list anonymous_var_nameX55);
int vfprintf(struct _IO_FILE* anonymous_var_nameX56, const char* anonymous_var_nameX57, va_list anonymous_var_nameX58);
int vsprintf(char* anonymous_var_nameX59, const char* anonymous_var_nameX60, va_list anonymous_var_nameX61);
int vsnprintf(char* anonymous_var_nameX62, unsigned long int anonymous_var_nameX63, const char* anonymous_var_nameX64, va_list anonymous_var_nameX65);
int scanf(const char* anonymous_var_nameX66, ...);
int fscanf(struct _IO_FILE* anonymous_var_nameX67, const char* anonymous_var_nameX68, ...);
int sscanf(const char* anonymous_var_nameX69, const char* anonymous_var_nameX70, ...);
int vscanf(const char* anonymous_var_nameX71, va_list anonymous_var_nameX72);
int vfscanf(struct _IO_FILE* anonymous_var_nameX73, const char* anonymous_var_nameX74, va_list anonymous_var_nameX75);
int vsscanf(const char* anonymous_var_nameX76, const char* anonymous_var_nameX77, va_list anonymous_var_nameX78);
void perror(const char* anonymous_var_nameX79);
int setvbuf(struct _IO_FILE* anonymous_var_nameX80, char* anonymous_var_nameX81, int anonymous_var_nameX82, unsigned long int anonymous_var_nameX83);
void setbuf(struct _IO_FILE* anonymous_var_nameX84, char* anonymous_var_nameX85);
char* tmpnam(char* anonymous_var_nameX86);
struct _IO_FILE* tmpfile();
struct _IO_FILE* fmemopen(void* anonymous_var_nameX87, unsigned long int anonymous_var_nameX88, const char* anonymous_var_nameX89);
struct _IO_FILE* open_memstream(char** anonymous_var_nameX90, unsigned long int* anonymous_var_nameX91);
struct _IO_FILE* fdopen(int anonymous_var_nameX92, const char* anonymous_var_nameX93);
struct _IO_FILE* popen(const char* anonymous_var_nameX94, const char* anonymous_var_nameX95);
int pclose(struct _IO_FILE* anonymous_var_nameX96);
int fileno(struct _IO_FILE* anonymous_var_nameX97);
int fseeko(struct _IO_FILE* anonymous_var_nameX98, long anonymous_var_nameX99, int anonymous_var_nameX100);
long ftello(struct _IO_FILE* anonymous_var_nameX101);
int dprintf(int anonymous_var_nameX102, const char* anonymous_var_nameX103, ...);
int vdprintf(int anonymous_var_nameX104, const char* anonymous_var_nameX105, va_list anonymous_var_nameX106);
void flockfile(struct _IO_FILE* anonymous_var_nameX107);
int ftrylockfile(struct _IO_FILE* anonymous_var_nameX108);
void funlockfile(struct _IO_FILE* anonymous_var_nameX109);
int getc_unlocked(struct _IO_FILE* anonymous_var_nameX110);
int getchar_unlocked();
int putc_unlocked(int anonymous_var_nameX111, struct _IO_FILE* anonymous_var_nameX112);
int putchar_unlocked(int anonymous_var_nameX113);