Skip to content

Commit 0411d30

Browse files
committed
[translator] move main function from compiler-rt
clang can work with double main(void)
1 parent c122436 commit 0411d30

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

examples/plot.ks

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
def run() mandel(-2.3, -1.3, 0.05, 0.07);
1+
def main() mandel(-2.3, -1.3, 0.05, 0.07);
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include <stdio.h>
22

3-
extern double run();
4-
53
double putchard(double x) {
64
putchar(x);
75
return x;
@@ -11,7 +9,3 @@ double printd(double x) {
119
printf("> %f <", x);
1210
return x;
1311
}
14-
15-
int main(int arc, char** argv) {
16-
return run();
17-
}

0 commit comments

Comments
 (0)