-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathoutput.c
More file actions
149 lines (123 loc) · 2.51 KB
/
Copy pathoutput.c
File metadata and controls
149 lines (123 loc) · 2.51 KB
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
#include "output.h"
#include "string/string.h"
char* heyo(){
int a = (int){};
return "Value";
}
bool credbuild(){
redb_mod module = new_module("cred");
set_name(&module, "credgen");
set_target(&module, target_native);
redb_mod_source_all(&module, ".cred");
return redb_mod_cred_compile(module);
switch (hello){
case 1: {print("1");} break;
case 2: {print("22");} break;
case 3: {print("3");} break;
}
}
int a(){
chunk_array_t* testarr = 0;
char* ly = "like";
int test = 0;
testarr = chunk_array_create(12, sizeof(int));
int x = *(int*)chunk_array_get(testarr, 0);
chunk_array_push(testarr, 0);
}
void draw(int x, int y, int color, int overwrite){
int b = 0;
}
void c(int x){
int l = (int){};
if (x){
return 0;
}
}
void print(){
}
int t = u + i;
char* test_enum_strings[] = {
[test_enum_one] = "one",
[test_enum_two] = "two",
[test_enum_three] = "three",
};
test_enum test_enum_from_string(char * val){
if (!strcmp("one", val)){
return test_enum_one;
} else if (!strcmp("two", val)){
return test_enum_two;
} else if (!strcmp("three", val)){
return test_enum_three;
}return 0;
}
int hello_func(hello instance, int rule, Token elem){
if (instance.func){
return instance.func(instance, rule, elem);
}
return (int){};
}
void hello_test(hello instance){
if (instance.test){
return instance.test(instance);
}
}
void testType_func(hello interf, int rule, Token elem){
testType *instance = instance.ptr;
int a = 0;
}
void testType_test(hello interf){
testType *instance = instance.ptr;
print("Test succeeded %i", instance->prop1);
}
void testType_helper(hello interf){
testType *instance = instance.ptr;
}
hello testType_init(){
return (hello){
.ptr = zalloc(sizeof(testType)),
.test = testType_test,
.func = testType_func,
};
}
int _temp_func_0(char* directory, char* name){
print("Inside lambda 2");
}
int _temp_func_1(char* directory, char* name){
print("Inside lambda");
traverse_directory(s.data, true, _temp_func_0);
}
int main(){
int __return_val;
int y = a();
int x = 1 - (0 - 2);
int z = int_get(x, 0);
print("This is democracy manifest");
for (int i = 0; i < 10; i = i + 1){
}
while (0){
print();
}
__return_val = 0;
goto defer;
do {
print();
} while (0);
draw(x, y, 0xFF00FF00, 0);
x = x + 1;
x = int_run(y);
if (x < 100){
} else {
print("Done with x");
}
y = y + 1;
if (y < 100){
} else if (y == 100){
print("Exactly 100 y");
}
print();
traverse_directory(s.data, true, _temp_func_1);
defer:
cleanup();
x = 0;
return __return_val;
}