Subversion Repositories Kolibri OS

Rev

Rev 8476 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8476 Rev 8535
Line 1... Line -...
1
/* INCLUDE */
-
 
2
#include "tp.c"
1
#include "tinypy.c"
Line 3... Line 2...
3
 
2
 
Line 4... Line 3...
4
const char header[] = "TinyPy for KolibriOS";
3
extern void init_std_modules(TP);
5
 
-
 
6
int main(int argc, const char *argv[]) {
4
 
-
 
5
int main(int argc, char *argv[]) {
-
 
6
    tp_vm *tp = tp_init(argc,argv);
7
    /* INIT */
7
    
-
 
8
    #ifdef CONIO
-
 
9
    console_load();
8
    tp_vm *tp = tp_init(argc, argv);
10
    #endif
9
    kolibri_init(tp);
11
    
10
    CONSOLE_INIT(header);
-
 
11
    tp_call(tp,"py2bc","tinypy",tp_None);
12
    init_std_modules(tp);
Line 12... Line 13...
12
//  con_printf("Done");
13
    tp_ez_call(tp,"py2bc","tinypy",tp_None);
-
 
14
    tp_deinit(tp);
13
    tp_deinit(tp);
15
    
-
 
16
    #ifdef CONIO
-
 
17
    if(con_enabled==1){
Line 14... Line -...
14
    
-
 
15
    // Exit console
18
        con_exit(0);
16
    con_exit(0);
19
    }
Line 17... Line -...
17
    
-