-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatch
57 lines (48 loc) · 1.45 KB
/
patch
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
commit 38b730794984a841c17b8d9a6fc692f820f26fb4
Author: pmurias <[email protected]>
Date: Wed Aug 11 21:36:33 2010 +0200
use smop's main module
diff --git a/lib/Mildew/Backend/C/V6.pm b/lib/Mildew/Backend/C/V6.pm
index d1a5ca8..6ecfd99 100644
--- a/lib/Mildew/Backend/C/V6.pm
+++ b/lib/Mildew/Backend/C/V6.pm
@@ -30,6 +30,9 @@ class Mildew::Backend::C::V6 extends Mildew::Backend::C::So {
method get_boilerplate {
<<'END'
+
+#include <smop/main.h>
+
#include <smop/base.h>
#include <smop/s0native.h>
#include <smop/nagc.h>
@@ -47,35 +50,13 @@ class Mildew::Backend::C::V6 extends Mildew::Backend::C::So {
#include <smop/nagc.h>
#include <stdio.h>
-void smop_p5_init(SMOP__Object* interpreter);
-void smop_p5_destr(SMOP__Object* interpreter);
-
/* Your helper function go here */
%%FUNCS%%
int run(int argc, char** argv) {
- printf("running...\n");
-
- smop_s0native_init();
- smop_dump_init();
- smop_nagc_init();
- smop_capture_init();
- smop_interpreter_init();
- smop_mold_init();
- smop_yeast_init();
-
- SMOP__Object* interpreter = SMOP_interpreter_create(SMOP__EmptyInterpreter);
-
- smop_native_init(interpreter);
- smop_s1p_init(interpreter);
-
- smop_lost_init(interpreter);
- smop_p6opaque_init(interpreter);
- smop_s1p_oo_init(interpreter);
- smop_p5_init(interpreter);
- smop_mold_message_init(interpreter);
+ SMOP__Object* interpreter = smop_main_get_interpreter();
/* The frame creation code goes here */